2.8.3 not compiling on IRIX... strtoull issue?
Vadim Zeitlin
vadim at wxwindows.org
Tue May 8 12:31:21 PDT 2007
On 8 May 2007 11:56:36 -0700 defreitas at gmail.com wrote:
> I finally got access to an IRIX machine with the 7.4.4m compiler. It
> is a pretty bare bones machine (no GTK, etc),
You could try building wxMotif or wxX11, it should still have X11/Motif
headers and libraries I think.
> I tried compiling and indeed gave me warning #3970 (in both 32 and 64
> bit modes), complaining about a conversion from a pointer to an
> unsigned int of the same size. It seems odd that it would issue the
> warning, since it is the same size and you are doing an "explicit"
> cast. This warning does not exist on my 7.4 compiler.
Yes, it's indeed very strange.
> As an alternative to supressing warning #3970, can you do something
> like the following test program does:
>
> ______
>
> unsigned long ul;
> void *p;
> int main() {
> union {
> unsigned long ul;
> void *p;
> } u;
> u.p = p;
> ul = u.ul;
> return 0;
> }
>
> ______
>
> The above code does not induce warning #3970 (in either 32 or 64 bit
> modes).
You'd still get plenty of these warnings from other places in the code
IIRC. So we probably have to test the compiler version. Could you please
give the values of _SGI_COMPILER_VERSION for 7.4.4 and the version which
you normally use?
> PS: I am still trying to get around my firewall issue.
Good luck!
VZ
--
TT-Solutions: wxWidgets consultancy and technical support
http://www.tt-solutions.com/
More information about the wx-users
mailing list