Login
Username:

Password:

Remember me



Lost Password?

Register now!

Sections

Who's Online
76 user(s) are online (63 user(s) are browsing Forums)

Members: 0
Guests: 76

more...

Headlines

Report message:*
 

Re: SDL2

Subject: Re: SDL2
by SinanSam460 on 2021/4/25 22:05:09

@Capehill

Thanks that also worked.. However I still get some _Z errors.

I think I am doing correct linking, maybe the original code is broken ?

ppc-amigaos-gcc -athread=native *.cc -o Rocketz -lGL -lGLUT -lGLU -lSDL2_image -lSDL2_net -lSDL2_ttf -lfreetype -ltiff -lwebp -lpng -ljpeg -lz -lm -lSDL2_mixer -lmikmod -lmodplug -lFLAC -lvorbisfile -lvorbis -logg -lSDL2 -lsmpeg2 -lpthread -lz -lstdc++
/
tmp/ccNLpETN.o:(.sbss+0x0): multiple definition of `window'
/tmp/cc1bLF33.o:(.sbss+0x0): first defined here
/tmp/ccbbxwE0.o: In function 
`_Z12compress_pngPPhiiS_i':
test_png.cc:(.text+0xe8): multiple definition of `_Z12compress_pngPPhiiS_i'
/tmp/cceaAsxd.o:main.cc:(.text+0xebc): first defined here
/tmp/ccbbxwE0.oIn function `main':
test_png.cc:(.text+0x464): multiple definition of 
`main'
/tmp/cceaAsxd.o:main.cc:(.text+0x1d30): first defined here
/tmp/ccSyrZ4e.o: In function `_Z18jpeg_writer_threadi'
:
threads.cc:(.text+0x0): multiple definition of `_Z18jpeg_writer_threadi'
/tmp/cceaAsxd.o:main.cc:(.text+0x124c): first defined here
/tmp/ccSyrZ4e.o: In function 
`main':
threads.cc:(.text+0xa4): multiple definition of `main'
/tmp/cceaAsxd.o:main.cc:(.text+0x1d30): first defined here
/tmp/cc8rD4sB.oIn function `_ZN9Billboard4drawEv':
billboard.cc:(.text+0x59c): undefined reference to 
`_Z19sgVectorProductVec3PfPKfS1_'
/tmp/ccXjnL6r.o: In function `_ZN6Camera15setup_modelviewEv'
:
camera.cc:(.text+0x88): undefined reference to `_Z13sgMakeRotMat4PA4_ffPKf'
camera.cc:(.text+0xdc): undefined reference to 
`_Z13sgMakeRotMat4PA4_ffPKf'
camera.cc:(.text+0xf4): undefined reference to `_Z14sgPostMultMat4PA4_fPA4_Kf'
camera.cc:(.text+0x110): undefined reference to `_Z21sgTransposeNegateMat4PA4_fPA4_Kf'
camera.cc:(.text+0x14c): undefined reference to 
`_Z15sgMakeTransMat4PA4_ffff'
camera.cc:(.text+0x16c): undefined reference to `_Z10sgMultMat4PA4_fPA4_KfS3_'
/tmp/cc2aNItA.oIn function `_ZN5PlaneC2EPfS0_S0_':
frustum.cc:(.text._ZN5PlaneC2EPfS0_S0_[_ZN5PlaneC5EPfS0_S0_]+0x64): undefined reference to 
`_Z19sgVectorProductVec3PfPKfS1_'
/tmp/ccKdXJ7P.o: In function `_ZN6Object6rotateEfPf'
:
object.cc:(.text+0x7ec): undefined reference to `_Z13sgMakeRotMat4PA4_ffPKf'
object.cc:(.text+0x804): undefined reference to 
`_Z14sgPostMultMat4PA4_fPA4_Kf'
/tmp/ccKdXJ7P.o: In function `_ZN6Object4drawEv'
:
object.cc:(.text+0x1214): undefined reference to `_Z15sgMakeTransMat4PA4_fPKf'
object.cc:(.text+0x122c): undefined reference to 
`_Z13sgPreMultMat4PA4_fPA4_Kf'
/tmp/ccKdXJ7P.o: In function `_ZN6Object9draw_shotEv'
:
object.cc:(.text+0x16f0): undefined reference to `_Z15sgMakeTransMat4PA4_fPKf'
object.cc:(.text+0x1708): undefined reference to 
`_Z13sgPreMultMat4PA4_fPA4_Kf'
/tmp/ccKdXJ7P.o: In function `_ZN12DynamicLight17light_environmentEv'
:
object.cc:(.text+0x2088): undefined reference to `_Z19sgVectorProductVec3PfPKfS1_'
/tmp/ccNLpETN.o: In function 
`_ZN6Rocket4drawEv':
rocket.cc:(.text+0x1450): undefined reference to `_Z14sgQuatToMatrixPA4_fPKf'
rocket.cc:(.text+0x1464): undefined reference to `_Z13sgPreMultMat4PA4_fPA4_Kf'
rocket.cc:(.text+0x14b8): undefined reference to 
`_Z13sgMakeRotMat4PA4_ffPKf'
/tmp/ccNLpETN.o: In function `_ZN6Rocket12setup_orientEii'
:
rocket.cc:(.text+0x1f10): undefined reference to `_Z14sgQuatToMatrixPA4_fPKf'
rocket.cc:(.text+0x1f98): undefined reference to 
`_Z14sgQuatToMatrixPA4_fPKf'
/tmp/ccNLpETN.o: In function `_ZN6Rocket6updateEfP6Camera'
:
rocket.cc:(.text+0x25f8): undefined reference to `_Z14sgQuatToMatrixPA4_fPKf'
rocket.cc:(.text+0x2610): undefined reference to 
`_Z14sgPostMultMat4PA4_fPA4_Kf'
/tmp/ccNLpETN.o: In function `_ZN6Rocket12setup_cameraEv'
:
rocket.cc:(.text+0x30cc): undefined reference to `_Z19sgVectorProductVec3PfPKfS1_'
rocket.cc:(.text+0x31cc): undefined reference to 
`_Z21sgTransposeNegateMat4PA4_fPA4_Kf'
rocket.cc:(.text+0x31fc): undefined reference to `_Z11sgXformVec3PfPKfPA4_S0_'
/tmp/ccNLpETN.oIn function `_ZN6Rocket14update_cubemapEv':
rocket.cc:(.text+0x3418): undefined reference to 
`_Z15sgMakeTransMat4PA4_ffff'
rocket.cc:(.text+0x3474): undefined reference to `_Z13sgMakeRotMat4PA4_ffPKf'
rocket.cc:(.text+0x3494): undefined reference to `_Z14sgPostMultMat4PA4_fPA4_Kf'
rocket.cc:(.text+0x3504): undefined reference to 
`_Z13sgMakeRotMat4PA4_ffPKf'
rocket.cc:(.text+0x3518): undefined reference to `_Z14sgPostMultMat4PA4_fPA4_Kf'
rocket.cc:(.text+0x352c): undefined reference to `_Z14sgPostMultMat4PA4_fPA4_Kf'
rocket.cc:(.text+0x359c): undefined reference to 
`_Z13sgMakeRotMat4PA4_ffPKf'
rocket.cc:(.text+0x35b0): undefined reference to `_Z14sgPostMultMat4PA4_fPA4_Kf'
/tmp/ccNLpETN.oIn function `_ZN6Rocket8draw_envEv':
rocket.cc:(.text+0x37c0): undefined reference to 
`_Z15sgMakeTransMat4PA4_fPKf'
rocket.cc:(.text+0x37d8): undefined reference to `_Z13sgPreMultMat4PA4_fPA4_Kf'
/tmp/ccNLpETN.oIn function `_Z11sgXformVec3PfPA4_Kf':
rocket.cc:(.text._Z11sgXformVec3PfPA4_Kf[_Z11sgXformVec3PfPA4_Kf]+0x28): undefined reference to 
`_Z11sgXformVec3PfPKfPA4_S0_'
/tmp/ccNLpETN.o: In function `_Z14sgPostMultQuatPfPKf'
:
rocket.cc:(.text._Z14sgPostMultQuatPfPKf[_Z14sgPostMultQuatPfPKf]+0x3c): undefined reference to `_Z10sgMultQuatPfPKfS1_'
/tmp/ccNLpETN.o: In function 
`_Z13sgPostRotQuatPffPKf':
rocket.cc:(.text._Z13sgPostRotQuatPffPKf[_Z13sgPostRotQuatPffPKf]+0x30): undefined reference to `_Z17sgAngleAxisToQuatPffPKf'
/tmp/ccusyGJn.oIn function `_ZN5World4drawEv':
world.cc:(.text+0x920): undefined reference to 
`_Z10sgMultMat4PA4_fPA4_KfS3_'
/tmp/ccusyGJn.o: In function `_ZN5World10draw_roomsEP4RoomPf'
:
world.cc:(.text+0xe38): undefined reference to `_Z10sgMultMat4PA4_fPA4_KfS3_'
collect2: error: ld returned 1 exit status


Powered by XOOPS 2.0 © 2001-2016 The XOOPS Project