Estou tentando instalar um programa que é instalado a partir de um único arquivo ANSI-C. No entanto, as instruções que eles dão no manual não parecem funcionar no Ubuntu. O manual diz:
The source
solvate.cis just one ANSI-C-file without any system-specific stuff, so it should compile right away with something like
cc -ansi -O -o solvate solvate.c -lmIt is tested under IRIX System V.4 (SGI), HP-UX, and Digital UNIX V3.2C; appropriate Makefiles are included. It should now also compile without warnings on any Linux/Unix platform.
Quando executo o arquivo C usando este comando, recebo os seguintes erros.
solvate.c: In function ‘read_next_pdbdata’:
solvate.c:469:17: warning: format not a string literal and no format arguments [-Wformat-security]
fprintf(stderr,linestr);
^
solvate.c:474:17: warning: format not a string literal and no format arguments [-Wformat-security]
fprintf(stderr,linestr);
[etc ...]
Existe uma pequena modificação que eu poderia fazer neste comando que permitiria que este arquivo C compilasse o programa no Ubuntu?