Ziay Chat Forums

Ziay!

General Discussion Forum

Im programming in c++, and when i compile an error comes back saying 'linker...

This is a discussion on Im programming in c++, and when i compile an error comes back saying 'linker... within the General Chat forums, part of the Main Category category; ...error: undefined reference to __' Im programming a basic application (OpenGl to be exact) and when i compile (im using ...





Go Back   Ziay Chat Forums > Main Category > General Chat

FAQ Members List Mark Forums Read
Old 06-14-2008, 04:02 PM   #1
Dan
Junior Member
 
Join Date: Jun 2008
Posts: 12

...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
Dan is offline   Reply With Quote
Old 06-14-2008, 04:04 PM   #2
Junior Member
 
Join Date: Jun 2008
Posts: 7
Default

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
Jonny Q is offline   Reply With Quote
Old 06-14-2008, 04:21 PM   #3
Junior Member
 
Join Date: Jun 2008
Posts: 1
Default

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..
dont_trust_me is offline   Reply With Quote
Old 06-14-2008, 04:23 PM   #4
Junior Member
 
Join Date: Jun 2008
Posts: 3
Default

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.
gstoll2003 is offline   Reply With Quote

Powered by vBulletin® Version 3.7.1