Computer Science Canada Errors in Dev-C++ |
Author: | tupac [ Sat Oct 28, 2006 8:59 pm ] | ||||
Post subject: | Errors in Dev-C++ | ||||
I used to use MSVC++ to do some OpenGL work, but switched to Dev-C++ because you can get it for free, and since i use all different computers i can't keep installing MSVC++ everywhere. so i started using Dev-C++, and i realized that it was very different than using visual c++. i made some code, and tried to run it, but got 4 errors (in MSVC++ this code would compile no prob.). the code is here (this code is to make a basic openGL window):
and i get errors saying:
does anyone know what's wrong? cuz i've been trying to find out, and it's just been a living hell. thnx in advance |
Author: | md [ Sat Oct 28, 2006 10:50 pm ] |
Post subject: | |
It's a linkter error, from the looks of it not all teh glut functions are being linked. Did you add the glut to your linker line? Since your using Dev-C++ I dunnot how to do this, but using make files it's pretty easy. |
Author: | r.3volved [ Sat Oct 28, 2006 11:49 pm ] |
Post subject: | |
The MSVC++ compiler is free to download and use from Microsoft. You can set up Dev-C++ to use the VC++ compiler if you want, or simply compile via command line. It's pretty much the Visual Studio IDE that requires payment, not necessarily all the compilers. |
Author: | tupac [ Sun Oct 29, 2006 2:18 pm ] |
Post subject: | |
wow, i didnt know that i could use MSVC++ compiler in Dev-C++. well, im gonna try it out l8er cuz i dont have dev here @ the moment, but ill put an update if it worked or not. thnx for all the help |
Author: | r.3volved [ Sun Oct 29, 2006 2:21 pm ] |
Post subject: | |
I'm pretty sure you can link the IDE to different compilers... If nothing else, there's always the command line option if you want that specific compiler |
Author: | wtd [ Sun Oct 29, 2006 2:21 pm ] |
Post subject: | |
The compiler you use should not help much, if it's a link error. |
Author: | [Gandalf] [ Sun Oct 29, 2006 8:55 pm ] |
Post subject: | |
Alright, now that I'm on the computer with Dev-C++... To fix the linker error, go to: Project -> Project Options -> Parameters -> Linker and add the appropriate linker options there. |
Author: | tupac [ Mon Oct 30, 2006 3:11 pm ] |
Post subject: | |
ya, so i figured it out, all i had 2 do was just download a "glut" kit, and just intall it. the kit out all the stuff that i need to program glut, so now i just open my Dev-c++, choose file>new>project>multimedia>glut, and after doing that, i can just write the same code as i would in MSVC++ ![]() well, thnx a lot for all ure relpies |