Newbie Help Compiling 2Dtutorial For Linux


Still Fresh
Sep 20, 2010
Hello all,

sorry if this has been answered, I did search but to no avail.

I am getting the following error when trying to compile the GPH SDK 2DTutorial on host. The compile stage seems to work fine, but when it tries to link it gives me the following error:

g++ DGE_Entry.o -o .host/2DTutorial -L/home/gareth/GPH_SDK/DGE/lib/host -L/home/gareth/GPH_SDK/lib/host -lDGE -lGL -lEGL -lGLES_CL -lSDLmain -lSDL -lSDL_image -lSDL_mixer -lSDL_ttf -laudio

/usr/bin/ld: skipping incompatible /home/gareth/GPH_SDK/DGE/lib/host/libDGE.a when searching for -lDGE
/usr/bin/ld: cannot find -lDGE
collect2: ld returned 1 exit status
make: *** [.host/2DTutorial] Error 1

What does this mean? I'm afraid years of Java dev have made me a bit soft when it comes to C++! Is the libDGE in the host directory not compatible with the compiler I'm using (g++-4.4)? This is with the latest 10.08 SDK with the update extracted as well.

Thanks in advance for any info,


UPDATE: I think the incompatibility is 32bit vs 64bit. Perhaps invoking g++ with -m32 will fix the issue...