Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion Groups
General
GeneralPortable MacsHardwareNetworking
Applications
Mac ApplicationsEudoraFirefox / MozillaInternet ExplorerOutlook ExpressMS OfficeEntourageExcelPowerPointWordVirtual PCMedia PlayerOther MS Products
Programming
Mac ProgrammingCodeWarriorPerl
Country Specific
Australian Mac GroupUK Mac Group

Mac Forum / Programming / CodeWarrior / May 2005



Tip: Looking for answers? Try searching our database.

C++ lib on windows

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
jonny - 15 May 2005 13:51 GMT
HI, im working with CW 9 for Mac on MacOSX. Im creating a static C++
library. I can compile it without any problems. Then i bring it into
another project, and use a few of its classes. It compiles fine. But i
get a few undefined symbols, that icannot seem to resolve. My settings
are the same in both projects. What should i look at to gget this to
link correctly.

thanks

Alex
MW Ron - 19 May 2005 16:46 GMT
>HI, im working with CW 9 for Mac on MacOSX. Im creating a static C++
>library. I can compile it without any problems. Then i bring it into
>another project, and use a few of its classes. It compiles fine. But i
>get a few undefined symbols, that icannot seem to resolve. My settings
>are the same in both projects. What should i look at to gget this to
>link correctly.

Look for inlined functions,  look for static functions,  look for name
mangling problems.  (probably it is name mangling)  be sure you aren't
mixing any C and C++ files.

Ron

Signature

Metrowerks Community Forum is a free online resource for developers
to discuss CodeWarrior topics with other users and Metrowerks' staff
       --   http://www.metrowerks.com/community  --

Ron Liechty - MWRon@metrowerks.com - http://www.metrowerks.com

kiyookasan - 23 May 2005 19:01 GMT
Are you using C++ templates?

Also, sometimes singleton-style classes will not get brought
in by the CW linker unless you make an explicit reference to
the object from a file which is definitely included.  Usually I
set aside a section of my application startup code to point to
static singleton members so the linker will include them.

Gen
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.