This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: makefile dependancy question
- From: Eljay Love-Jensen <eljay at adobe dot com>
- To: "ali ben akhbar" <buggy at hetnet dot nl>, <gcc-help at gcc dot gnu dot org>
- Date: Tue, 20 May 2003 15:03:20 -0500
- Subject: Re: makefile dependancy question
Hi Ali,
>Do I really have to include all standard object files in the main link
statement in my makefile?
No, you do not have to include all standard object files in your main link
statement.
Furthermore, you shouldn't include any standard object files in your main
link statement. That's for the standard libraries.
And if your program doesn't use any of the standard C or C++ routines /
classes, you shouldn't need to link them in either (libstdc.a/so/lib/dll
libstdc++.a/so/lib/dll).
Note: it appears that you are linking GCC and Borland stuff together. You
probably will not be able to link GCC object code to Borland object
code. Very likely, different formats. I'm not 100% sure, but that's my
very strong hunch.
Sincerely,
--Eljay