General Discussion Forum
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 ...
| |||||||
| FAQ | Members List | Mark Forums Read |
| | #1 |
| 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 |
| | |
| | #2 |
| Junior Member Join Date: Jun 2008
Posts: 7
| 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 |
| | |
| | #3 |
| Junior Member Join Date: Jun 2008
Posts: 1
| 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.. |
| | |
| | #4 |
| Junior Member Join Date: Jun 2008
Posts: 3
| 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. |
| | |