Go to previous topic
Go to next topic
Last Post 29 Oct 2004 09:31 AM by  mikee@logicpd.com
more makefile questions, no <stdlib.h>
 1 Replies
Author Messages
ylin
New Member
New Member
Posts:


--
29 Oct 2004 08:02 AM
    What do i need to modify in order to compile a file with *.asm extension in the sample_zoom_app project using the exisiting makefiles?

    Also when I include <stdlib.h>, I get an error during compilation indicating that there is no such directory called <stdlib.h>.

    Thank you,

    Yujie
    mikee@logicpd.com
    New Member
    New Member
    Posts:


    --
    29 Oct 2004 09:31 AM
    ylin,

    In order to list a file for compilation, you will need to add its source code to the SRCS macro and its object file to the OBJS macro within the Makefile.

    The GNU compiler collection probably doesn't have a built in rule to build a file with a *.asm suffix. You should name it *.s as that is how GCC expects assembly files to be named.

    Do a man gcc for more information on using the compiler and the default rules it uses for building code.

    You won't find a <stdlib.h> or any standard library functions unless you supply them yourself or port and build something like newlib for your target.

    Logic is providing you with all of the development tools, and a link into the LogicLoader's exported API calls. Any thing else your application needs, you will either have to provide yourself, or you can contact our support team and they can help you out.

    For instance, if you feel that you will need something such as the standard C-library, and you don't feel like you could port it, I'm sure our services team would be happy to do so for you.


    Regards,
    --mikee


    ---