From: Babar S. <bab...@ya...> - 2003-09-10 06:33:39
|
Hi TC, First of all you have wx.cc file with the distribution of code, you need to rename it to wx.cpp (I think u did that) and also it seems you mixed up debug and release version of libaray and wx here. just make sure both must of same build i.e Release or Debug. wxmswd.lib(imaglist.obj) : error LNK2001: unresolved external symbol :: means you are doing debug version so make sure you did the debug version of library too. also those libs must be in linking path for the final executable. for Debug version in Code Generation you have to use > Debug Multithreaded DLL (for both lib and wx) and in Release version you will use > Multithreaded DLL (for both lib and wx) Here is step by step procedure how to build wx on MSVC 6. First we make libraries and DLLs for wxWindows 1) Download wxWindows from http://wxwindows.org for VC we will have latest release: http://prdownloads.sourceforge.net/wxwindows/wxMSW-2.4.1-setup.zip (approx 12MB) 2) After running the setup it will install and create a directory for us such as wxWindows-2.4.1 if we install on D: Drive to we will have D:\wxWindows-2.4.1\ 3) Now we have to compile wxWindows for VC we have wxWindows.dsw in d:\wxWindows-2.4.1\src directory. 4) Setup include directories from VC->Tools->Options->Include directories (This is Global settings for all wxWindows projects) add D:\wxWindows-2.4.1\CONTRIB\INCLUDE and D:\wxWindows-2.4.1\INCLUDE Setup Lib directories from VC->Tools->Options->Lib directories add D:\wxWindows-2.4.1\CONTRIB\LIB and D:\wxWindows-2.4.1\LIB 5) Now from Build->Batch Build use Build to build all libraries and DLLs for us.(on my P3 667 MHz 256 MB Ram it tooks more then an hour :) ). 6) After the build process we will have all the libraires and DLLs in the lib folder it mean we are done. http://www.geocities.com/babarnazmi/wxVC.zip ( unzip project files in wx folder) or for wx we need to set up a new project 1) Create a new empty project Win32 Application. 2) I just renamed the wx.cc file from the iaxclient distribution to wx.cpp and then added iaxclient.h in this new project. 3) For Win32 Release. update Project->Settings->C/C++->General(Category) update the Preprocessor Defination to NDEBUG,WIN32,_WINDOWS,WINVER=0x400,_MT,wxUSE_GUI=1 select Category Code Generation to "Multithreaded DLL" For Win32 Debug update Project->Settings->C/C++->General(Category) update the Preprocessor Defination to _DEBUG,WIN32,_WINDOWS,WINVER=0x400,_MT,wxUSE_GUI=1,__WXDEBUG__,WXDEBUG=1 select Category Code Generation to "Debug Multithreaded DLL" 4) Now in Link Tab for Win32 Release add zlib.lib regex.lib png.lib jpeg.lib tiff.lib wxmsw.lib (for wxWidnows support) winmm.lib ws2_32.lib (for iaxcleint support) libiaxclient.lib (Win32 iaxlib must be Release version) (other then default libs) for Win32 Debug add zlibd.lib regexd.lib pngd.lib jpegd.lib tiffd.lib wxmswd.lib ( fow wxWindows support) winmm.lib ws2_32.lib (for iaxcleint support) libiaxclient.lib (Win32 iaxlib must be Debug version) (other then default libs) update the #include "iaxclient.h" to #include "..\..\..\lib\iaxclient.h" (or copy iaxclient.h to the souce directory) Build the new project and we are done. --- iax...@li... wrote: > Send Iaxclient-devel mailing list submissions to > iax...@li... > > To subscribe or unsubscribe via the World Wide Web, visit > https://lists.sourceforge.net/lists/listinfo/iaxclient-devel > or, via email, send a message with subject or body 'help' to > iax...@li... > > You can reach the person managing the list at > iax...@li... > > When replying, please edit your Subject line so it is more specific > than "Re: Contents of Iaxclient-devel digest..." > > > Today's Topics: > > 1. MS VC6, compile missing (TC) > 2. wx IAXCLient build with ms vc6 on NT4.0 (TC) > 3. Re: wx IAXCLient build with ms vc6 on NT4.0 (TC) > > Date: Mon, 08 Sep 2003 23:04:35 -0700 > From: TC <tr...@sh...> > To: iax...@li... > Reply-to: TC <tr...@sh...> > Subject: [Iaxclient-devel] wx IAXCLient build with ms vc6 on NT4.0 > > Hi ALL > Trying to compile from current iaxclient cvs wx using ms vc6, on NT4.0. > Followed the readme got the wx libs built using the supplied vc6 dsp file. > Then knocked the supplied wxVC.dsw/dsp around a bit to get lib paths & links > set up > > Any pointers to what i missed here ?? > > Building a release target I get > I:\projects\asterisk\iaxclient\simpleclient\wx\wx.cpp(285) : error C2220: > warning treated as error - no object file generated > > > Building a debug target I get > LINK : warning LNK4098: defaultlib "LIBCMTD" conflicts with use of other > libs; use /NODEFAULTLIB:library > anyone get this ?? > > Also seem to have some wx debug lib nonsense any one been there done that > or recognize these missing refs ?? > > wxmswd.lib(app.obj) : error LNK2001: unresolved external symbol > __imp__InitCommonControls@0 > wxmswd.lib(statbr95.obj) : error LNK2001: unresolved external symbol > __imp__CreateStatusWindowA@16 > wxmswd.lib(spinbutt.obj) : error LNK2001: unresolved external symbol > __imp__CreateUpDownControl@48 > wxmswd.lib(imaglist.obj) : error LNK2001: unresolved external symbol > __imp__ImageList_Create@20 > wxmswd.lib(imaglist.obj) : error LNK2001: unresolved external symbol > __imp__ImageList_Destroy@4 > wxmswd.lib(imaglist.obj) : error LNK2001: unresolved external symbol > __imp__ImageList_GetImageCount@4 > wxmswd.lib(imaglist.obj) : error LNK2001: unresolved external symbol > __imp__ImageList_GetIconSize@12 > wxmswd.lib(imaglist.obj) : error LNK2001: unresolved external symbol > __imp__ImageList_Add@12 > wxmswd.lib(imaglist.obj) : error LNK2001: unresolved external symbol > __imp__ImageList_AddMasked@12 > wxmswd.lib(imaglist.obj) : error LNK2001: unresolved external symbol > __imp__ImageList_ReplaceIcon@12 > wxmswd.lib(imaglist.obj) : error LNK2001: unresolved external symbol > __imp__ImageList_Replace@16 > wxmswd.lib(imaglist.obj) : error LNK2001: unresolved external symbol > __imp__ImageList_Remove@8 > wxmswd.lib(imaglist.obj) : error LNK2001: unresolved external symbol > __imp__ImageList_Draw@24 > wxmswd.lib(imaglist.obj) : error LNK2001: unresolved external symbol > __imp__ImageList_SetBkColor@8 > wxmswd.lib(uuid.obj) : error LNK2001: unresolved external symbol > __imp__UuidToStringA@8 > wxmswd.lib(uuid.obj) : error LNK2001: unresolved external symbol > __imp__RpcStringFreeA@4 > wxmswd.lib(uuid.obj) : error LNK2001: unresolved external symbol > __imp__UuidCreate@4 > wxmswd.lib(uuid.obj) : error LNK2001: unresolved external symbol > __imp__UuidFromStringA@8 > Debug/wxVC.exe : fatal error LNK1120: 18 unresolved externals > > --__--__-- > > _______________________________________________ > Iaxclient-devel mailing list > Iax...@li... > https://lists.sourceforge.net/lists/listinfo/iaxclient-devel > > > End of Iaxclient-devel Digest ===== God is a great Programmer __________________________________ Do you Yahoo!? Yahoo! SiteBuilder - Free, easy-to-use web site design software http://sitebuilder.yahoo.com |