posted December 25, 2002 02:09 AM
Has anyone heard of SuperMongo ? It's a quite powerful plotting package. I read that it should work well "with any variant of BSD". Not wanting to depend on outdated SUNs, I tried to compile version 2.4.2 on OSX. It returned this :
In file included from main.c:8: sm_declare.h:51: conflicting types for `fread' /usr/include/stdio.h:254: previous declaration of `fread' sm_declare.h:55: conflicting types for `fwrite' /usr/include/stdio.h:260: previous declaration of `fwrite' sm_declare.h:81: warning: conflicting types for built-in function `strncat' sm_declare.h:83: warning: conflicting types for built-in function `strncpy' sm_declare.h:85: warning: conflicting types for built-in function `strncmp' sm_declare.h:169: conflicting types for `fd_set' /usr/include/sys/types.h:155: previous declaration of `fd_set' sm_declare.h:191: warning: conflicting types for built-in function `bzero' make[1]: *** [main.o] Error 1 make: *** [sm] Error 2
My "programming" skills are limited to numerical simulations, so I'm a little lost when I have to compile software. Can anyone help ?
posted December 29, 2002 03:25 PM
It seems your problem is in the file "sm_declare.h"--it's redeclaring standard ANSII C functions. Could you prehaps post the meat of the "sm_declare.h" file here so I can take a look at it?
From there I can decide if it would be best to modify the file or remove it altogether. Whatever the problem is, it seems like it should be fairly simple to solve, so you shouldn't need to worry too much about it.
posted September 30, 2003 06:32 AM
I wrote SM, and am writing this on a G4 powerbook.
SM builds just fine under mac os/x; as usual you should upgrade to the latest version (there were some workarounds needed for mac os/x bugs, and the lack of case-sensitivity broke the makefiles).