Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

LIBCD.lib(wincrt0.obj) : error LNK2001 1

Status
Not open for further replies.

TheMillionDollarMan

Programmer
Jun 10, 2002
132
US
Hi

I am trying to use the IDE to compile so of the OCI examples from Oracle. I can use the batch file to succesfully buuild the exe but when I try to use the IDE I get this error message:

LIBCD.lib(wincrt0.obj) : error LNK2001: unresolved external symbol _WinMain@16

Here is the code from the batch file:
cl
-IC:\Ora817\\oci\include
-I.
-D_DLL
-D_MT
%1.cpp
/link
/LIBPATH:C:\Ora817\\oci\lib\msvc oci.lib svcrt.lib
/nod:libc

Under Project->Settings->Link->Input Where it says ignore Libraries I have entered in LIBC.lib. If I try and enter in the LIBCD.lib I generate more error messages.

I have also tried understanding the complier option with
 
I don't really know whether you are writing a windows application or a console application. The message typically comes from a windows application which has main instead of winmain.

For console applications, add /subsystem:console to your link line.
For windows applications, add /subsystem:windows to your link line.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top