Advertisement

Lesson 1

Started by June 04, 2002 06:22 PM
5 comments, last by Kaizton 22 years, 8 months ago
I''ve written out the code exactly as it says in the lesson, but upon compiling, it comes up with "Fatal: Unable to open file ''C0X32.obj''". I''m using the Borland command line compiler, and that''s the only error. I specify the Lib directory (where c0x32.obj is) so that''s not the problem. Also, when I try to compile the same program using Turbo C++ 4.5, I get these error messages in gl.h: "Declaration syntax error" and "Variable WINGDIAPI initialized more than once". Any help is appreciated and needed.
include windows.h before gl.h
Advertisement
I have, it still doesn''t work.
Try specifying full path to the .obj file on your command line, along with the .cpp file you''re trying to compile.
---visit #directxdev on afternet <- not just for directx, despite the name
Now it comes up with "Error: Unresolved external ''_main'' referenced from D:\Borland\BCC55\LIB\C0X32.OBJ" It seems to be alternating between this message and the first one I posted. Might there be something wrong with the .obj file? I could redownload it...
C0X32.obj is for console apps with a main() function. C0W32.obj is for windows apps with a WinMain function.

Firebird Entertainment
“[The clergy] believe that any portion of power confided to me, will be exerted in opposition to their schemes. And they believe rightly: for I have sworn upon the altar of God, eternal hostility against every form of tyranny over the mind of man” - Thomas Jefferson
Advertisement
i use same compiler and ran into same problem
make sure you use -tW option(case sensitive, make sure to use capital W) because that option specifies that this program is a win32 program.
..I still dont get the difference between c and c++...

This topic is closed to new replies.

Advertisement