News:

When registered with our forums, feel free to send a "here I am" post here to differ human beings from SPAM bots.

Main Menu

Compiling wxSmith

Started by killerbot, December 16, 2005, 01:35:48 PM

Previous topic - Next topic

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


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>

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: [url="https://www.codeblocks.org/docs/main_codeblocks_en.html"]https://www.codeblocks.org/docs/main_codeblocks_en.html[/url]
C::B FAQ: [url="https://wiki.codeblocks.org/index.php?title=FAQ"]https://wiki.codeblocks.org/index.php?title=FAQ[/url]

tiwag

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

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...
That's a good one... :lol: :lol: :lol:
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: [url="https://www.codeblocks.org/docs/main_codeblocks_en.html"]https://www.codeblocks.org/docs/main_codeblocks_en.html[/url]
C::B FAQ: [url="https://wiki.codeblocks.org/index.php?title=FAQ"]https://wiki.codeblocks.org/index.php?title=FAQ[/url]

killerbot

was intentiannately left out, or is it a mistake ?

Many thanks for the solution !!!

tiwag

Quote from: killerbot on December 16, 2005, 03:10:04 PM
was intentiannately left out, or is it a mistake ?  ...

i guess it wasn't intentionally, just forgotten to commit the modified projectfile  8)

killerbot

with new revision problem seems solved

byo

It was one of common mistakes - I committed changes before saving new project file. Sorry  :oops: