Page 1 of 1

Building codelite on OpenIndiana

Posted: Sun Sep 18, 2011 11:06 pm
by adihodos
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 ?

Re: Building codelite on OpenIndiana

Posted: Mon Sep 19, 2011 1:10 pm
by DavidGH
Hi,
I'm not familiar with wxwidgets, but is _U a macro similar to the _T/_TEXT in windows ?
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 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