Guidance
指路人
g.yi.org
Guidance Forums / wxWidgets (wxWindows) in C++ / problems when compiling wsWindows examples

Register 
注册
Search 搜索
首页 
Home Home
Software
Upload

  
Forum List • Thread List • Reply • Refresh • New Topic • Search • Previous • Next First 1 Last
Message1. problems when compiling wsWindows examples
#2566
Posted by: am 2003-08-27 02:35:09
On Dev-Cpp ver. 4.9.8, installed WxWindows-2.4.0.DevPak and
WxWindows-2.4.0-contribs.DevPak

Loading up Dev-Cpp with file->new->projectGUI->wxWindows works.

I have problems when I try to run examples of contribution
(which are mainly in MS VisualC++) on Dev-Cpp.

I did the following:

1) from Plot example directory, copied files plot.cpp, plot.rc, plotVC.dsp
in a new directory
2) imported plotVC.dsp file in Dev-Cpp successfully

With this procedure the following file plot.dev is obtained

....
Compiler=-D__GNUWIN32__ -W -finline-functions -DNDEBUG -DWIN32 -D_WINDOWS
-D__WINDOWS__ -D__WXMSW__ -D__WIN95__ -D__WIN32__ -DWINVER=0x0400 -DSTRICT

CppCompiler=-D__GNUWIN32__ -W -finline-functions -DNDEBUG -DWIN32 -D_WINDOWS
-D__WINDOWS__ -D__WXMSW__ -D__WIN95__ -D__WIN32__ -DWINVER=0x0400 -DSTRICT

Includes=../../../contrib/include;../../../lib/mswd

Linker=-lkernel32 -luser32 -lgdi32 -lwinspool -lcomdlg32 -ladvapi32
-lshell32 -lole32 -loleaut32 -luuid -lodbc32 -lodbccp32 -lcomctl32 -lrpcrt4
-lwsock32 -lwinmm -lwxmsw -lpng -lzlib -ljpeg -ltiff -lregex -lplot

Libs="../../../lib";"../../../contrib/lib"
....

Replacing Includes= and Libs= with the proper addresses and compiling
the compiler says that wxmsw is not existing.

Replacing this library with -lwxmswu generate a lot of linker errors for undefined references.

Should I recompile wxwindows source file to get libwxmsw? Or there is a 
a DevPak just available? Thanks for any suggestion.
Message2. Re: problems when compiling wsWindows examples
#2568
Posted by: guidance 2003-08-27 06:36:23 Last edited by: guidance 2011-06-14 09:45:58 (Total edited 1 time)
Try this: http://www.guit.tk/?f=561
Forum List • Thread List • Reply • Refresh • New Topic • Search • Previous • Next First 1 Last
掌柜推荐
 
 
 
 
 
 
 
 
 
 
 
 
© Sun 2022-12-4  Guidance Laboratory Inc.
Email:webmaster1g.yi.org Hits:0