Assuming you know how to setup and include the headers properly all you need to do is compile each .c file with the -c option (along with any other flags you need) to make the object files ( .o files) then link them. The easiest way to link is using msp430-gcc. an example is in the FAQ:
http://mspgcc.sourceforge.net/faq/x62.html If you have more than 2 source files you'll probably get tired of manually going through these steps. I'd recommend making a makefile and using GNU Make. A good (and free) book for this is http://www.gnu.org/manual/make-3.79.1/html_chapter/make_toc.html -----Original Message----- From: Mark Skeels [mailto:meske...@earthlink.net] Sent: Friday, August 22, 2003 1:02 PM To: mspgcc-users@lists.sourceforge.net Subject: [Mspgcc-users] compiling multiple source files Hi, all, Could someone point me to an example project using mspgcc with multiple source files? I have successfully ported a small app writtien in IAR MSP430 C to MSPGCC, but I had to paste auxilliary .c, .h files into the main files to get it to work. Regards, Mark ------------------------------------------------------- This SF.net email is sponsored by: VM Ware With VMware you can run multiple operating systems on a single machine. WITHOUT REBOOTING! Mix Linux / Windows / Novell virtual machines at the same time. Free trial click here:http://www.vmware.com/wl/offer/358/0 _______________________________________________ Mspgcc-users mailing list Mspgcc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mspgcc-users