Software‎ > ‎

gcc standard libraries

posted Feb 2, 2011, 3:45 AM by Andrew Jessop   [ updated Feb 8, 2011, 11:01 PM ]
While setting up a 'bare bones' program on a Philips ARM LCP21xx series Microcontroller, I encountered the need to link the standard library in a different place.  While flicking through the GCC Manual, I found the following useful debugging options:

Same as -print-file-name=libgcc.a.
This is useful when you use -nostdlib or -nodefaultlibs but you do want to link with libgcc.a. You can do
     gcc -nostdlib files... `gcc -print-libgcc-file-name`