Archived

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

noiser

Error: Unresolved external '_main'

Recommended Posts

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))

Share this post


Link to post
Share on other sites
hmm ... Yet another newbie question ...

Error: Unresolved external ''auxDIBImageLoadA'' referenced from D:\CPP LÄXA\LESSON19\TEST.OBJ

I get this error when trying to compile the code from lesson 19 ... Got any clue of whats wrong =?=

Share this post


Link to post
Share on other sites
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

Share this post


Link to post
Share on other sites
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)

Share this post


Link to post
Share on other sites