User forums > Help

Compiling CB against wx 2.6.0 gives error (probably simple

(1/3) > >>

David Perfors:
I wanted to compile CodeBlocks 1.0beta 7 against wxWidgets 2.6.0.
I get an error in sdk\cbeditor.cpp

--- Quote ---sdk/cbeditor.cpp: In member function `bool cbEditor::SaveAs()':
sdk/cbeditor.cpp:503: `wxHIDE_READONLY' undeclared (first use this function)
sdk/cbeditor.cpp:503: (Each undeclared identifier is reported only once for each function it appears in.)
--- End quote ---

Any ideas how to solve this?

rickg22:
Beta 7 isn't wx2.6 ready. The CVS version has changes that allow you to compile successfully with it, butsome libraries need to be changed in the project file, too.

David Perfors:
I've got the same problem with the CVS version... but know I see the reade :) I'll try that first...

rickg22:
From the wxWidgets 2.5 change log:
- The wxHIDE_READONLY flag for wxFileDialog was not implemented
  and has now been removed

Comment that line then :-P or put it in these lines:
#if defined(wxHIDE_READONLY)
 ...
#else
...
#endif

BTW, if your change compiles, mind adding it to "patch requests"?

David Perfors:
hmm. thanks for the tip, but I will compile it first before I make a nice and clean patch/fix :D... when looking into the docs I can still find the wxHIDE_READONLY flag :?
After deleting the flag, i get more errors (the flag excists in three files. All in the SaveAs function: cbeditor.cpp, cbproject.cpp, cbworkspace.cpp)

--- Quote ---In file included from sdk/compileoptionsbase.cpp:26:
sdk/compileoptionsbase.h:66: field `m_LinkerOptions' has incomplete type
sdk/compileoptionsbase.h:67: field `m_LinkLibs' has incomplete type
sdk/compileoptionsbase.h:68: field `m_CompilerOptions' has incomplete type
sdk/compileoptionsbase.h:69: field `m_IncludeDirs' has incomplete type
sdk/compileoptionsbase.h:70: field `m_ResIncludeDirs' has incomplete type
sdk/compileoptionsbase.h:71: field `m_LibDirs' has incomplete type
sdk/compileoptionsbase.h:72: field `m_CmdsBefore' has incomplete type
sdk/compileoptionsbase.h:73: field `m_CmdsAfter' has incomplete type

--- End quote ---

I don't get it. it looks normal to me... :roll:

Navigation

[0] Message Index

[#] Next page

Go to full version