Chris.W
02-18-2004, 10:09 AM
I think this is a beginners problem.
I have a opengl book where the code examples are in C. I don't know C but I do know C++.
The problem is that when I create a Win32 project in MS Visual C++ 6.0 the compiler seems to want WinMain() instead of just main.
In the code examples they use: int main(int argc, char **argv).
Well, if I write that I get an error message: berror LNK2001: unresolved external symbol _WinMain@16
In the book they use the main parameters as arguments to glutInit() and other glut functions.
I want to able to use glut instead of windows specific functions.
What should I write to get the code working with C++?.
If you don't understand, ask me questions.
Thank's.
[This message has been edited by Chris.W (edited 02-18-2004).]
I have a opengl book where the code examples are in C. I don't know C but I do know C++.
The problem is that when I create a Win32 project in MS Visual C++ 6.0 the compiler seems to want WinMain() instead of just main.
In the code examples they use: int main(int argc, char **argv).
Well, if I write that I get an error message: berror LNK2001: unresolved external symbol _WinMain@16
In the book they use the main parameters as arguments to glutInit() and other glut functions.
I want to able to use glut instead of windows specific functions.
What should I write to get the code working with C++?.
If you don't understand, ask me questions.
Thank's.
[This message has been edited by Chris.W (edited 02-18-2004).]