Hello. I'm trying to build codelite on OpenIndiana, but I get the following error :
CodeLite/cpp_comment_creator.cpp: In member function 'wxString CppCommentCreator::FunctionComment()':
CodeLite/cpp_comment_creator.cpp:78:53: error: '1' cannot be used as a function
CodeLite/cpp_comment_creator.cpp:88:40: error: '1' cannot be used as a function
CodeLite/cpp_comment_creator.cpp:89:40: error: '1' cannot be used as a function.
I'm not familiar with wxwidgets, but is _U a macro similar to the _T/_TEXT in windows ? If so it looks like it's expanding into something that is not valid. How can I fix this ?
Building codelite on OpenIndiana
-
- CodeLite Curious
- Posts: 1
- Joined: Sun Sep 18, 2011 10:41 pm
- Genuine User: Yes
- IDE Question: C++
- Contact:
-
- CodeLite Plugin
- Posts: 819
- Joined: Wed Sep 03, 2008 7:26 pm
- Contact:
Re: Building codelite on OpenIndiana
Hi,
I see that those files already do #undef _U for OS/X. A workaround for you would be to change the lines:
#ifdef __APPLE__
to
#if defined (__APPLE__) || defined (__OPENINDIANA__)
and then define __OPENINDIANA__ when you build. (Or substitute some already-existing name-string.)
Regards,
David
It's a CodeLite macro, not a wxWidgets one. It's defined in PCH/precompiled_header_dbg.h and PCH/precompiled_header_release.h. Presumably something in the OpenIndiana toolchain already defines it.I'm not familiar with wxwidgets, but is _U a macro similar to the _T/_TEXT in windows ?
I see that those files already do #undef _U for OS/X. A workaround for you would be to change the lines:
#ifdef __APPLE__
to
#if defined (__APPLE__) || defined (__OPENINDIANA__)
and then define __OPENINDIANA__ when you build. (Or substitute some already-existing name-string.)
Regards,
David