PDA

View Full Version : What's an "[Linker error] undefined reference to..."


mouse
06-02-2003, 06:47 AM
Hi there,

I've just downloaded a bunch of files so I can do SDL stuff. Using some sample code from a gametutorials.com tutorial I recieve a large number of errors like the following:[Linker error] undefined reference to `SDL_WM_ToggleFullScreen'So something's obviously wrong, is it the sample code or are my headerfiles b0rked?

Jason
06-02-2003, 07:09 PM
I don't think its the header files, I think its the sample code, it would appear that its making reference to files that can't be found so the link would be like a shortcut the only problem is the other end of the shortcut doesn't exist.


Jason

chrismiceli
06-08-2003, 04:35 AM
it can not find your developement files for sdl (the .h files and stuff). if you are using linux, make sure you have sdl and sdl-devel installed if your are using rpms or compile it from source.

BloodXero
06-12-2003, 05:34 AM
did you link with the SDL library file? its probably a .a or .lib file.