Can't compile gvmap on Solaris 10

When I build graphviz on Solaris 10, I get an error with cmd/gvmap.

gvmap.c: In function `mapFromGraph':
gvmap.c:629: parse error before `graph'
gvmap.c:631: `graph' undeclared (first use in this function)

If I use make -k, I also see these errors:

make_map.c: In function `make_map_from_rectangle_groups':
make_map.c:2274: parse error before `double'
make_map.c:2279: `dist' undeclared (first use in this function)
make_map.c:2280: `avgdist' undeclared (first use in this function)

Do I need to change my compiler flags, or some other configure option?

-Thanks! LloydM999

Can't compile gvmap on

Are these the only errors you are getting? If so, I am guessing that you are using a compiler that requires all declarations to occur before any function calls. You can modify these lines, pulling off the declaration and putting it at the beginning of the respective functions, or download 2.29, where this was fixed for the Visual Studio compiler.

Recent comments