Archived

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

In VC++, can't make a project

This topic is 6479 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

I''m really new to C++ and all, so its a stupid question, but I am using Microsoft Visual C++ 4.0, and I want to be able to modify the code and what not, so I need to make a project for it. I downloaded the .cpp files and all (because I didn''t want to screw up when I wrote them), and I tried to make a project using it, but every time I do, I get 22 errors. Mostly about undeclared identifiers and such. I linked the 3 .libs the tut said to link, but I still can''t get it to work. Could someone please email me there project files to spiper@cmc.net. Or email a message on how to do it. I though I had followed the tuts instructions fairly well. Please help, thank you in advance.

Share this post


Link to post
Share on other sites
Have you downloaded the OPENGL from microsoft and added the INCLUDES and LIBS to VC++ so it can use them?

Share this post


Link to post
Share on other sites
Yes, I''ve downloaded opengl, the normal one (for gamers and stuff) so I can run other demos when they are in .exe form, and I''ve downloaded the opengl sdk, and I can compile other programs, like a project that I downloaded from a tut off opengl.org. So I know that I have a working version of opengl and all. I think that I am just having some sort of problem with setting up Microsoft VC++, because it is version 4.0.

Share this post


Link to post
Share on other sites
This is what you do (step-by-step)
1) Create a new Win32 Application (NOT console app)
2) Create a new C/C++ source code file
3) Write your code
4) On the workspace bar (the bar on the left), right click
(PROJECT NAME) files.
5) Click on settings
6) Go over to the link tab and add these libs:
OpenGL32.lib GLu32.lib GLaux32.lib
7) compile

If that doesn''t work, I''m not sure what''s wrong. But, it should commpile. Good luck.

"When people tell you they want to hear the truth, you know that their lying."

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
Two things:

1) You can download all of the source for the tutorials at the end of each tutorial. You''ll get a zip file with everything you need included.

2) the very first tutorial (you always start at step 1 when you build something right?) explains in more detail than should be neccesary how to link opengl libraries and how to build the projects.

Share this post


Link to post
Share on other sites
I''ve tried all of these things, plus a hundered other things, but nothing works. I can compile other sources with ease, but Nehe''s source seems to hate me. Please I''m begging, some1 please send me the project files. Email it to me at spiper@cmc.net It can''t be that hard for ya all, just a few seconds to make the project in any version of Microsoft Visual C++, and send it to me.

Share this post


Link to post
Share on other sites