User forums > Help
wxWidgets - last night build, and problem
(1/1)
skiter:
Hi.
I install las _night build_ from 30.01.08, and las wx 2.8.7, i use also:
http://wiki.codeblocks.org/index.php?title=WxWindowsQuickRef
And still have problem:
--- Quote ---[100.0%] mingw32-g++.exe -LC:\wxWidgets-2.8.7\lib\gcc_lib -L"C:\Program Files\CodeBlocks\dev\lib" -o wxTlen.exe .objs\wxTlenApp.cpp.o .objs\wxTlenMain.cpp.o .objs\resource.rc.res -s C:\wxWidgets-2.8.7\lib\gcc_lib\libwxmsw28u.a -lkernel32 -luser32 -lgdi32 -lwinspool -lcomdlg32 -ladvapi32 -lshell32 -lole32 -loleaut32 -luuid -lcomctl32 -lwsock32 -lodbc32 -lwxmsw -mwindows
C:\Program Files\CodeBlocks\bin\..\lib\gcc\mingw32\3.4.4\..\..\..\..\mingw32\bin\ld.exe: cannot find -lwxmsw
collect2: ld returned 1 exit status
Process terminated with status 1 (0 minutes, 0 seconds)
1 errors, 0 warnings
--- End quote ---
Can someone can tell me where? Is this "wxmsw"? I tray to look in Project XML, but maybe im blind?
--- Quote ---<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<CodeBlocks_project_file>
<FileVersion major="1" minor="6" />
<Project>
<Option title="wxTlen" />
<Option pch_mode="2" />
<Option compiler="gcc" />
<Option extended_obj_names="1" />
<Build>
<Target title="wxTlen">
<Option output="wxTlen" prefix_auto="1" extension_auto="1" />
<Option type="0" />
<Option compiler="gcc" />
<Option projectLinkerOptionsRelation="2" />
<Compiler>
<Add option="-O2" />
<Add directory="$(#wx)\lib\gcc_lib\msw" />
</Compiler>
<ResourceCompiler>
<Add directory="$(#wx)\lib\gcc_lib\msw" />
</ResourceCompiler>
<Linker>
<Add option="-s" />
<Add library="$(#wx.lib)\gcc_lib\libwxmsw28u.a" />
<Add directory="$(#wx)\lib\gcc_lib" />
</Linker>
</Target>
</Build>
<Compiler>
<Add option="-Wall" />
<Add option="-pipe" />
<Add option="-mthreads" />
<Add option="-D__GNUWIN32__" />
<Add option="-D__WXMSW__" />
<Add directory="$(#wx)\include" />
<Add directory="$(#wx)\contrib\include" />
<Add directory="$(#wx.lib)\gcc_lib\mswu" />
</Compiler>
<ResourceCompiler>
<Add directory="$(#wx)\include" />
</ResourceCompiler>
<Linker>
<Add library="libkernel32.a" />
<Add library="libuser32.a" />
<Add library="libgdi32.a" />
<Add library="libwinspool.a" />
<Add library="libcomdlg32.a" />
<Add library="libadvapi32.a" />
<Add library="libshell32.a" />
<Add library="libole32.a" />
<Add library="liboleaut32.a" />
<Add library="libuuid.a" />
<Add library="libcomctl32.a" />
<Add library="libwsock32.a" />
<Add library="libodbc32.a" />
</Linker>
<Unit filename="resource.rc">
<Option compilerVar="WINDRES" />
</Unit>
<Unit filename="wxTlenApp.cpp" />
<Unit filename="wxTlenApp.h" />
<Unit filename="wxTlenMain.cpp" />
<Unit filename="wxTlenMain.h" />
<Extensions>
<code_completion />
<envvars set="default" />
<debugger />
</Extensions>
</Project>
</CodeBlocks_project_file>
--- End quote ---
Project anc compiler need this link but i can't! remove from project? Soo that means C::B have this included in SRC? This is a joke or what?
stahta01:
Try removing the line containing wxmsw28u; and see if the error changes. I would look under "linker settings" then "other linker options" and "Linker Libraries".
--- Code: ---<Add library="$(#wx.lib)\gcc_lib\libwxmsw28u.a" />
--- End code ---
Tim S
Biplab:
--- Quote from: skiter on January 31, 2008, 09:11:46 am ---Project anc compiler need this link but i can't! remove from project? Soo that means C::B have this included in SRC? This is a joke or what?
--- End quote ---
This is not a Joke. But definitely you made a mess of your C::B installation.
Look under Settings > Compiler and debugger section. (Sorry, at the moment I don't have a C::B installation and thus I can't point to the exact location.) I suspect you have added wxmsw library there. In that case that library would be added to all the projects irrespective of whether they need it or not.
Navigation
[0] Message Index
Go to full version