I'm an OpenGL newbie, and I've been desperately attempting to compile some OpenGL programs without luck. So far I was only successful in getting one file compiled and run, but not the others.
I have all the correct dlls, libraries, header files installed in the correct folders. So far I've been successful only in getting this one to work:
So I extracted glsample.cpp, and I put bcc32 -tW glsample.cpp
and it compiled and worked fine.
Whereas, if I try to compile:
by using bcc32 accum.c, I got this:
Error E2141 D:\Borland\BCC55\include\G
L/gl.h 1153: Declaration syntax error
Error E2238 D:\Borland\BCC55\include\G
L/gl.h 1154: Multiple declaration for 'WINGDIAPI'
Error E2344 D:\Borland\BCC55\include\G
L/gl.h 1153: Earlier declaration of 'WINGDIAPI'
The same thing happened if I compile it this way:
bcc32 opengl32.lib glut32.lib glu32.lib accum.c
I really don't know what else to do, and if anyone can help me, I'll appreciate that! I don't really care how or what I should use to compile, as long as I can compile OpenGL programs and make them work/run.
So far, I have opengl32.lib placed in the /lib directory of my compiler (which is Borland C++), and I have glut32.h and glu32.h placed in the /include/GL directory. The correct dlls are also placed in WINNT\system32 (I am using Win2k) So if there's any more files I need to have placed, I'd be glad to know. You can also tell me any IDE of your choice, and I'll follow it.
Again, I just want to get some programs to compile and make them w-o-r-k. *grrrrrrrrr* :-)