Author Topic: Compiling wxSmith  (Read 10288 times)

Offline killerbot

  • Administrator
  • Lives here!
  • *****
  • Posts: 5519
Compiling wxSmith
« 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

Offline tiwag

  • Developer
  • Lives here!
  • *****
  • Posts: 1196
  • sailing away ...
    • tiwag.cb
Re: Compiling wxSmith
« Reply #1 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" />

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9699
Re: Compiling wxSmith
« Reply #2 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.
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://wiki.codeblocks.org/index.php?title=FAQ

Offline tiwag

  • Developer
  • Lives here!
  • *****
  • Posts: 1196
  • sailing away ...
    • tiwag.cb
Re: Compiling wxSmith
« Reply #3 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...

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9699
Re: Compiling wxSmith
« Reply #4 on: December 16, 2005, 02:52:17 pm »
sometimes a FindinFiles orgy helps a lot...
That's a good one... :lol: :lol: :lol:
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://wiki.codeblocks.org/index.php?title=FAQ

Offline killerbot

  • Administrator
  • Lives here!
  • *****
  • Posts: 5519
Re: Compiling wxSmith
« Reply #5 on: December 16, 2005, 03:10:04 pm »
was intentiannately left out, or is it a mistake ?

Many thanks for the solution !!!

Offline tiwag

  • Developer
  • Lives here!
  • *****
  • Posts: 1196
  • sailing away ...
    • tiwag.cb
Re: Compiling wxSmith
« Reply #6 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)

Offline killerbot

  • Administrator
  • Lives here!
  • *****
  • Posts: 5519
Re: Compiling wxSmith
« Reply #7 on: December 16, 2005, 03:58:19 pm »
with new revision problem seems solved

Offline byo

  • Plugin developer
  • Lives here!
  • ****
  • Posts: 836
Re: Compiling wxSmith
« Reply #8 on: December 16, 2005, 05:08:46 pm »
It was one of common mistakes - I committed changes before saving new project file. Sorry  :oops: