2.8.3 not compiling on IRIX... strtoull issue?
defreitas at gmail.com
defreitas at gmail.com
Wed May 9 08:25:11 PDT 2007
On May 8, 4:22 pm, v... at wxwindows.org (Vadim Zeitlin) wrote:
> Could you please
> grab the latest configure from
>
> http://cvs.wxwidgets.org/viewcvs.cgi/*checkout*/wxWidgets/configure?r...
>
> and tell me if it works for you (i.e. if you don't have -woff 3970 with 7.4
> but still do have it with 7.4.4 -- for this you may need to configure
> --with-x11 if you don't have GTK headers on this system)?
OK... I think the -woff 3970 issue is resolved. The warning is not
inhibited, since it does not exist, when I use the 7.4 compiler (I
tested this with the 2.8.3 wxGTK distribution) and it is inhibited
when I use the 7.4.4m compiler (I tested this with the 2.8.3 wxX11
distribution).
Now... when I tried to make my wxGTK distribution (with the 7.4
compiler) I no longer got the error I had previously regarding
strtoull. Was a new version of "configure" all I needed? I think you
mentioned I might have needed other files as well (Makefile, etc). If
not, great... I can now move forward.
So... I got further in the make... but I died in a later part of the
build process with an C compiler error that stated a "declaration
cannot come after an executable statement in a block". That's odd, I
thought C99 allowed this, but perhaps the MIPS compiler does not use
C99 by default? Anyway, I checked the doc and found a "-c99" switch to
the C compiler and tried again (perhaps this should be documented in
the install.txt file under the "Building with SGI" section?).
Now I died in the compilation of src/common/config.cpp. I got the
following message:
__________
/people/mdefreitas/wx/wxGTK/wxGTK-2.8.3/IRIX/bk-deps CC -c -o
baselib_config.o -D__WXGTK__ -I../src/tiff -I../src/expat/
lib
-DwxUSE_GUI=0 -DwxUSE_BASE=1 -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES
-I/people/mdefreitas/wx/wxGTK/wxGTK-2.8.3/IRIX/lib/wx/include/gtk2-
ansi-
release-static-2.8 -I../include -D_REENTRANT -I/usr/freeware/include/
glib-2.0
-I/usr/freeware/lib32/glib-2.0/include -I/usr/freeware/include/
pango-1.0
-I/usr/freeware/include/gtk-2.0 -I/usr/freeware/include/atk-1.0
-I/usr/freeware/lib32/gtk-2.0/include -O -n32 ../src/common/config.cpp
cc-1020 CC: ERROR File = ../include/wx/math.h, Line = 111
The identifier "round" is undefined.
return int(round(x));
^
1 error detected in the compilation of "../src/common/config.cpp".
__________
It looks like the configure process found a "round" function by using
a test C program (with the -c99 switch) and wx/math.h is indeed a C
header. But it appears that using wx/math.h in a C++ program might be
a problem (on IRIX anyway), since "round" is not defined when using C+
+. The IRIX header file /usr/include/internal/math_core.h has the
following declarations:
__________
#if defined(__c99)
extern double round(double);
extern float roundf(float);
extern long double roundl(long double);
#pragma optional round
#pragma optional roundf
#pragma optional roundl
#endif /* __c99 */
__________
Do you think the configure command file might need to be modified
again to fix this?
Thanks,
Marco
More information about the wx-users
mailing list