User forums > Help

wxWidgets Project (cannot find -lwxmsw26) [Solved]

<< < (2/5) > >>

sethjackson:
Could you attach your project file (*.cbp)?

Slider:

--- Quote from: Seth Jackson on December 05, 2005, 01:05:56 am ---Could you attach your project file (*.cbp)?

--- End quote ---

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 &quot;wx_pch.h&quot;"/>
         <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>

cyberkoa:

--- Quote from: Slider on December 05, 2005, 01:11:11 am ---
--- Quote from: Seth Jackson on December 05, 2005, 01:05:56 am ---Could you attach your project file (*.cbp)?

--- End quote ---

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 &quot;wx_pch.h&quot;"/>
         <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>

--- End quote ---

It seems like you still have not defined WX_DIR...

Go to Project > Build Options > Custom variables  , Add a variable "WX_DIR" (without quotes), value as "C:\wxWidgets " (without quotes) , it should work now :)

Slider:
WX_DIR is defined, according to the cbp file above:
...
<Variable name="WX_DIR" value="C:\wxWidgets"/>
...

cyberkoa:

--- Quote from: Slider on December 05, 2005, 04:06:29 pm ---WX_DIR is defined, according to the cbp file above:
...
<Variable name="WX_DIR" value="C:\wxWidgets"/>
...

--- End quote ---
:oops: I use the search function to find in your .cbp file seems like I missed out ..

anyway , did you find your any library files under WX_DIR\lib\gcc_dll\  ? if not , try to search under WX_DIR with the file name wxmsw*  see where it is . If cannot be found , maybe your compilation of wxwidgets is not successful.


Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version