Developer forums (C::B DEVELOPMENT STRICTLY!) > Plugins development

Compiling wxSmith

(1/2) > >>

killerbot:
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

tiwag:

--- Quote from: 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

--- End quote ---


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" />

MortenMacFly:

--- Quote from: tiwag on December 16, 2005, 02:35:31 pm ---+        <Unit filename="defwidgets\wxslistctrl.cpp">
+            <Option compilerVar="CPP" />
+            <Option target="wxSmith" />
+        </Unit>

--- End quote ---
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.

tiwag:

--- Quote from: MortenMacFly ---Verifed, works. Thanks! I had the same problem...
--- End quote ---

sometimes a FindinFiles orgy helps a lot...

MortenMacFly:

--- Quote from: tiwag on December 16, 2005, 02:44:20 pm ---sometimes a FindinFiles orgy helps a lot...

--- End quote ---
That's a good one... :lol: :lol: :lol:

Navigation

[0] Message Index

[#] Next page

Go to full version