Then, I created the program described in a wxwindows tutorial at http://www.bzzt.net/~wxwindows/icpp_wx1.html
I got 130-something linker errors, all "unresolved symbol." I changed the linker settings to include all the wxWindows .lib files, and tried again, and got 28 linker errors.
Changing the tutorial's include line #include <wx/wx.h> to the block of code at the top of http://wxwindows.org/manuals/2.4.2/wx11.htm didn't help any.
The sample program "dialogs" from the archive compiled and ran flawlessly.
Below is my linker output. I only have a vague idea as to what all this means. Could someone please give me a hint as to how to fix this?
Thanks in advance.
~Dr. Moose
--------------------Configuration: wxWindowsTest - Win32 Release--------------------
Compiling...
wxtst.cpp
Linking...
MSVCRT.lib(MSVCRT.dll) : error LNK2005: _free already defined in LIBC.lib(free.obj)
MSVCRT.lib(MSVCRT.dll) : error LNK2005: _exit already defined in LIBC.lib(crt0dat.obj)
MSVCRT.lib(MSVCRT.dll) : error LNK2005: _malloc already defined in LIBC.lib(malloc.obj)
MSVCRT.lib(MSVCRT.dll) : error LNK2005: _realloc already defined in LIBC.lib(realloc.obj)
MSVCRT.lib(MSVCRT.dll) : error LNK2005: _tolower already defined in LIBC.lib(tolower.obj)
MSVCRT.lib(MSVCRT.dll) : error LNK2005: _memmove already defined in LIBC.lib(memmove.obj)
MSVCRT.lib(MSVCRT.dll) : error LNK2005: _strncpy already defined in LIBC.lib(strncpy.obj)
MSVCRT.lib(MSVCRT.dll) : error LNK2005: _abort already defined in LIBC.lib(abort.obj)
LINK : warning LNK4098: defaultlib "MSVCRT" conflicts with use of other libs; use /NODEFAULTLIB:library
wxmsw.lib(app.obj) : error LNK2001: unresolved external symbol __imp__InitCommonControls@0
wxmsw.lib(statbr95.obj) : error LNK2001: unresolved external symbol __imp__CreateStatusWindowA@16
wxmsw.lib(utils.obj) : error LNK2001: unresolved external symbol _WSACleanup@0
wxmsw.lib(utils.obj) : error LNK2001: unresolved external symbol _gethostbyaddr@12
wxmsw.lib(utils.obj) : error LNK2001: unresolved external symbol _gethostbyname@4
wxmsw.lib(utils.obj) : error LNK2001: unresolved external symbol _gethostname@8
wxmsw.lib(utils.obj) : error LNK2001: unresolved external symbol _WSAStartup@8
wxmsw.lib(spinbutt.obj) : error LNK2001: unresolved external symbol __imp__CreateUpDownControl@48
wxmsw.lib(imaglist.obj) : error LNK2001: unresolved external symbol __imp__ImageList_Create@20
wxmsw.lib(imaglist.obj) : error LNK2001: unresolved external symbol __imp__ImageList_Destroy@4
wxmsw.lib(imaglist.obj) : error LNK2001: unresolved external symbol __imp__ImageList_GetImageCount@4
wxmsw.lib(imaglist.obj) : error LNK2001: unresolved external symbol __imp__ImageList_GetIconSize@12
wxmsw.lib(imaglist.obj) : error LNK2001: unresolved external symbol __imp__ImageList_Add@12
wxmsw.lib(imaglist.obj) : error LNK2001: unresolved external symbol __imp__ImageList_AddMasked@12
wxmsw.lib(imaglist.obj) : error LNK2001: unresolved external symbol __imp__ImageList_ReplaceIcon@12
wxmsw.lib(imaglist.obj) : error LNK2001: unresolved external symbol __imp__ImageList_Replace@16
wxmsw.lib(imaglist.obj) : error LNK2001: unresolved external symbol __imp__ImageList_Remove@8
wxmsw.lib(imaglist.obj) : error LNK2001: unresolved external symbol __imp__ImageList_Draw@24
wxmsw.lib(imaglist.obj) : error LNK2001: unresolved external symbol __imp__ImageList_SetBkColor@8
Release/wxWindowsTest.exe : fatal error LNK1120: 19 unresolved externals
Error executing link.exe.
wxWindowsTest.exe - 28 error(s), 1 warning(s)
Follow (STEP-BY-STEP!!!) the the MSVC Setup Guide page in wxWindows Wiki
(http://wiki.wxwindows.org/wiki.pl?MSVC_Setup_Guide).
For example, the first errors are due to the fact that your are not
linking the (Debug) Multithreaded DLLs but static ones...
Bye and merry wxWindow-ing!!!!
Alessandro Coppo
a.coppo-AT-iol.it
www.geocities.com/alexcoppo