Archived

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

martinjy

Linking my code

Recommended Posts

Hi there... I''m not very good at c++ coding, so I guess this is pretty elementary: I use several .cpp files and one header file for my project (VC6.0). My header starts off with #if !defined _OPENGL_H_ #define _OPENGL_H_ and is terminated with #endif. Then I try to put universal variables and stuff here. Still, the compiler complains about for example "hWnd already defined in OpenGL.lib. But that''s not tru! I have not defined it twice. What is wrong?

Share this post


Link to post
Share on other sites
I had a certain relational problem like this with Dev-C++ v5.0 beta, but I did issue it twice*I didn''t know untill the darn errors came up*, try using the include:
#include "filenamehere.h" put change the "filenamehere" to the filename, and change the ".h" to a .h, .hpp, or something like that

If you care about her/him, you''''ll listen
If you love her/him, you''''ll heal his/her wounds
If you like her/him, you''''ll do all of the above, and help her/him in need

A person who cares is a person who never speaks

Share this post


Link to post
Share on other sites