Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

DotDKay

How to compile with Visual c++.net?

This topic is 5279 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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?

Share this post


Link to post
Share on other sites
Advertisement
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.

Share this post


Link to post
Share on other sites
Guest 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

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites
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]

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
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

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
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...

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!