This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]