Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Undefined Symbols Error while linking to static libraries



Hi folks,

I am using XCode for Qt4.4 projects and linking my application with multiple static (my own) libraries. In this construct, Main application uses some of the libraries directly and those libraries uses other ones. I get Undefined Symbols error while linking sub libraries to this application.

I have already gone through the mailing list archives and tried the following solutions:

(1) Linking all libraries with their sub libraries in pro file so that application knows which library to be linked with.
(2) Linking single library Multiple times in main application pro file such that it always knows the order of linking.


None of the above solution works. I tried linking these libraries in other applications and they only work if a library is not calling some function from other library. I then got the temporary solution of creating and deleting objects of each library classes in my main application before starting real functionality. Can anyone help me finding the logical solution to this problem?

Regards,
Manoj

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/xcode-users/email@hidden

This email sent to email@hidden


Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.