Developer forums (C::B DEVELOPMENT STRICTLY!) > Contributions to C::B

C::B svn 11029 compiles but not 11030

<< < (2/3) > >>

stahta01:
Possible patch that needs tested on Linux and Windows using wxWidgets 2.8.12.

wxpropgrid: Backported "wxPGProperty::sm_wxPG_LABEL" from wxWidgets git master.

Too tired to test; it fixed the link error on Windows.

NOTE: I am a good C Programmer;but, still learning C++. So, needs checked for stupid C++ mistakes.

Deleted patch file.

Tim S.

gd_on:
I was away yesterday so could not answer directly, but I agree with answers given by mgimenez.
gd_on

oBFusCATed:
Can you try this patch:


--- Code: ---diff --git a/src/sdk/wxpropgrid/include/wx/propgrid/propgrid.h b/src/sdk/wxpropgrid/include/wx/propgrid/propgrid.h
index 7942fd5fd..4e54c820f 100644
--- a/src/sdk/wxpropgrid/include/wx/propgrid/propgrid.h
+++ b/src/sdk/wxpropgrid/include/wx/propgrid/propgrid.h
@@ -676,7 +676,7 @@ protected:
 #define wxPG_EMPTY_ARRAYSTRING  wxArrayString()
 
 #if !defined(SWIG)
-    extern wxString wxString_wxPG_LABEL;
+    WXDLLIMPEXP_PG wxString wxString_wxPG_LABEL;
     #define wxPG_LABEL              wxString_wxPG_LABEL
     #define wxPG_NULL_BITMAP        wxNullBitmap
     #define wxPG_COLOUR_BLACK       (*wxBLACK)

--- End code ---

Miguel Gimenez:
Gives redefinition error:


--- Code: ---||=== Build: wxpropgrid in Code::Blocks wx2.8.x (compiler: GNU GCC Compiler) ===|
C:\trunk\src\sdk\wxpropgrid\src\propgrid.cpp|569|error: redefinition of 'wxString wxString_wxPG_LABEL'|
sdk\wxpropgrid\include\wx\propgrid\propgrid.h|679|error: 'wxString wxString_wxPG_LABEL' previously declared here|
||=== Build failed: 2 error(s), 0 warning(s) (0 minute(s), 10 second(s)) ===|

--- End code ---

oBFusCATed:
Should be fixed in trunk/master.

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version