Q) Compiling opengl in Visual .net
HI, I was trying to run the Lesson 1 in C++ .net, and I can''t find or how to link the OpenGL32.lib GLu32.lib and GLaux.lib into the project. So I am getting some type of _main bla bla bla errors. It worked fine in Visual C++ 6.0 , but not in C++ .net. Does anybody know about this ? Please help~!!
Song,
choesh
choesh
use
#pragma comment(lib, "OpenGL32.lib");
#pragma comment(lib, "GLu32.lib");
#pragma comment(lib, "GLaux.lib");
in your source code. this way is much better than including these libs by setting up the project options.
#pragma comment(lib, "OpenGL32.lib");
#pragma comment(lib, "GLu32.lib");
#pragma comment(lib, "GLaux.lib");
in your source code. this way is much better than including these libs by setting up the project options.
November 01, 2002 09:57 AM
You can also right-click the project name in solution explorer, then go to Properties...
Click the Linker folder on the left hand side, and go to the Input tab in that folder.
You can add your libraries to link with under "Additional Dependencies"
Yes, it''s more complicated... :-)
Click the Linker folder on the left hand side, and go to the Input tab in that folder.
You can add your libraries to link with under "Additional Dependencies"
Yes, it''s more complicated... :-)
6.0 Projects and Workspaces will be converted to 7.0 format when you load them, but nearly everything I''ve tried can then be compiled without alteration. To start a new non .NET C++ project just create a new Win32 Project under Visual C++ Projects. You can then choose either console or windows (they were separate options in 6.0 IIRC).
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement