I am getting following error when I am building my C program

I am getting following error when I am building my C program

Post by friend.0 » Sun, 01 Oct 2006 23:56:41


I am able to compile the program, but while building it I am getting
following error,can any explain when does this error mean.


Command Lines
Creating temporary file "C:\DOCUME~1\isis\LOCALS~1\Temp\RSP6E.tmp" with
contents
[
kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib
advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib
odbccp32.lib /nologo /subsystem:windows /incremental:yes
/pdb:"Debug/ENEE_WIN.pdb" /debug /machine:I386
/out:"Debug/ENEE_WIN.exe" /pdbtype:sept
.\Debug\graph.obj
.\Debug\main.obj
]
Creating command line "link.exe
@C:\DOCUME~1\isis\LOCALS~1\Temp\RSP6E.tmp"
Output Window
Linking...
LIBCD.lib(wincrt0.obj) : error LNK2001: unresolved external symbol
_WinMain@16
Debug/ENEE_WIN.exe : fatal error LNK1120: 1 unresolved externals
Error executing link.exe.
 
 
 

I am getting following error when I am building my C program

Post by clayn » Mon, 02 Oct 2006 00:15:56


I've seen this error somewhere before. Best bet is to reformat the hard
drive and install a unix variant on it - usually fixes it.

 
 
 

I am getting following error when I am building my C program

Post by Tim Princ » Mon, 02 Oct 2006 00:24:51


It says you haven't passed a main() .obj to the linker. Either there is
no main() in your source or libraries, or the compile failed. As to
the snide remarks, it is equally possible to see such a problem on other
suggested OS.
 
 
 

I am getting following error when I am building my C program

Post by osmiu » Mon, 02 Oct 2006 00:46:26

"friend.05" writes:


That looks kind of familiar. Browse the existing messages on a newsgroup or
forum or whatever related to your compiler. If you come up empty, post your
question there.
 
 
 

I am getting following error when I am building my C program

Post by clayn » Mon, 02 Oct 2006 00:48:26


Pretty sure I won't be seeing unresolved errors for _WinMain on any
serious OS I use anytime soon. :P

Effort in, effort out.
 
 
 

I am getting following error when I am building my C program

Post by jacob navi » Mon, 02 Oct 2006 01:25:42


Windows programs need an entry point called
WinMain

Programs to be run in the console use the standard main()
procedure. Just link your program as a console application
and you will solve this problem.
 
 
 

I am getting following error when I am building my C program

Post by Richard He » Mon, 02 Oct 2006 01:30:42

Tim Prince said:



No, it doesn't.


Not this one.

--
Richard Heathfield
"Usenet is a strange place" - dmr 29/7/1999
http://www.yqcomputer.com/
email: rjh at above domain (but drop the www, obviously)