Advertisement

How to compile with Visual c++.net?

Started by June 01, 2004 02:25 PM
5 comments, last by DotDKay 20 years, 6 months ago
Okay, I normally used the 6.0 Edition of Visual C++, but now I got the Visual C++.net edition. But I can´t find out how to compile the Nehe Lessons. What should I put in the linker information, and how? And a second question, can I just use the Visual C++ 6.0 source code?
Did you even try compiling it under VC.NET? What errors do you get?

You should never let your fears become the boundaries of your dreams.
You should never let your fears become the boundaries of your dreams.
Advertisement
haha, just open the old visual studio 6.0 project files with your new visual studio... it will ask if you want to convert them, say yes & then try it out
I get a fatal error in the last line, as the only error, when i Just copy/paste the code, so Im sure it has something to do with the Linker, and I dont know where I should insert these:
OpenGL32.lib GLu32.lib and GLaux.lib

So my question is basicly, how do I compile the lesson 1 from Nehe´s Opengl lessons. http://nehe.gamedev.net/data/lessons/lesson.asp?lesson=01

How do I do it from the ground up?

quote: Original post by Anonymous Poster
haha, just open the old visual studio 6.0 project files with your new visual studio... it will ask if you want to convert them, say yes & then try it out


I wan´t to know how I set up a new Opengl program, where I should put those file in the Linker and such things. Not how I just open my old project files.
It could be an unresolved external symbol error, have you linked the libraries?
If not try:

#pragma comment(lib,"opengl32.lib") // or any other library file
EDIT: place those lines somewhere in the source or header file.

[edited by - Tree Penguin on June 2, 2004 2:04:08 PM]
quote: Original post by DotDKay
I get a fatal error in the last line, as the only error, when i Just copy/paste the code, so Im sure it has something to do with the Linker

Why don''t you just post the error? Much more efficient than having us play guessing games
Advertisement
its because he didn''t actually open the project files... he tried to make project files of his own & he didn''t link to those libraries... so either do those pragma statements like tree penguin said or add the names of those lib files in the project settings

if you aren''t going to take advantage of vs7.0, why don''t you just go back to gcc or g++ or something, seriously...

This topic is closed to new replies.

Advertisement