Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#2 Fails to build on PPC (Patch included)

open
nobody
VRML parser (2)
5
2009-05-12
2009-05-12
Michael Buesch
No

The following patch fixes a linker error on PPC due to the compiler choosing to not inline the sub_cross2d function.

gcc -std=c99 -o mesh2hmap main.o mesh2hmap.o parser.o output.o matrix.o -lm
mesh2hmap.o: In function `get_grid_height':
mesh2hmap.c:(.text+0x2f8): undefined reference to `sub_cross2d'
mesh2hmap.c:(.text+0x344): undefined reference to `sub_cross2d'
collect2: ld returned 1 exit status
make[1]: *** [mesh2hmap] Error 1
make[1]: Leaving directory `/home/mb/develop/svn/mesh2hmap/src'
make: *** [all-recursive] Error 1

Discussion

  • Michael Buesch
    Michael Buesch
    2009-05-12

    This also fixes compilation for x86_64.