Developer forums (C::B DEVELOPMENT STRICTLY!) > Development
help me please! I compile the codeblock but failed!
boyeestudio:
:? :? :? :? :? :? :? :? :? :? :?
Switching to target: scintilla
Linking dynamic library: devel\wxscintilla.dll
C:\Program Files\CodeBlocks\bin\..\libexec\gcc\mingw32\3.4.4\ld.exe: cannot find -lwxmsw26
collect2: ld returned 1 exit status
Process terminated with status 1 (0 minutes, 21 seconds)
1 errors, 0 warnings
:? :? :? :? :? :? :? :? :? :? :?
I have compile the wxWidgets but I can't find the file wxmsw26 in the lib directory.
And I use the wxWidgets 2.6.2 on the Windows.
Please give me some help!Thanks a lot!
tiwag:
there is a bug in the project file CodeBlocks-NewBuild.cbp
if you are using a standard wx-wigdets installation
(standard == built without using the CFG=NonUnicode makefile build parameter)
first look, where youre libwxmsw26.a is on your harddisk,
if you have done a standard wx-widgets installation, it should be located in
<wx262>\lib\gcc_dll\libwxmsw26.a
if so, do the following:
go to Project->Build options->"Directories"->"Linker"
edit the line
$(#WX.lib)\gcc_dll\msw
to
$(#WX.lib)\gcc_dll
or delete it completely, in this case you have to you go to the Tab "Custom variables"
and edit the variable WX_CFG to what you used during your wx-widgets build, standard is a empty string.
280Z28:
Edit: This post had bad ideas :o
See here for better:
http://forums.codeblocks.org/index.php?topic=1633.msg11822#msg11822
boyeestudio:
--- Quote from: tiwag on December 14, 2005, 08:21:41 am ---there is a bug in the project file CodeBlocks-NewBuild.cbp
if so, do the following:
go to Project->Build options->"Directories"->"Linker"
edit the line
$(#WX.lib)\gcc_dll\msw
to
$(#WX.lib)\gcc_dll
or delete it completely, in this case you have to you go to the Tab "Custom variables"
and edit the variable WX_CFG to what you used during your wx-widgets build, standard is a empty string.
--- End quote ---
the wxWidgets I compiled with VC++ 6.0. I can't find the directory $(WX.lib)\gcc_dll but find $(WX.lib)\mswd subdirectory.
and it is nothing but a file .\wx\setup.h in it.
tiwag:
you have to build wx-widgets with mingw gcc in order to build CodeBlocks - read the wiki and get familiar with the search button.
Navigation
[0] Message Index
[#] Next page
Go to full version