In SX Microcontrollers, SX/B Compiler and SX-Key Tool, PJMonty wrote: Slcott, I'm guessing that the file "fpu.sxb" is one of the included files, and that you're trying to compile it by itself. If so, then the reason you're getting errors is that the compiler needs the declarations made in the main source file. There are two solutions. The first is to always make sure you compile the main program and let it tell the compiler to include the other files. This is a pain because you constantly have to switch active files in the IDE. The other is to use the (sadly, still undocumented) "Top File" feature of the IDE. Basically, the "Top File" feature was implemented for exactly this situation. You want to have multiple include files, and you also want to be able to hit the compile button while working on any of the them. To do this, you need to tell the IDE which file is the "top" file and then it will do the rest. Here's what you need to do. 1 - Load whatever file is your "top" file. 2 - Right click in the file list pane on the left side of the IDE. 3 - Left click the menu option that says "Set as Top File" The attached image shows the menu in operation. From that point on, any time you hit the compile button (of hotkeys), the IDE will offer to use the "Top" file as the one to compile from. Click "Yes" or hit the Enter key and the IDE will do the rest. The IDE keeps track of your topfiles using the registry. This means that whenever you load a known "Top" file, the IDE will offer to make it the current "Top" file. Note that you can only have one "Top" file open at a time in the IDE. If you ever decide to convert the project back into a single file project, you can right click and choose the menu option that says "Set as normal File." Thanks, PeterM ---------- End of Message ---------- You can view the post on-line at: http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=412335#m412358 Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2009 (http://www.dotNetBB.com)