Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

cross compiling c++, halp

Name: Anonymous 2008-06-07 15:28

So yeah, I'm trying to cross-compile an sdl-app (server-client-thingy) from ubuntu to windows. I followed http://icculus.org/~dolson/sdl/, and managed to get a simple sdl-app working in wine. Also, the server compiles and links fine. Client not so.

I'm linking with something like
$ i586-mingw32msvc-g++ `/usr/path/i386-mingw32msvc-sdl-config --cflags` \
   crapload_of_object_files.o `/usr/path/i386-mingw32msvc-sdl-config --libs` \
   -lSDL_image -lSDL_ttf -lSDL_net -o client_win.exe

The mingw32 sdl-config paths should be fine. The errors:

main_client.o:client_test.cpp:(.text+0x19c): undefined reference to `Edax::Engine::run()' + similar lines, whining about custom functions, dtors and the like. Also

edax_engine.o: In function `_ZN4Edax6Engine3runEv':
edax_engine.cpp:(.text+0x172): undefined reference to `SDL_PollEvent'
edax_engine.cpp:(.text+0x184): undefined reference to `SDL_GetTicks'
edax_engine.cpp:(.text+0x1fa): undefined reference to `_ZN4Edax8Renderer4flipEv'

and

edax_engine.o:(.eh_frame+0x11): undefined reference to `__gxx_personality_v0'
edax_engine.o:(.rodata._ZTVN4Edax6EngineE[_ZTVN4Edax6EngineE]+0x10): undefined reference to `__cxa_pure_virtual'
edax_engine.o:(.rodata._ZTIN4Edax6EngineE[_ZTIN4Edax6EngineE]+0x0): undefined reference to `_ZTVN10__cxxabiv117__class_type_infoE'
collect2: ld returned 1 exit status

'__gxx_personality_v0' should be caused at least when linking c++-files with gcc, but this shouldn't be the case here.
The whole thing compiles, links and works fine as a native linux build, with g++. Halp.

Name: Anonymous 2008-06-07 15:41

[code}`/usr/path/i386[/code]

what the shit, are you using cygaids?  Don't.  Use MinGW32 and GNUWin32 instead.

Name: Anonymous 2008-06-07 15:44

>>2
What does mingw32msvc mean for you, mr. bbcode failure?

Name: Anonymous 2008-06-07 16:06

What are you gonna do about it?
What are you gonna do about it?
What are you gonna do about it?
What are you gonna do about it?
What are you gonna do about it?
What are you gonna do!
What are you gonna do!
What are you gonna do!
[/i]Maybe you like it.
Maybe you like being pushed around.
Maybe you love it.[/i]
Maybe you love getting your face stuck in the shit.

Name: Anonymous 2008-06-07 16:26

>>3
Looks like an inferior build used with Cyglose.  Cyglose is made of fail and slow.  Don't use it.  Just use regular MinGW32.

Name: ​​​​​​​​​​ 2010-10-22 17:18

Name: Sgt.Kabukiman 2012-05-23 15:18

All work and no play makes Jack a dull boy
 All work and no play makes Jack a dull boy
 All work and no play makes Jack a dull boy
 All work and no play makes Jack a dull boy
 All work and no play makes Jack a dull boy
 All work and no play makes Jack a dull boy
 All work and no play makes Jack a dull boy
 All work and no play makes Jack a dull boy
 All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
 All work and no play makes Jack a dull boy
 All work and no play makes Jack a dull boy
 All work and no play makes Jack a dull boy
 All work and no play makes Jack a dull boy
 All work and no play makes Jack a dull boy
 All work and no play makes Jack a dull boy
 All work and no play makes Jack a dull boy
 All work and no play makes Jack a dull boy

Name: bampu pantsu 2012-05-29 3:44

bampu pantsu

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List