Hi all,
I’m compiling Gromacs application on Windows. Since Gromacs is a Linux based application, I’m using SUA (Subsystem for Unix Applications).
The make command thrown an error:
/dev/fs/C/PGI/win64/six/bin/pgcc.exe -I F:MSMPIInclude F:MSMPILibamd64msmpi.lib F:MSMPILibamd64msmp
e.lib -DHAVE_CONFIG_H -I. -I. -I../../src -I../../include -DGMXLIBDIR=\"/opt/groprl/share/top\" -IF:
Portinggromacsfftw3include -O1 -c enxio.c -o enxio.obj
enxio.c:
PGC-S-0040-Illegal use of symbol, off_t (../../include\gmxfio.h: 126)
PGC-W-0156-Type not specified, 'int' assumed (../../include\gmxfio.h: 126)
PGC-S-0035-Syntax error: Recovery attempted by replacing identifier off_t by typedef id .Z0000 (../.
./include\gmxfio.h: 129)
PGC-W-0095-Type cast required for this conversion (enxio.c: 90)
PGC/win64/x86-64 win64 6.2-3: compilation completed with severe errors
*** Error code 1
Stop.
*** Error code 1
Line No: 126 of gmxfio.h is:
extern off_t fio_ftell(int fio); //////////// LINE NO 126
/* Return file position if possible */
extern void fio_seek(int fio,off_t fpos);
/* Set file position if possible, quit otherwise */
Line No. 90 of enxio.c is:
static void rd_ener_nms(FILE *in,int *nre,char ***nm)
{
char line[256];
int i;
fgets2(line,255,in);
if (sscanf(line,"%d",nre) == 0) {
*nre=0;
return;
}
snew((*nm),*nre);
for(i=0; (i< (*nre)); i++) {
fgets2(line,255,in);
trim(line);
(*nm)[i]=strdup(line); ///////////////Line No:90
}
}
I’ve tested a sample program with linking external libraries and header files by pgcc.exe. Its working fine. But not getting how to resolve the above error.
Can anyone there know how to resolve the error?
Thank you,
Sangamesh