Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compile error #1

Open
GoogleCodeExporter opened this issue Mar 14, 2015 · 2 comments
Open

Compile error #1

GoogleCodeExporter opened this issue Mar 14, 2015 · 2 comments

Comments

@GoogleCodeExporter
Copy link

Hi,

Attempting to compile programs on my 64bit Ubuntu 11.10 machine I get the 
following error.

From the information posted at 
<http://code.google.com/p/turboturtle/wiki/Readme> I guess that I need not 
install any of the resources required for Windows machines, but I verify that I 
have Python (2.7) and SDL on this machine.

Please also respond to me at dwiniecki@boisestate.edu.

;;;;;
dwiniecki@dwiniecki-Latitude-E6520:~/Desktop/TurboTurtle-1.2-source$ 
./runlogo.sh logocode/Cube.logo
Compiling Cube.logo to Cube.cpp
Compiling Cube.cpp to Cube.o
Compiling wrapper code
Linking wrapper code with Cube.o to produce executable Cube.
wrapper_main.o: In function `CheckExitKey()':
wrapper_main.cpp:(.text+0x7c): undefined reference to `SDL_PollEvent'
wrapper_main.o: In function `main':
wrapper_main.cpp:(.text.startup+0x99): undefined reference to `SDL_Init'
wrapper_main.cpp:(.text.startup+0xa6): undefined reference to `SDL_Quit'
wrapper_main.cpp:(.text.startup+0xb0): undefined reference to `SDL_GetVideoInfo'
wrapper_main.cpp:(.text.startup+0xc4): undefined reference to 
`SDL_GL_SetAttribute'
wrapper_main.cpp:(.text.startup+0xd3): undefined reference to 
`SDL_GL_SetAttribute'
wrapper_main.cpp:(.text.startup+0xe2): undefined reference to 
`SDL_GL_SetAttribute'
wrapper_main.cpp:(.text.startup+0xf1): undefined reference to 
`SDL_GL_SetAttribute'
wrapper_main.cpp:(.text.startup+0x116): undefined reference to 
`SDL_SetVideoMode'
wrapper_main.cpp:(.text.startup+0x13b): undefined reference to 
`SDL_WM_SetCaption'
wrapper_main.cpp:(.text.startup+0x246): undefined reference to 
`SDL_SetVideoMode'
wrapper_main.cpp:(.text.startup+0x254): undefined reference to 
`SDL_GetVideoSurface'
wrapper_main.cpp:(.text.startup+0x26d): undefined reference to `SDL_ShowCursor'
wrapper_main.cpp:(.text.startup+0x27c): undefined reference to 
`glXSwapIntervalSGI'
wrapper_main.cpp:(.text.startup+0x286): undefined reference to `SDL_GetError'
wrapper_main.cpp:(.text.startup+0x30a): undefined reference to `SDL_GetError'
wrapper_main.cpp:(.text.startup+0x332): undefined reference to `glEnable'
wrapper_main.cpp:(.text.startup+0x345): undefined reference to `glEnable'
wrapper_main.cpp:(.text.startup+0x35d): undefined reference to `glHint'
wrapper_main.cpp:(.text.startup+0x371): undefined reference to 
`SDL_GL_SwapBuffers'
wrapper_main.cpp:(.text.startup+0x398): undefined reference to `SDL_Delay'
wrapper_main.cpp:(.text.startup+0x3a9): undefined reference to `glHint'
wrapper_opengl.o: In function `InitGL(bool)':
wrapper_opengl.cpp:(.text+0x11): undefined reference to `glShadeModel'
wrapper_opengl.cpp:(.text+0x1b): undefined reference to `glDisable'
wrapper_opengl.cpp:(.text+0x2c): undefined reference to `glClearColor'
wrapper_opengl.cpp:(.text+0x41): undefined reference to `glViewport'
wrapper_opengl.cpp:(.text+0x4b): undefined reference to `glMatrixMode'
wrapper_opengl.cpp:(.text+0x50): undefined reference to `glLoadIdentity'
wrapper_opengl.cpp:(.text+0xdc): undefined reference to `glOrtho'
wrapper_opengl.cpp:(.text+0xe6): undefined reference to `glDisable'
wrapper_opengl.cpp:(.text+0xf0): undefined reference to `glEnable'
wrapper_opengl.cpp:(.text+0xff): undefined reference to `glBlendFunc'
wrapper_opengl.cpp:(.text+0x109): undefined reference to `glMatrixMode'
wrapper_opengl.cpp:(.text+0x10e): undefined reference to `glLoadIdentity'
wrapper_opengl.cpp:(.text+0x118): undefined reference to `glDisable'
wrapper_opengl.cpp:(.text+0x122): undefined reference to `glClear'
wrapper_opengl.cpp:(.text+0x127): undefined reference to `SDL_GL_SwapBuffers'
wrapper_opengl.cpp:(.text+0x131): undefined reference to `glClear'
wrapper_opengl.cpp:(.text+0x145): undefined reference to `glColor3ub'
wrapper_opengl.cpp:(.text+0x14a): undefined reference to `SDL_GetTicks'
wrapper_opengl.o: In function `wrapper_Clean()':
wrapper_opengl.cpp:(.text+0x1d5): undefined reference to `glEnableClientState'
wrapper_opengl.cpp:(.text+0x1df): undefined reference to `glEnableClientState'
wrapper_opengl.cpp:(.text+0x1f5): undefined reference to `glVertexPointer'
wrapper_opengl.cpp:(.text+0x20e): undefined reference to `glColorPointer'
wrapper_opengl.cpp:(.text+0x220): undefined reference to `glDrawArrays'
wrapper_opengl.cpp:(.text+0x22a): undefined reference to `glDisableClientState'
wrapper_opengl.cpp:(.text+0x234): undefined reference to `glDisableClientState'
wrapper_opengl.cpp:(.text+0x25f): undefined reference to `glEnableClientState'
wrapper_opengl.cpp:(.text+0x269): undefined reference to `glEnableClientState'
wrapper_opengl.cpp:(.text+0x27f): undefined reference to `glVertexPointer'
wrapper_opengl.cpp:(.text+0x298): undefined reference to `glColorPointer'
wrapper_opengl.cpp:(.text+0x2a7): undefined reference to `glDrawArrays'
wrapper_opengl.cpp:(.text+0x2b1): undefined reference to `glDisableClientState'
wrapper_opengl.cpp:(.text+0x2bb): undefined reference to `glDisableClientState'
wrapper_opengl.cpp:(.text+0x2ca): undefined reference to `SDL_GL_SwapBuffers'
wrapper_opengl.cpp:(.text+0x32c): undefined reference to `glClearColor'
wrapper_opengl.cpp:(.text+0x336): undefined reference to `glClear'
wrapper_opengl.cpp:(.text+0x362): undefined reference to `SDL_GetTicks'
wrapper_opengl.cpp:(.text+0x476): undefined reference to `glColor3ubv'
wrapper_opengl.cpp:(.text+0x503): undefined reference to `SDL_Delay'
wrapper_opengl.cpp:(.text+0x508): undefined reference to `SDL_GetTicks'
wrapper_opengl.o: In function `wrapper_Erase()':
wrapper_opengl.cpp:(.text+0x5b1): undefined reference to `glEnableClientState'
wrapper_opengl.cpp:(.text+0x5bb): undefined reference to `glEnableClientState'
wrapper_opengl.cpp:(.text+0x5d1): undefined reference to `glVertexPointer'
wrapper_opengl.cpp:(.text+0x5ea): undefined reference to `glColorPointer'
wrapper_opengl.cpp:(.text+0x5fc): undefined reference to `glDrawArrays'
wrapper_opengl.cpp:(.text+0x606): undefined reference to `glDisableClientState'
wrapper_opengl.cpp:(.text+0x610): undefined reference to `glDisableClientState'
wrapper_opengl.cpp:(.text+0x63b): undefined reference to `glEnableClientState'
wrapper_opengl.cpp:(.text+0x645): undefined reference to `glEnableClientState'
wrapper_opengl.cpp:(.text+0x65b): undefined reference to `glVertexPointer'
wrapper_opengl.cpp:(.text+0x674): undefined reference to `glColorPointer'
wrapper_opengl.cpp:(.text+0x683): undefined reference to `glDrawArrays'
wrapper_opengl.cpp:(.text+0x68d): undefined reference to `glDisableClientState'
wrapper_opengl.cpp:(.text+0x697): undefined reference to `glDisableClientState'
wrapper_opengl.cpp:(.text+0x6f6): undefined reference to `glClearColor'
wrapper_opengl.cpp:(.text+0x700): undefined reference to `glClear'
wrapper_opengl.o: In function `wrapper_glFlushVertices()':
wrapper_opengl.cpp:(.text+0x743): undefined reference to `glEnableClientState'
wrapper_opengl.cpp:(.text+0x74d): undefined reference to `glEnableClientState'
wrapper_opengl.cpp:(.text+0x763): undefined reference to `glVertexPointer'
wrapper_opengl.cpp:(.text+0x77c): undefined reference to `glColorPointer'
wrapper_opengl.cpp:(.text+0x78e): undefined reference to `glDrawArrays'
wrapper_opengl.cpp:(.text+0x798): undefined reference to `glDisableClientState'
wrapper_opengl.cpp:(.text+0x7a2): undefined reference to `glDisableClientState'
wrapper_opengl.cpp:(.text+0x7c9): undefined reference to `glEnableClientState'
wrapper_opengl.cpp:(.text+0x7d3): undefined reference to `glEnableClientState'
wrapper_opengl.cpp:(.text+0x7e9): undefined reference to `glVertexPointer'
wrapper_opengl.cpp:(.text+0x802): undefined reference to `glColorPointer'
wrapper_opengl.cpp:(.text+0x811): undefined reference to `glDrawArrays'
wrapper_opengl.cpp:(.text+0x81b): undefined reference to `glDisableClientState'
wrapper_opengl.cpp:(.text+0x825): undefined reference to `glDisableClientState'
wrapper_opengl.o: In function `wrapper_glLineVertex(float, float)':
wrapper_opengl.cpp:(.text+0x8a8): undefined reference to `glEnableClientState'
wrapper_opengl.cpp:(.text+0x8b2): undefined reference to `glEnableClientState'
wrapper_opengl.cpp:(.text+0x8c8): undefined reference to `glVertexPointer'
wrapper_opengl.cpp:(.text+0x8e1): undefined reference to `glColorPointer'
wrapper_opengl.cpp:(.text+0x8f3): undefined reference to `glDrawArrays'
wrapper_opengl.cpp:(.text+0x8fd): undefined reference to `glDisableClientState'
wrapper_opengl.cpp:(.text+0x907): undefined reference to `glDisableClientState'
wrapper_opengl.o: In function `wrapper_glPointVertex(float, float)':
wrapper_opengl.cpp:(.text+0x998): undefined reference to `glEnableClientState'
wrapper_opengl.cpp:(.text+0x9a2): undefined reference to `glEnableClientState'
wrapper_opengl.cpp:(.text+0x9b8): undefined reference to `glVertexPointer'
wrapper_opengl.cpp:(.text+0x9d1): undefined reference to `glColorPointer'
wrapper_opengl.cpp:(.text+0x9e0): undefined reference to `glDrawArrays'
wrapper_opengl.cpp:(.text+0x9ea): undefined reference to `glDisableClientState'
wrapper_opengl.cpp:(.text+0x9f4): undefined reference to `glDisableClientState'
wrapper_opengl.o: In function `wrapper_glDrawLineWrap(float*, float*, bool)':
wrapper_opengl.cpp:(.text+0x1018): undefined reference to `glEnableClientState'
wrapper_opengl.cpp:(.text+0x1022): undefined reference to `glEnableClientState'
wrapper_opengl.cpp:(.text+0x1038): undefined reference to `glVertexPointer'
wrapper_opengl.cpp:(.text+0x1051): undefined reference to `glColorPointer'
wrapper_opengl.cpp:(.text+0x1063): undefined reference to `glDrawArrays'
wrapper_opengl.cpp:(.text+0x106d): undefined reference to `glDisableClientState'
wrapper_opengl.cpp:(.text+0x1077): undefined reference to `glDisableClientState'
wrapper_opengl.cpp:(.text+0x11c0): undefined reference to `glEnableClientState'
wrapper_opengl.cpp:(.text+0x11ca): undefined reference to `glEnableClientState'
wrapper_opengl.cpp:(.text+0x11e0): undefined reference to `glVertexPointer'
wrapper_opengl.cpp:(.text+0x11f9): undefined reference to `glColorPointer'
wrapper_opengl.cpp:(.text+0x120b): undefined reference to `glDrawArrays'
wrapper_opengl.cpp:(.text+0x1215): undefined reference to `glDisableClientState'
wrapper_opengl.cpp:(.text+0x121f): undefined reference to `glDisableClientState'
wrapper_opengl.cpp:(.text+0x142e): undefined reference to `glEnableClientState'
wrapper_opengl.cpp:(.text+0x1438): undefined reference to `glEnableClientState'
wrapper_opengl.cpp:(.text+0x144e): undefined reference to `glVertexPointer'
wrapper_opengl.cpp:(.text+0x1467): undefined reference to `glColorPointer'
wrapper_opengl.cpp:(.text+0x1479): undefined reference to `glDrawArrays'
wrapper_opengl.cpp:(.text+0x1483): undefined reference to `glDisableClientState'
wrapper_opengl.cpp:(.text+0x148d): undefined reference to `glDisableClientState'
wrapper_opengl.cpp:(.text+0x150b): undefined reference to `glEnableClientState'
wrapper_opengl.cpp:(.text+0x1515): undefined reference to `glEnableClientState'
wrapper_opengl.cpp:(.text+0x152b): undefined reference to `glVertexPointer'
wrapper_opengl.cpp:(.text+0x1544): undefined reference to `glColorPointer'
wrapper_opengl.cpp:(.text+0x1556): undefined reference to `glDrawArrays'
wrapper_opengl.cpp:(.text+0x1560): undefined reference to `glDisableClientState'
wrapper_opengl.cpp:(.text+0x156a): undefined reference to `glDisableClientState'
wrapper_opengl.cpp:(.text+0x15ae): undefined reference to `glEnableClientState'
wrapper_opengl.cpp:(.text+0x15b8): undefined reference to `glEnableClientState'
wrapper_opengl.cpp:(.text+0x15ce): undefined reference to `glVertexPointer'
wrapper_opengl.cpp:(.text+0x15e7): undefined reference to `glColorPointer'
wrapper_opengl.cpp:(.text+0x15f9): undefined reference to `glDrawArrays'
wrapper_opengl.cpp:(.text+0x1603): undefined reference to `glDisableClientState'
wrapper_opengl.cpp:(.text+0x160d): undefined reference to `glDisableClientState'
wrapper_opengl.o: In function `wrapper_glDrawLineWrap(double*, double*, bool)':
wrapper_opengl.cpp:(.text+0x1d58): undefined reference to `glEnableClientState'
wrapper_opengl.cpp:(.text+0x1d62): undefined reference to `glEnableClientState'
wrapper_opengl.cpp:(.text+0x1d78): undefined reference to `glVertexPointer'
wrapper_opengl.cpp:(.text+0x1d91): undefined reference to `glColorPointer'
wrapper_opengl.cpp:(.text+0x1da3): undefined reference to `glDrawArrays'
wrapper_opengl.cpp:(.text+0x1dad): undefined reference to `glDisableClientState'
wrapper_opengl.cpp:(.text+0x1db7): undefined reference to `glDisableClientState'
wrapper_opengl.cpp:(.text+0x1f00): undefined reference to `glEnableClientState'
wrapper_opengl.cpp:(.text+0x1f0a): undefined reference to `glEnableClientState'
wrapper_opengl.cpp:(.text+0x1f20): undefined reference to `glVertexPointer'
wrapper_opengl.cpp:(.text+0x1f39): undefined reference to `glColorPointer'
wrapper_opengl.cpp:(.text+0x1f4b): undefined reference to `glDrawArrays'
wrapper_opengl.cpp:(.text+0x1f55): undefined reference to `glDisableClientState'
wrapper_opengl.cpp:(.text+0x1f5f): undefined reference to `glDisableClientState'
wrapper_opengl.cpp:(.text+0x21d6): undefined reference to `glEnableClientState'
wrapper_opengl.cpp:(.text+0x21e0): undefined reference to `glEnableClientState'
wrapper_opengl.cpp:(.text+0x21f6): undefined reference to `glVertexPointer'
wrapper_opengl.cpp:(.text+0x220f): undefined reference to `glColorPointer'
wrapper_opengl.cpp:(.text+0x2221): undefined reference to `glDrawArrays'
wrapper_opengl.cpp:(.text+0x222b): undefined reference to `glDisableClientState'
wrapper_opengl.cpp:(.text+0x2235): undefined reference to `glDisableClientState'
wrapper_opengl.cpp:(.text+0x22c9): undefined reference to `glEnableClientState'
wrapper_opengl.cpp:(.text+0x22d3): undefined reference to `glEnableClientState'
wrapper_opengl.cpp:(.text+0x22e9): undefined reference to `glVertexPointer'
wrapper_opengl.cpp:(.text+0x2302): undefined reference to `glColorPointer'
wrapper_opengl.cpp:(.text+0x2314): undefined reference to `glDrawArrays'
wrapper_opengl.cpp:(.text+0x231e): undefined reference to `glDisableClientState'
wrapper_opengl.cpp:(.text+0x2328): undefined reference to `glDisableClientState'
wrapper_opengl.cpp:(.text+0x236c): undefined reference to `glEnableClientState'
wrapper_opengl.cpp:(.text+0x2376): undefined reference to `glEnableClientState'
wrapper_opengl.cpp:(.text+0x238c): undefined reference to `glVertexPointer'
wrapper_opengl.cpp:(.text+0x23a5): undefined reference to `glColorPointer'
wrapper_opengl.cpp:(.text+0x23b7): undefined reference to `glDrawArrays'
wrapper_opengl.cpp:(.text+0x23c1): undefined reference to `glDisableClientState'
wrapper_opengl.cpp:(.text+0x23cb): undefined reference to `glDisableClientState'
wrapper_pointtext.o: In function `DrawPointText(int, int, int, float, float, 
float, char const*)':
wrapper_pointtext.cpp:(.text+0xe6): undefined reference to `glGetFloatv'
wrapper_pointtext.cpp:(.text+0x101): undefined reference to `glPointSize'
wrapper_pointtext.cpp:(.text+0x108): undefined reference to `glBegin'
wrapper_pointtext.cpp:(.text+0x20e): undefined reference to `glVertex2f'
wrapper_pointtext.cpp:(.text+0x254): undefined reference to `glEnd'
wrapper_pointtext.cpp:(.text+0x262): undefined reference to `glPointSize'
collect2: ld returned 1 exit status
dwiniecki@dwiniecki-Latitude-E6520:~/Desktop/TurboTurtle-1.2-source$ 
;;;;;

