nanogui: issue when compilling microwindows
Subject:
Re: issue when compilling microwindows
From:
Alex Holden ####@####.####
Date:
19 Jan 2001 10:50:27 -0000
Message-Id: <Pine.LNX.4.04.10101191048490.606-100000@hyperspace.linuxhacker.org>
On Fri, 19 Jan 2001, Zhang Hong-W17904 wrote:
> Would anybody can give me a hint on the following uW building log? Thx.
> In file included from /home/hongz/microwin/src/include/graph3d.h:10,
> from graph3d.c:9:
> /opt/uClinux/m68k-pic-coff/include/math.h:50: warning: conflicting types for built-in function `cos'
> /opt/uClinux/m68k-pic-coff/include/math.h:140: warning: conflicting types for built-in function `sin'
> /opt/uClinux/m68k-pic-coff/include/math.h:144: warning: conflicting types for built-in function `sqrt'
> graph3d.c: In function `patch':
> graph3d.c:304: warning: type mismatch in implicit declaration for built-in function `fabs'
I think you may have the headers set up wrong in your cross compiler
environment- math.h is defining various gcc internal functions (the
floating point stuff) to a different type than gcc expects.
> /opt/uClinux/lib/gcc-lib/m68k-pic-coff/2.7.2.3-pic-060999/libgcc.a(__main.o): In function `__main':
> libgcc2.c(.text+0x5a): multiple definition of `__main'
That looks like some kind of conflict in libgcc (the library which gcc
links into every executable it produces).
Have you successfully used this cross compiler environment for other
applications?
--
------- Alex Holden -------
http://www.linuxhacker.org/
http://www.robogeeks.org/