Developer forums (C::B DEVELOPMENT STRICTLY!) > Development

Code::Blocks, Scintilla and Fedora

<< < (5/9) > >>

Loaden:
I still can't build success if keep the "WXMAKINGDLL_SCI" macro defined.
 :(

Loaden:
This is my second trying, the error is as follows.

--- Code: ---MORE-WARNING-...
----
D:\DengYC\CodeBlocks-C\src\sdk\wxscintilla\src\wxscintilla.cpp|4990|warning: 'bool wxScintillaEvent::GetControl() const' redeclared without dllimport attribute: previous dllimport ignored|
D:\DengYC\CodeBlocks-C\src\sdk\wxscintilla\src\wxscintilla.cpp|4991|warning: 'bool wxScintillaEvent::GetAlt() const' redeclared without dllimport attribute: previous dllimport ignored|
D:\DengYC\CodeBlocks-C\src\sdk\wxscintilla\src\wxscintilla.cpp|4994|warning: 'wxScintillaEvent::wxScintillaEvent(const wxScintillaEvent&)' redeclared without dllimport attribute after being referenced with dll linkage|
D:\DengYC\CodeBlocks-C\src\sdk\wxscintilla\src\wxscintilla.cpp|122|error: definition of static data member 'wxScintilla::sm_eventTable' of dllimport'd class|
D:\DengYC\CodeBlocks-C\src\sdk\wxscintilla\src\wxscintilla.cpp|122|error: definition of static data member 'wxScintilla::sm_eventHashTable' of dllimport'd class|
D:\DengYC\CodeBlocks-C\src\sdk\wxscintilla\src\wxscintilla.cpp|150|error: definition of static data member 'wxScintilla::ms_classInfo' of dllimport'd class|
D:\DengYC\CodeBlocks-C\src\sdk\wxscintilla\src\wxscintilla.cpp|151|error: definition of static data member 'wxScintillaEvent::ms_classInfo' of dllimport'd class|
||=== Build finished: 4 errors, 685 warnings (0 minutes, 22 seconds) ===|

--- End code ---

MortenMacFly:

--- Quote from: Loaden on November 08, 2010, 11:01:11 am ---I still can't build success if keep the "WXMAKINGDLL_SCI" macro defined.

--- End quote ---
Probably I am missing something here, but why would you do that if you don't weant to build the DLL????

@Jens,Loaden: please keep in mind not to touch the wxscintilla component too much - I've have quite a lot changes pending from my side, including an update of scintilla. So please don't cause too much conflicts (project files are OK of course).

Loaden:

--- Quote from: MortenMacFly on November 08, 2010, 11:30:21 am ---
--- Quote from: Loaden on November 08, 2010, 11:01:11 am ---I still can't build success if keep the "WXMAKINGDLL_SCI" macro defined.

--- End quote ---
Probably I am missing something here, but why would you do that if you don't weant to build the DLL????

@Jens,Loaden: please keep in mind not to touch the wxscintilla component too much - I've have quite a lot changes pending from my side, including an update of scintilla. So please don't cause too much conflicts (project files are OK of course).

--- End quote ---
I have the same question, see #19. :D
Because the patch from Jens that keep this macro, and build success on Linux, see #18.

Loaden:

--- Quote from: MortenMacFly on November 08, 2010, 11:30:21 am ---@Jens,Loaden: please keep in mind not to touch the wxscintilla component too much - I've have quite a lot changes pending from my side, including an update of scintilla. So please don't cause too much conflicts (project files are OK of course).

--- End quote ---
Copy that.
Have another question, why we need hack this code from:

--- Code: ---SCNotification scn = {0};
--- End code ---
to:

--- Code: ---/* C::B begin */
SCNotification scn; memset((void*)&scn, 0, sizeof(scn));
/* C::B end */
--- End code ---
:?

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version