What might I do to get this running?

Best,

_don winiecki


Original issue reported on code.google.com by dwinie...@boisestate.edu on 26 Apr 2012 at 6:23

@GoogleCodeExporter
Copy link
Author

Hi, I am usring ubuntu 10.04, I have install the openGL related development 
tools(actually i don't know how to program in 3D with openGL, i just install 
them), but i failed while compiling too:

Compiling Cube.logo to Cube.cpp
Compiling Cube.cpp to Cube.o
Compiling wrapper code
Linking wrapper code with Cube.o to produce executable Cube.
wrapper_main.o: In function `main':
wrapper_main.cpp:(.text+0x3bb): undefined reference to `glXSwapIntervalSGI'
collect2: ld returned 1 exit status

any advice?

Original comment by shenjie...@gmail.com on 17 Dec 2012 at 12:30

@GoogleCodeExporter
Copy link
Author

WRT the undefined reference to `glXSwapIntervalSGI' error, in main_wrapper.c, 
simply comment out this call.
I'm building this on Debian. It looks like it's working correctly, the graphics 
come up nicely.
Googled up similar errors to this one to see if there was a way around it. This 
is what was suggested.
I know you had this problem years ago, just answering here so that if anyone 
wants to make this code work, they should be able to now.
Cheers,
Dave

Original comment by creelman...@gmail.com on 2 Sep 2014 at 11:06

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant