Code::Blocks Forums

Developer forums (C::B DEVELOPMENT STRICTLY!) => Plugins development => Topic started by: killerbot on December 16, 2005, 01:35:48 pm

Title: Compiling wxSmith
Post by: killerbot on December 16, 2005, 01:35:48 pm
used todays code as it is in svn.
Platform : windows, used wxSmith-newbuild.cbp.
Get 2 errors, the error comes at linking time.

wxsstdmanager.cpp:202:
 - undefined reference to wxsListCtrlStyles
 - undefined reference to wxsListCtrlEvents


Any ideas ??

Lieven
Title: Re: Compiling wxSmith
Post by: tiwag on December 16, 2005, 02:35:31 pm
used todays code as it is in svn.
Platform : windows, used wxSmith-newbuild.cbp.
Get 2 errors, the error comes at linking time.

wxsstdmanager.cpp:202:
 - undefined reference to wxsListCtrlStyles
 - undefined reference to wxsListCtrlEvents


Any ideas ??

Lieven


add defwidgets\wxslistctrl.cpp to the project

Index: D:/cpp/_projects/CodeBlocks/_SVN/src/plugins/contrib/wxSmith/wxSmith-NewBuild.cbp
===================================================================
--- D:/cpp/_projects/CodeBlocks/_SVN/src/plugins/contrib/wxSmith/wxSmith-NewBuild.cbp   (revision 1531)
+++ D:/cpp/_projects/CodeBlocks/_SVN/src/plugins/contrib/wxSmith/wxSmith-NewBuild.cbp   (working copy)
@@ -43,7 +43,7 @@
                 </Linker>
             </Target>
             <Environment>
-                <Variable name="WX_CFG" value="" />
+                <Variable name="WX_CFG" value="NonUnicode" />
             </Environment>
         </Build>
         <Compiler>
@@ -263,6 +263,10 @@
             <Option link="0" />
             <Option target="wxSmith" />
         </Unit>
+        <Unit filename="defwidgets\wxslistctrl.cpp">
+            <Option compilerVar="CPP" />
+            <Option target="wxSmith" />
+        </Unit>
         <Unit filename="defwidgets\wxsnotebook.cpp">
             <Option compilerVar="CPP" />
             <Option target="wxSmith" />
Title: Re: Compiling wxSmith
Post by: MortenMacFly on December 16, 2005, 02:42:03 pm
+        <Unit filename="defwidgets\wxslistctrl.cpp">
+            <Option compilerVar="CPP" />
+            <Option target="wxSmith" />
+        </Unit>

Verifed, works. Thanks! I had the same problem but didn't think of the "trivial" solution to look whether it has just forgotten to be included in  the project file... :?
For "full compatibility" you should also add the header file ("defwidgets\wxslistctrl.h") as well.

Morten.
Title: Re: Compiling wxSmith
Post by: tiwag on December 16, 2005, 02:44:20 pm
Quote from: MortenMacFly
Verifed, works. Thanks! I had the same problem...

sometimes a FindinFiles orgy helps a lot...
Title: Re: Compiling wxSmith
Post by: MortenMacFly on December 16, 2005, 02:52:17 pm
sometimes a FindinFiles orgy helps a lot...
That's a good one... :lol: :lol: :lol:
Title: Re: Compiling wxSmith
Post by: killerbot on December 16, 2005, 03:10:04 pm
was intentiannately left out, or is it a mistake ?

Many thanks for the solution !!!
Title: Re: Compiling wxSmith
Post by: tiwag on December 16, 2005, 03:46:59 pm
was intentiannately left out, or is it a mistake ?  ...

i guess it wasn't intentionally, just forgotten to commit the modified projectfile  8)
Title: Re: Compiling wxSmith
Post by: killerbot on December 16, 2005, 03:58:19 pm
with new revision problem seems solved
Title: Re: Compiling wxSmith
Post by: byo on December 16, 2005, 05:08:46 pm
It was one of common mistakes - I committed changes before saving new project file. Sorry  :oops: