SDL doesn't like C++

I’m currently setting up a ‘new’ machine (Dual 450Mhz G4, 1GB RAM, Mac
OS X 10.3.9), and I’ve run into a problem after installing the
development tools (Xcode 1.1) and SDL: whenever I try to compile a C++
project using SDL (even the SDL template-projects), I receive the
following error:

ld: /usr/lib/gcc/darwin/3.3/libstdc++.a(eh_exception.o) illegal
reference to symbol: operator delete(void*) defined in indirectly
referenced dynamic library /usr/lib/libstdc++.6.dylib

These are the steps I’ve taken from a clean (but fully updated) install
of Mac OS X10.3.9 to try to install the development tools and SDL:

1 	Installed Xcode 1.1 (Easy Install)
2 	Copied SDL.framework 1.2.9 to /Library/Frameworks/
3 	Installed the SDL 1.2.8 development project-templates et al via the 

.pkg installer.
4 Compiled a C++ Tool template-project, no problem.
5 Compiled an C SDL Application template-project project, no problem.
6 Created a fresh C SDL Application template-project, renamed main.c
to main.cpp, tried to compile, no joy…

Any help would be appreciated!

Thanks,

	Mark Bishop

-------------- next part --------------
A non-text attachment was scrubbed…
Name: not available
Type: text/enriched
Size: 1275 bytes
Desc: not available
URL: http://lists.libsdl.org/pipermail/sdl-libsdl.org/attachments/20060910/c1db0217/attachment.bin

This isn’t an SDL problem: it’s a problem with the way Apple packaged their
libstdc++ libraries (at least, that’s what google says).

I never could find a way around it: I had to upgrade to 10.4, which comes
with a new Xcode and, more importantly, a new gcc.–
Mando

On 9/10/06, Mark Bishop wrote:

I’m currently setting up a ‘new’ machine (Dual 450Mhz G4, 1GB RAM, Mac
OS X 10.3.9), and I’ve run into a problem after installing the
development tools (Xcode 1.1) and SDL: whenever I try to compile a C++
project using SDL (even the SDL template-projects), I receive the
following error:

ld: /usr/lib/gcc/darwin/3.3/libstdc++.a(eh_exception.o) illegal
reference to symbol: operator delete(void*) defined in indirectly
referenced dynamic library /usr/lib/libstdc++.6.dylib

These are the steps I’ve taken from a clean (but fully updated) install
of Mac OS X10.3.9 to try to install the development tools and SDL:

    1       Installed Xcode 1.1 (Easy Install)
    2       Copied SDL.framework 1.2.9 to /Library/Frameworks/
    3       Installed the SDL 1.2.8 development project-templates et

al via the
.pkg installer.
4 Compiled a C++ Tool template-project, no problem.
5 Compiled an C SDL Application template-project project, no
problem.
6 Created a fresh C SDL Application template-project,
renamed main.c
to main.cpp, tried to compile, no joy…

Any help would be appreciated!

Thanks,

            Mark Bishop

SDL mailing list
SDL at libsdl.org
http://www.libsdl.org/mailman/listinfo/sdl

Thanks, but I’d guess there is a solution out there somewhere, as I
have C++ and SDL 1.2.9 compiling using Xcode 1.1 under Mac OS X 10.3.9
on a different Mac; however, I installed that system a long time ago -
and there have never been any problems with that system - so I can’t
remember the steps I took…

Thanks,

Mark BishopOn 10 Sep 2006, at 21:37, Mando Escamilla wrote:

This isn’t an SDL problem: it’s a problem with the way Apple packaged
their libstdc++ libraries (at least, that’s what google says).

I never could find a way around it:? I had to upgrade to 10.4, which
comes with a new Xcode and, more importantly, a new gcc.


Mando

On 9/10/06, Mark Bishop <@Mark_Bishop> wrote:

OS X 10.3.9), and I’ve run into a problem after installing the
development tools (Xcode 1.1) and SDL: whenever I try to compile a C++
project using SDL (even the SDL template-projects), I receive the
following error:

ld: /usr/lib/gcc/darwin/3.3/libstdc++.a(eh_exception.o) illegal
reference to symbol: operator delete(void*) defined in indirectly
referenced dynamic library /usr/lib/libstdc++.6.dylib

These are the steps I’ve taken from a clean (but fully updated)
install
of Mac OS X10.3.9 to try to install the development tools and SDL:

