• Advertisement

Archived

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

Error: Unresolved external '_main'

This topic is 6011 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

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
Advertisement
..........!!!!!!!........... LOL !!!
I didnt thought of that ... Thanks .. ! ..

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
Yea ... But the tutorial only shows how to do it for visual c++ ... And Im using Borland c++ 5.02 ...

Edited by - noiser on August 9, 2001 5:15:45 AM

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
Your glaux.lib is in coff format, not omf format. Run coff2omf.exe on it, or find a borland-compatible glaux.lib on the internet.

Share this post


Link to post
Share on other sites

  • Advertisement