Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Mac > Mac Programmer > Warning in link...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 1 Topic 971 of 1040
Post > Topic >>

Warning in link stage

by Gabriele Greco <gabrielegreco@[EMAIL PROTECTED] > Oct 22, 2007 at 03:53 PM

I have some annoying warning in the link stage of my app and I'm not 
able to disable them (OSX 10.4.10, gcc 4.0.1, command line) :

/usr/bin/ld: warning multiple definitions of symbol _FT_Bitmap_New
/Developer/SDKs/MacOSX10.4u.sdk/Library/Frameworks/Ogre.framework/Ogre(single

module) definition of _FT_Bitmap_New
/Developer/SDKs/MacOSX10.4u.sdk/Library/Frameworks/CEGUI.framework/CEGUI(single

module) definition of _FT_Bitmap_New

[... and so on for hundreds of lines :) ...]

The problem is simple.

My app links two (universal binary) frameworks: CEGUI & Ogre

Both frameworks STATICALLY link to the same version of libfreetype.a

When my app links (with -framework Ogre -framework CEGUI), for some 
strange reason it sees the symbols of both freetype libs, since they are 
the same the binary works ok, but I don't like to see these warnings :)

Googling around I've found a nice keyword to add to the link stage:

-multiply_defined suppress


... sadly this doesn't make any difference...

Anyone can help me?

--
Bye,
  Gabry
 




 1 Posts in Topic:
Warning in link stage
Gabriele Greco <gabrie  2007-10-22 15:53:17 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Fri Dec 5 7:10:45 CST 2008.