In SX Microcontrollers, SX/B Compiler and SX-Key Tool, peterverkaik wrote: Jon, Attached are your files but modified as per my suggestion. Note that I added a '{$define libname} to each library DEF file. That define is then used to load the INC later on. Big advantage here is when a specific DEF is no longer loaded, its companied INC is automatically skipped. Also note that I listed all requirements for the libraries in the DEFs, like STACK needed, but for TX_SERIAL also the BaudMode constant which must be defined externally. Adding the '{$uses subname} really is no big deal. When there are a lot of library subroutines used, you do get a long vertical list of $uses. I have requested in the past, [b]and I still request it[/b], is to have $uses accept a comma seperated list. My suggestion is: '{$uses libname: sub1name, sub2name, ...} where libname can be any text, it acts as comment ended by : but using the library name seems most appropiate. In the attached demo it then would look like '{$uses pvDELAYS: DELAY_MS} '{$uses pvTX_SERIAL: TX_STR,TX_BIN,TX_HEX} Consider not using $uses and the subroutine jumptable does get filled with unused subroutine entries so your program does not compile (too many subs). Then you will need to copy and rename libraries and removing unrequired subroutines. regards peter ---------- End of Message ---------- You can view the post on-line at: http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=324057#m324126 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)