???1??? Installed Xcode 1.1 (Easy Install)
???2??? Copied SDL.framework 1.2.9 to /Library/Frameworks/
???3??? Installed the SDL 1.2.8 development project-templates
et al via the
.pkg installer.
???4??? Compiled a C++ Tool template-project, no problem.
???5??? Compiled an C SDL Application template-project
project, no problem.
???6??? Created a fresh C SDL Application template-project,
renamed main.c
to main.cpp, tried to compile, no joy…

Any help would be appreciated!

Thanks,

???Mark Bishop


SDL mailing list
SDL at libsdl.org
http://www.libsdl.org/mailman/listinfo/sdl


SDL mailing list
SDL at libsdl.org
http://www.libsdl.org/mailman/listinfo/sdl
-------------- next part --------------
A non-text attachment was scrubbed…
Name: not available
Type: text/enriched
Size: 2294 bytes
Desc: not available
URL: http://lists.libsdl.org/pipermail/sdl-libsdl.org/attachments/20060910/1501d94d/attachment.bin

Well, if you figure it out, please let me know. I saw some things that
talked about downgrading to an older version of SDL or QuickTime (?), but I
couldn’t ever get the magic combo right.–
Mando

On 9/10/06, Mark Bishop wrote:

Thanks, but I’d guess there is a solution out there somewhere, as I
have C++ and SDL 1.2.9 compiling using Xcode 1.1 under Mac OS X 10.3.9
on a different Mac; however, I installed that system a long time ago -
and there have never been any problems with that system - so I can’t
remember the steps I took…

Thanks,

    Mark Bishop

On 10 Sep 2006, at 21:37, Mando Escamilla wrote:

This isn’t an SDL problem: it’s a problem with the way Apple packaged
their libstdc++ libraries (at least, that’s what google says).

I never could find a way around it: I had to upgrade to 10.4, which
comes with a new Xcode and, more importantly, a new gcc.


Mando

On 9/10/06, Mark Bishop wrote:

OS X 10.3.9), and I’ve run into a problem after installing the
development tools (Xcode 1.1) and SDL: whenever I try to compile a C++
project using SDL (even the SDL template-projects), I receive the
following error:

ld: /usr/lib/gcc/darwin/3.3/libstdc++.a(eh_exception.o) illegal
reference to symbol: operator delete(void*) defined in indirectly
referenced dynamic library /usr/lib/libstdc++.6.dylib

These are the steps I’ve taken from a clean (but fully updated)
install
of Mac OS X10.3.9 to try to install the development tools and SDL:

1 Installed Xcode 1.1 (Easy Install)
2 Copied SDL.framework 1.2.9 to /Library/Frameworks/
3 Installed the SDL 1.2.8 development project-templates
et al via the
.pkg installer.
4 Compiled a C++ Tool template-project, no problem.
5 Compiled an C SDL Application template-project
project, no problem.
6 Created a fresh C SDL Application template-project,
renamed main.c
to main.cpp, tried to compile, no joy…

Any help would be appreciated!

Thanks,

Mark Bishop


SDL mailing list
SDL at libsdl.org
http://www.libsdl.org/mailman/listinfo/sdl


SDL mailing list
SDL at libsdl.org
http://www.libsdl.org/mailman/listinfo/sdl


SDL mailing list
SDL at libsdl.org
http://www.libsdl.org/mailman/listinfo/sdl

Hello Mark,

Sunday, September 10, 2006, 9:30:16 PM, you wrote:

I’m currently setting up a ‘new’ machine (Dual 450Mhz G4, 1GB RAM, Mac
OS X 10.3.9), and I’ve run into a problem after installing the
development tools (Xcode 1.1) and SDL: whenever I try to compile a C++
project using SDL (even the SDL template-projects), I receive the
following error:

ld: /usr/lib/gcc/darwin/3.3/libstdc++.a(eh_exception.o) illegal
reference to symbol: operator delete(void*) defined in indirectly
referenced dynamic library /usr/lib/libstdc++.6.dylib

This is definitely an Apple GCC bug as I was getting this problem when
doing a port that didn’t use SDL. I never resolved it - in the end I
just upgraded to a newer Xcode - unfortunately the Xcode version in
question requires 10.4.

Shout at Apple… but i’ve a feeling they don’t care…–
Best regards,
Peter mailto:@Peter_Mulholland

Mark,
I do recall a while back that my OS X C++ makefile-based project was
getting weird c++ related errors. When I changed the linker
invocation from gcc to g++, it was fine again–had something to do
with the C++ runtime being linked in.

I havent discovered any way to specifically do the same thing in
Xcode, but maybe you could try creating a new C++ tool project, and
then manually adding SDL_main.m and SDL.framework. Since its a C++
project to begin with, Xcode will theoretically be smart enough to
invoke gcc such that it includes C++ runtime support.

