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