In main.cpp:310, there is FXString cmd under an #if defined(linux) block.
However, cmd is used again on line 333 outside the #if defined(linux) block. The compiler throws a not declared in this scope error on !Linux and compilation fails.
Found while trying to compile on OpenBSD:
c++ -DLOCALEDIR=\"/usr/local/share/locale\" -DHAVE_CONFIG_H -I. -I.. -I. -I.. -I../intl -I/usr/X11R6/include -I/usr/X11R6/include/freetype2 -I/usr/include -I/usr/X11R6/include/freetype2 -I/usr/local/include -I/usr/local/include/fox-1.6 -I/usr/X11R6/include -I/usr/X11R6/include/freetype2 -O2 -pipe -DHAVE_XFT_H -MT main.o -MD -MP -MF $depbase.Tpo -c -o main.o main.cpp &&\
mv -f $depbase.Tpo $depbase.Po
main.cpp: In function 'int main(int, char**)':
main.cpp:333: error: 'cmd' was not declared in this scope
OK, this is clearly a bug for non Linux systems. Of course, you can easily fix it by moving the cmd declaration outside the #if define(linux) directive.
Anyway, the bug will be fixed in the next release.
Thanks for the bug report,
RB
Yes. That's what I did for the OpenBSD port.
Thanks for the quick reply!
This is fixed in Xfe 1.40.1.
Thanks for the bug report.