Hi,
I compiled version 2.6.2
As for the linker search path, I haven't added or changed anything manually. In Project>>Build Options>>Directories tab>>Linker tab I have:
$(WX_DIR)\lib\gcc_dll$(WX_CFG)
Hi,
I compiled version 2.6.2
As for the linker search path, I haven't added or changed anything manually. In Project>>Build Options>>Directories tab>>Linker tab I have:
$(WX_DIR)\lib\gcc_dll$(WX_CFG)
Add to linker.
$(WX_DIR)\lib\gcc_dll
$(WX_DIR)\lib\gcc_dll\msw
Add to compiler.
$(WX_DIR)\include
$(WX_DIR)\lib\gcc_dll
$(WX_DIR)\lib\gcc_dll\msw
And change your WX_DIR to "C:\wxWidgets".
Your compiler defines should have WXUSINGDLL or something like that. I use static can't remerber what that option was....
Could you attach your project file (*.cbp)?
Could you attach your project file (*.cbp)?
Here it is, minus the corrections you suggested earlier.
<?xml version="1.0"?>
<!DOCTYPE CodeBlocks_project_file>
<CodeBlocks_project_file>
<FileVersion major="1" minor="1"/>
<Project>
<Option title="wxWidgets application"/>
<Option makefile="Makefile"/>
<Option makefile_is_custom="0"/>
<Option compiler="0"/>
<Build>
<Target title="default">
<Option output="C:\test\wxWidgets.exe"/>
<Option working_dir="."/>
<Option object_output=".objs"/>
<Option deps_output=".deps"/>
<Option type="0"/>
<Option compiler="0"/>
<Option projectResourceIncludeDirsRelation="0"/>
</Target>
<Environment>
<Variable name="WX_DIR" value="C:\wxWidgets"/>
<Variable name="WX_CFG" value=""/>
</Environment>
</Build>
<Compiler>
<Add option="-pipe"/>
<Add option="-mthreads"/>
<Add option="-Winvalid-pch"/>
<Add option="-include "wx_pch.h""/>
<Add option="-D__GNUWIN32__"/>
<Add option="-D__WXMSW__"/>
<Add option="-DWXUSINGDLL"/>
<Add option="-DUSE_PCH"/>
<Add directory="$(WX_DIR)\include"/>
<Add directory="$(WX_DIR)\lib\gcc_dll$(WX_CFG)\msw"/>
<Add directory="$(WX_DIR)\contrib\include"/>
</Compiler>
<ResourceCompiler>
<Add directory="$(WX_DIR)\include"/>
</ResourceCompiler>
<Linker>
<Add library="wxmsw26"/>
<Add directory="$(WX_DIR)\lib\gcc_dll$(WX_CFG)"/>
</Linker>
<Unit filename="wx_pch.h">
<Option compilerVar="CPP"/>
<Option link="0"/>
<Option weight="0"/>
<Option target="default"/>
</Unit>
</Project>
</CodeBlocks_project_file>
WX_DIR is defined, according to the cbp file above::oops: I use the search function to find in your .cbp file seems like I missed out ..
...
<Variable name="WX_DIR" value="C:\wxWidgets"/>
...
C:\> CD \wxWidgets
C:\wxWidgets> DIR lib*wx*.a /s /b
When searching for wxmsw* nothing was found.
...
The problem is really starting to annoy me. Thanks for your help.
Can you be more specific with your fix please? I'm having the same issue. What particular environment variable did you set?
Yeah a bunch of people are having trouble with this still. I'll make a new thread today in the compilation forum and make it obvious, like "How-To: Compile svn head C::B in Unicode configuration"
My solution was to copy the dll file into the path. To keep things clean, I copied it into the project folder.