# Setting up G3D with Code::Blocks [solved]

This topic is 3332 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

## Recommended Posts

Just wondering if anyone's done this successfully and can offer any tips... I compiled G3D and GL3D myself, adapting the devcpp instructions to code::blocks, and that went fine, giving me libGLG3D.a and libG3D.a. Using a simple g3d test application (or any of the demos provided), I get a whole load of linker errors such as:
C:\code_utils\g3d-6_10\mingw32-lib/libGLG3D.a(GApp.o):GApp.cpp:(.text+0x32d): undefined reference to G3D::GCamera::GCamera()'
C:\code_utils\g3d-6_10\mingw32-lib/libGLG3D.a(GApp.o):GApp.cpp:(.text+0x3ac): undefined reference to G3D::GModuleManager::create()'

I'm linking to: mingw32, SDLmain, SDL, G3D and GLG3D. If anyone has any suggestions as to what I'm doing wrong, or has set up g3d with code::blocks / mingw before, I'd love to hear from them.  OK, got rid of almost all the errors. I needed to link a number of other things as well as those (opengl32, glu32, ws2_32, version, zlib, png, jpeg, -mwindows). I still have a wierd error where powf is defined twice, but hopefully I can find out what's causing that and stop it.[/Edit] [Edit2] It appears the .dev files that come with the source were very out of date. Using the .vcproj files instead worked fine, and there's no need to link png and jpeg in apps using g3d[/Edit2] [Edited by - sprite_hound on May 13, 2007 3:14:19 AM]

##### Share on other sites
In case anyone ever tries to do this, or has problems, I've put some instructions for setting up G3D with code::blocks and mingw here.

##### Share on other sites
Has anyone else done this recently? I tried it with the current versions of code::blocks and G3D on Windows XP, but G3D doesn't compile.

The first problem that comes up is compiling platform.h. It fails with an unsupported platform message. I tried setting the __MSC_VER variable, but then compiling fails trying to find crtdbg.h. Is this a microsoft/visual studio specific file? It doesn't exist anywhere on my system.

Steve

##### Share on other sites
Are you using MSVC 2005 or MSVC 2008? In case of MSVC 2005: do you have the PSDK installed for it?

1. 1
2. 2
3. 3
Rutin
19
4. 4
5. 5
JoeJ
12

• 13
• 21
• 9
• 31
• 16
• ### Forum Statistics

• Total Topics
632618
• Total Posts
3007467
• ### Who's Online (See full list)

There are no registered users currently online

×