(not directly SDL related, but my project does use it… sorry).
I’m all of a sudden getting some compile errors on OSX using Project Builder
and I was wondering if anyone could shed some light on it.
It all started when I added the STL string template to one of my classes.
I’ve read that there are issues with templates, but I’ve not found a clear
way to fix the problem, plus I’ve never really seen these error mentioned
with those problem.
Anyways, now when I’m compiling my project I get the following errors when
linking.
/usr/bin/ld: Undefined symbols:
_assign__t18string_char_traits1ZcRcRCc
_compare__t18string_char_traits1ZcPCcn1Ul
_copy__t18string_char_traits1ZcPcPCcUl
_eos__t18string_char_traits1Zc
_eq__t18string_char_traits1ZcRCcn1
_length__t18string_char_traits1ZcPCc
_move__t18string_char_traits1ZcPcPCcUl
_ne__t18string_char_traits1ZcRCcn1
_set__t18string_char_traits1ZcPcRCcUl
The template i’m using is the string template.
#include
creating it as …
string m_sCaption;
Does anyone have any idea what I can do to fix this error?
Thanks,
Michael Rich
http://www.AlphaX86.com
It looks like it’s not linking with the library. Does the Project Builder
come with some linking options for STL libraries that need to be enabled?
-MarkOn Tue, 18 Dec 2001, Michael Rich wrote:
(not directly SDL related, but my project does use it… sorry).
I’m all of a sudden getting some compile errors on OSX using Project Builder
and I was wondering if anyone could shed some light on it.
It all started when I added the STL string template to one of my classes.
I’ve read that there are issues with templates, but I’ve not found a clear
way to fix the problem, plus I’ve never really seen these error mentioned
with those problem.
Anyways, now when I’m compiling my project I get the following errors when
linking.
/usr/bin/ld: Undefined symbols:
_assign__t18string_char_traits1ZcRcRCc
_compare__t18string_char_traits1ZcPCcn1Ul
_copy__t18string_char_traits1ZcPcPCcUl
_eos__t18string_char_traits1Zc
_eq__t18string_char_traits1ZcRCcn1
_length__t18string_char_traits1ZcPCc
_move__t18string_char_traits1ZcPcPCcUl
_ne__t18string_char_traits1ZcRCcn1
_set__t18string_char_traits1ZcPcRCcUl
The template i’m using is the string template.
#include
creating it as …
string m_sCaption;
Does anyone have any idea what I can do to fix this error?
Thanks,
Michael Rich
http://www.AlphaX86.com
SDL mailing list
SDL at libsdl.org
http://www.libsdl.org/mailman/listinfo/sdl
–
Mark K. Kim
http://www.cbreak.org/mark/
PGP key available upon request.
It looks like it’s not linking with the library. Does the
Project Builder
come with some linking options for STL libraries that need to
be enabled?
Yes I finally found it, at first I’d put a…
-lstdc++
in the compiler settings, not realizing just a half-page down was the actual
LINKER settings, so when I moved the option down into the linkers additional
options (On the “Build Settings” tab of the target) and hit compile, it
compiled right up and I was able to run it.
Thanks for making me double check myself.
mike