Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Linker order for two same public symbols

Status
Not open for further replies.

ytrax

Programmer
Oct 27, 2005
1
DE
Hello,

i got
[Linker Warning] Public symbol '_printf' defined in both module C:\PROGRAMME\BORLAND\CBUILDER6\LIB\CP32MT.LIB|printf and K:\WINVIEW\OBJ\PRINTF.OBJ

thats clear, because i use my own printf.

With Project->Options->Packages->"Build with runtime Packages" i got no problem,
the linker use my version of printf.

With disabling "Build with runtime Packages",
the linker use printf from CP32MT.LIB.
That is a problem, because nothing work anymore.

I know, i could change the name of printf to myprintf,
but i don't want to do this, because this is an simulation-project for software on a microchip.
The microchip-compiler (Keil) dont have any problem with my printf.

I could use "Build with runtime Packages",
but i don't want to do this, because some customers are to
stupid to copy rtl60.bpl in to the right directory.

But how i can change the link order for .obj/.lib files?


I appriciate all help.

Jan Erik


 
Maybe the problem isn't with the order of the linking but with how the namespace is defined. I'll take alook around. No promises though.

James P. Cottingham
-----------------------------------------
I'm number 1,229!
I'm number 1,229!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top