Unresolved RTC externals

Hello all,

I just started using SDL today, so i’m a complete newbie. I tried running the
OpenGL sample code in the new SDL wiki, but I ran into a bunch of linking errors
(i’ve already run the .NET SDL setup tutorial). I did a search here, but
couldn’t find anything, and google only gave results in french. If anyone can
help, that would be awesome. The sample code is here:
http://www.libsdl.org/cgi/docwiki.cgi/OpenGL_20Full_20Example
Here are the errors I get:

Linking…
main.obj : error LNK2001: unresolved external symbol __fltused
main.obj : error LNK2019: unresolved external symbol __RTC_CheckEsp referenced
in function _SDL_main
main.obj : error LNK2001: unresolved external symbol __RTC_Shutdown
main.obj : error LNK2001: unresolved external symbol __RTC_InitBase
main.obj : error LNK2019: unresolved external symbol _atexit referenced in
function “void __cdecl setup_sdl(void)” (?setup_sdl@@YAXXZ)
main.obj : error LNK2019: unresolved external symbol __imp__exit referenced in
function “void __cdecl setup_sdl(void)” (?setup_sdl@@YAXXZ)
main.obj : error LNK2019: unresolved external symbol __imp__fprintf referenced
in function “void __cdecl setup_sdl(void)” (?setup_sdl@@YAXXZ)
main.obj : error LNK2001: unresolved external symbol __imp___iob
main.obj : error LNK2019: unresolved external symbol __imp__glDisable at 4
referenced in function “void __cdecl setup_opengl(void)” (?setup_opengl@@YAXXZ)
main.obj : error LNK2019: unresolved external symbol __imp__glEnable at 4
referenced in function “void __cdecl setup_opengl(void)” (?setup_opengl@@YAXXZ)
main.obj : error LNK2019: unresolved external symbol __imp__glClearColor at 16
referenced in function “void __cdecl setup_opengl(void)” (?setup_opengl@@YAXXZ)
main.obj : error LNK2019: unresolved external symbol _gluPerspective at 32
referenced in function “void __cdecl setup_opengl(void)” (?setup_opengl@@YAXXZ)
main.obj : error LNK2019: unresolved external symbol __imp__glLoadIdentity at 0
referenced in function “void __cdecl setup_opengl(void)” (?setup_opengl@@YAXXZ)
main.obj : error LNK2019: unresolved external symbol __imp__glMatrixMode at 4
referenced in function “void __cdecl setup_opengl(void)” (?setup_opengl@@YAXXZ)
main.obj : error LNK2019: unresolved external symbol __imp__glViewport at 16
referenced in function “void __cdecl setup_opengl(void)” (?setup_opengl@@YAXXZ)
main.obj : error LNK2019: unresolved external symbol @_RTC_CheckStackVars at 8
referenced in function “void __cdecl main_loop(void)” (?main_loop@@YAXXZ)
main.obj : error LNK2019: unresolved external symbol __imp__glEnd at 0 referenced
in function “void __cdecl repaint(void)” (?repaint@@YAXXZ)
main.obj : error LNK2019: unresolved external symbol __imp__glBegin at 4 referenced
in function “void __cdecl repaint(void)” (?repaint@@YAXXZ)
main.obj : error LNK2019: unresolved external symbol __imp__glRotatef at 16
referenced in function “void __cdecl repaint(void)” (?repaint@@YAXXZ)
main.obj : error LNK2019: unresolved external symbol __imp__glTranslatef at 12
referenced in function “void __cdecl repaint(void)” (?repaint@@YAXXZ)
main.obj : error LNK2019: unresolved external symbol __imp__glClear at 4 referenced
in function “void __cdecl repaint(void)” (?repaint@@YAXXZ)
main.obj : error LNK2019: unresolved external symbol __imp__glVertex3fv at 4
referenced in function "void __cdecl subdivide(float * const,float * const,float

  • const,int)" (?subdivide@@YAXQAM00H at Z)
    main.obj : error LNK2019: unresolved external symbol __imp__glColor3fv at 4
    referenced in function "void __cdecl subdivide(float * const,float * const,float
  • const,int)" (?subdivide@@YAXQAM00H at Z)
    LINK : error LNK2001: unresolved external symbol _mainCRTStartup
    Debug/engine.exe : fatal error LNK1120: 24 unresolved externals

What is the command you are using to do the linking?

If you are a complete newbie you might try an example without OpenGL first.

Good luck,
ChrisOn Apr 11, 2005 12:33 AM, Ron H wrote:

Hello all,

I just started using SDL today, so i’m a complete newbie. I tried running the
OpenGL sample code in the new SDL wiki, but I ran into a bunch of linking errors
(i’ve already run the .NET SDL setup tutorial). I did a search here, but
couldn’t find anything, and google only gave results in french. If anyone can
help, that would be awesome. The sample code is here:
http://www.libsdl.org/cgi/docwiki.cgi/OpenGL_20Full_20Example
Here are the errors I get:

Linking…


E-Mail: Chris Nystrom
Business: http://www.shaklee.net/austin
Blog: http://conversazione.blogspot.com/
AIM: nystromchris