Hi ... Newbie here and I registrated today ... Now to my problem ... im currently testing Nehe:s Opengl tutorials and when I tries to compile the cpp code I gets this message:
Error: Unresolved external ''_main'' referenced from
C:\BC\LIB\C0X32.OBJ
Does anyone know why I get it and what I should do to get ride of it ???
(Getting a little mad because I just spent 3 hours trying to make all the lib files and such to work(Which they does now))
Error: Unresolved external '_main'
Started by noiser, Aug 08 2001 02:21 AM
9 replies to this topic
Sponsor:
#2 Moderators - Reputation: 1315
Posted 08 August 2001 - 04:26 AM
You created a console application, you need to create a Win32 application (for the project).
------------------------------
Trent (ShiningKnight)
E-mail me
Shining Darkness- A division of Chromesphere Studios
------------------------------
Trent (ShiningKnight)
E-mail me
Shining Darkness- A division of Chromesphere Studios
#8 Members - Reputation: 122
Posted 09 August 2001 - 08:45 PM
I am only used to borland''s commandline compiling.
The way to do is
1) pragmas - add the following at the start of the code
#pragma comment(lib, "PATH/LIBRARY")
#pragma comment(lib, more libraries)
Path = directory of library.
2) use -LPATH -lLibrary
The way to do is
1) pragmas - add the following at the start of the code
#pragma comment(lib, "PATH/LIBRARY")
#pragma comment(lib, more libraries)
Path = directory of library.
2) use -LPATH -lLibrary
#9 Members - Reputation: 122
Posted 09 August 2001 - 09:58 PM
Error: ''C:\BC5\LIB\GL\GLAUX.LIB'' contains invalid OMF record, type 0x21
Error: ''C:\BC5\LIB\GLAUX.LIB'' contains invalid OMF record, type 0x21
It makes no differense which one I choose ...
One problem solved ... Another one appers ...
Any clues ???
(Wants visual c++, But only got Borland)
Error: ''C:\BC5\LIB\GLAUX.LIB'' contains invalid OMF record, type 0x21
It makes no differense which one I choose ...
One problem solved ... Another one appers ...
Any clues ???
(Wants visual c++, But only got Borland)






