Developer forums (C::B DEVELOPMENT STRICTLY!) > Plugins development
[wxSmith] Contrib Items Issues
(1/1)
stahta01:
The error I get, on SVN 3858; This issues has been fixed in SVN. Thanks, Tim S
--- Code: ---:: === 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 ===
--- End code ---
Possible fix below.
--- Code: ---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"
--- End code ---
Tim S
stahta01:
Can you change the Library name like the rest of them are?
--- Code: ---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" />
--- End code ---
byo:
--- Quote from: stahta01 on April 18, 2007, 06:53:56 pm ---Can you change the Library name like the rest of them are?
--- End quote ---
Ok, no problem, but it should also be changed in plugin wizard too
BYO
stahta01:
--- Quote from: byo on April 18, 2007, 08:50:07 pm ---
--- Quote from: stahta01 on April 18, 2007, 06:53:56 pm ---Can you change the Library name like the rest of them are?
--- End quote ---
Ok, no problem, but it should also be changed in plugin wizard too
BYO
--- End quote ---
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: ---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>
--- End code ---
Tim S
Navigation
[0] Message Index
Go to full version