Sunday, July 12, 2009

Im programming in c++, and when i compile an error comes back saying 'linker error: undefined reference to __'

Im programming a basic application (OpenGl to be exact) and when i compile (im using bloodshed) i get (almost 20) errors saying 'linker error: undefined reference to _____' any help.. how do i fix this, do i have to fix the #include? or define specific variables?


thanks


dan

Im programming in c++, and when i compile an error comes back saying 'linker error: undefined reference to __'
A linker error means that you have the correct header files included (so your #include's are fine), but you're not linking to the correct libraries (usually .lib files). You need to find the libraries (usually in a lib folder near the include files) and tell the linker to use them.
Reply:i think your bin directory is not defined properly. i programmed in turbo c++, so i dont really know where it would be in bloodshed, but it should be somewhere around "Directories" setting under some tools/options/preferences thingies
Reply:these errors r generally encountered when u change ur directory or u wanna save files in a different folder..





try copying all the header files to the forder 're using.... or change the settings(for directory of header files) in the IDE that u're using..

poppy

No comments:

Post a Comment