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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

linking wxWindows 1.67

Status
Not open for further replies.

Matte2111

Programmer
Oct 9, 2001
3
IT
Hi.
I've a problm linking wxWinows library to my application. I'm bulding my project with Microsfot Visual Studio 6.0 with NT4.
Main parameters of my project are:
1.
Project Options (Debug mode)
/nologo /MLd /W3 /Gm /GR /GX /ZI /Od /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /D "_MBCS" /D "__NT__" /Fp"Debug/apn_new.pch" /YX /Fo"Debug/" /Fd"Debug/" /FD /GZ /c
2.
Link object/libraries:
wxstring.lib wx32.lib rcparser.lib prologio.lib itsy.lib gauge.lib fafa.lib dib.lib ctl3d32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib
3.
code generation:
debug single/Threaded
4.
Precompiled headers:
automatic use of precompiled headers
5.
Not Using MFC (but I've used MFC static library to build the wxWindows library...)

I get this error message:
----Configuration: apn_new - Win32 Debug-----
Linking...
LIBCD.lib(wincrt0.obj) : error LNK2001: unresolved external symbol _WinMain@16
Debug/apn_new.exe : fatal error LNK1120: 1 unresolved externals
Error executing link.exe.
apn_new.exe - 2 error(s), 0 warning(s)

I've already tried to undefine libcd.lib and libcid.lib, but it doesn't work...
I know it'd be better to use a more recent version of wxWindows, but I can't...

Thanks!
Matte
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top