spencerOn Sep 10, 2006, at 4:30 PM, Mark Bishop wrote:

I’m currently setting up a ‘new’ machine (Dual 450Mhz G4, 1GB RAM,
Mac OS X 10.3.9), and I’ve run into a problem after installing the
development tools (Xcode 1.1) and SDL: whenever I try to compile a C
++ project using SDL (even the SDL template-projects), I receive
the following error:

ld: /usr/lib/gcc/darwin/3.3/libstdc++.a(eh_exception.o) illegal
reference to symbol: operator delete(void*) defined in indirectly
referenced dynamic library /usr/lib/libstdc++.6.dylib

These are the steps I’ve taken from a clean (but fully updated)
install of Mac OS X10.3.9 to try to install the development tools
and SDL:

1 Installed Xcode 1.1 (Easy Install)
2 Copied SDL.framework 1.2.9 to /Library/Frameworks/
3 Installed the SDL 1.2.8 development project-templates et al via
the .pkg installer.
4 Compiled a C++ Tool template-project, no problem.
5 Compiled an C SDL Application template-project project, no
problem.
6 Created a fresh C SDL Application template-project, renamed
main.c to main.cpp, tried to compile, no joy…

Any help would be appreciated!

Thanks,

  Mark Bishop_______________________________________________

SDL mailing list
SDL at libsdl.org
http://www.libsdl.org/mailman/listinfo/sdl

http://www.idevgames.com/forum/archive/index.php/t-12066.html
"Mando Escamilla" <mando.escamilla at gmail.com> wrote in message news:4c4d90610609101411y7aa5f326y8742610d76ede9bc at mail.gmail.com
Well, if you figure it out, please let me know. I saw some things that talked about downgrading to an older version of SDL or QuickTime (?), but I couldn’t ever get the magic combo right.–
Mando

On 9/10/06, Mark Bishop wrote:
Thanks, but I’d guess there is a solution out there somewhere, as I
have C++ and SDL 1.2.9 compiling using Xcode 1.1 under Mac OS X 10.3.9
on a different Mac; however, I installed that system a long time ago -
and there have never been any problems with that system - so I can’t
remember the steps I took…

Thanks,

        Mark Bishop

On 10 Sep 2006, at 21:37, Mando Escamilla wrote:

> This isn't an SDL problem: it's a problem with the way Apple packaged 
> their libstdc++ libraries (at least, that's what google says).
>
> I never could find a way around it: I had to upgrade to 10.4, which
> comes with a new Xcode and, more importantly, a new gcc.
>
> --
> Mando
>
> On 9/10/06, Mark Bishop <sealfin at sealfin.com> wrote:
>> OS X 10.3.9), and I've run into a problem after installing the
>> development tools (Xcode 1.1) and SDL: whenever I try to compile a C++
>> project using SDL (even the SDL template-projects), I receive the
>> following error:
>>
>> > ld: /usr/lib/gcc/darwin/3.3/libstdc++.a(eh_exception.o) illegal 
>> > reference to symbol: operator delete(void*) defined in indirectly
>> > referenced dynamic library /usr/lib/libstdc++.6.dylib
>>
>> These are the steps I've taken from a clean (but fully updated) 
>> install
>> of Mac OS X10.3.9 to try to install the development tools and SDL:
>>
>> 1 Installed Xcode 1.1 (Easy Install)
>> 2 Copied SDL.framework 1.2.9 to /Library/Frameworks/ 
>> 3 Installed the SDL 1.2.8 development project-templates
>> et al via the
>> .pkg installer.
>> 4 Compiled a C++ Tool template-project, no problem.
>>  5 Compiled an C SDL Application template-project 
>> project, no problem.
>> 6 Created a fresh C SDL Application template-project,
>> renamed main.c
>> to main.cpp, tried to compile, no joy...
>>
>>  Any help would be appreciated! 
>>
>> Thanks,
>>
>> Mark Bishop
>>
>> _______________________________________________
>> SDL mailing list
>> SDL at libsdl.org 
>>  http://www.libsdl.org/mailman/listinfo/sdl
>>
>>
> _______________________________________________
> SDL mailing list 
> SDL at libsdl.org
> http://www.libsdl.org/mailman/listinfo/sdl


_______________________________________________ 
SDL mailing list
SDL at libsdl.org
http://www.libsdl.org/mailman/listinfo/sdl


SDL mailing list
SDL at libsdl.org
http://www.libsdl.org/mailman/listinfo/sdl