Author Topic: [wxSmith] Contrib Items Issues  (Read 3525 times)

Offline stahta01

  • Lives here!
  • ****
  • Posts: 6671
    • My Best Post
[wxSmith] Contrib Items Issues
« on: April 16, 2007, 01:13:45 pm »
The error I get, on SVN 3858; This issues has been fixed in SVN. Thanks, Tim S

Code: [Select]
:: === wxSmith - Contrib Items, wxSmithContribItems ===
C:\wx\inno\wxWidgets-2.6\wxWidgets-2.6.4-work\include\wx\dnd.h:53: warning: inline function `bool wxIsDragResultOk(wxDragResult)' declared as dllimport: attribute ignored
..\wxSmith\wxwidgets\wxsevents.h:142: error: field `m_Functions' has incomplete type
..\wxSmith\wxwidgets\wxsevents.h:108: error: `m_Functions' was not declared in this scope
..\wxSmith\wxwidgets\wxsevents.h:111: error: `m_Functions' was not declared in this scope
:: === Build finished: 3 errors, 1 warnings ===

Possible fix below.

Code: [Select]
Index: src/plugins/contrib/wxSmith/wxwidgets/wxsevents.h
===================================================================
--- src/plugins/contrib/wxSmith/wxwidgets/wxsevents.h (revision 3859)
+++ src/plugins/contrib/wxSmith/wxwidgets/wxsevents.h (working copy)
@@ -1,6 +1,7 @@
 #ifndef WXSEVENTS_H
 #define WXSEVENTS_H
 
+#include <wx/arrstr.h>          // wxArrayString
 #include <tinyxml/tinyxml.h>
 
 #include "../wxscodinglang.h"

Tim S
« Last Edit: April 18, 2007, 06:54:58 pm by stahta01 »
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 32 bit.
On Debian Stretch, compiling CB Trunk against wxWidgets 3.0.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline stahta01

  • Lives here!
  • ****
  • Posts: 6671
    • My Best Post
Re: [wxSmith] Contrib Items issues
« Reply #1 on: April 18, 2007, 06:53:56 pm »
Can you change the Library name like the rest of them are?

Code: [Select]
Index: src/plugins/contrib/wxSmithContribItems/wxSmithContribItems.cbp
===================================================================
--- src/plugins/contrib/wxSmithContribItems/wxSmithContribItems.cbp (revision 3869)
+++ src/plugins/contrib/wxSmithContribItems/wxSmithContribItems.cbp (working copy)
@@ -46,7 +46,7 @@
  <Linker>
  <Add library="wxsmith" />
  <Add library="codeblocks" />
- <Add library="wxmsw26u" />
+ <Add library="wxmsw26$(WX_SUFFIX)" />
  <Add directory="$(#cb)\devel" />
  <Add directory="$(#wx.lib)\gcc_dll" />
  <Add directory="..\..\..\devel\share\CodeBlocks\plugins" />
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 32 bit.
On Debian Stretch, compiling CB Trunk against wxWidgets 3.0.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline byo

  • Plugin developer
  • Lives here!
  • ****
  • Posts: 837
Re: [wxSmith] Contrib Items issues
« Reply #2 on: April 18, 2007, 08:50:07 pm »
Can you change the Library name like the rest of them are?

Ok, no problem, but it should also be changed in plugin wizard too

BYO

Offline stahta01

  • Lives here!
  • ****
  • Posts: 6671
    • My Best Post
Re: [wxSmith] Contrib Items issues
« Reply #3 on: April 18, 2007, 09:16:17 pm »
Can you change the Library name like the rest of them are?

Ok, no problem, but it should also be changed in plugin wizard too

BYO

I have no idea on the wizard, but keeping them all the same in Code::Blocks projects makes it easier to do the ANSI builds.

I updated the patch below.

Code: [Select]
Index: src/plugins/contrib/wxSmithContribItems/wxSmithContribItems.cbp
===================================================================
--- src/plugins/contrib/wxSmithContribItems/wxSmithContribItems.cbp (revision 3869)
+++ src/plugins/contrib/wxSmithContribItems/wxSmithContribItems.cbp (working copy)
@@ -13,6 +13,10 @@
  <Option compiler="gcc" />
  <Option host_application="$(#cb)\devel\codeblocks.exe" />
  </Target>
+ <Environment>
+ <Variable name="WX_SUFFIX" value="u" />
+ <Variable name="WX_CFG" value="" />
+ </Environment>
  </Build>
  <VirtualTargets>
  <Add alias="All" targets="wxSmithContribItems;" />
@@ -46,9 +50,9 @@
  <Linker>
  <Add library="wxsmith" />
  <Add library="codeblocks" />
- <Add library="wxmsw26u" />
+ <Add library="wxmsw26$(WX_SUFFIX)" />
  <Add directory="$(#cb)\devel" />
- <Add directory="$(#wx.lib)\gcc_dll" />
+ <Add directory="$(#wx.lib)\gcc_dll$(WX_CFG)" />
  <Add directory="..\..\..\devel\share\CodeBlocks\plugins" />
  </Linker>
  <ExtraCommands>

Tim S
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 32 bit.
On Debian Stretch, compiling CB Trunk against wxWidgets 3.0.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org