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

[wxSmith] Contrib Items Issues

Started by stahta01, April 16, 2007, 01:13:45 PM

Previous topic - Next topic

stahta01

The error I get, on SVN 3858; This issues has been fixed in SVN. Thanks, Tim S


:: === 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.


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
C Programmer working to learn more about C++.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. [url="http://wiki.codeblocks.org"]http://wiki.codeblocks.org[/url]

stahta01

Can you change the Library name like the rest of them are?


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++.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. [url="http://wiki.codeblocks.org"]http://wiki.codeblocks.org[/url]

byo

Quote from: stahta01 on April 18, 2007, 06:53:56 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

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?

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.


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++.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. [url="http://wiki.codeblocks.org"]http://wiki.codeblocks.org[/url]