Help: not able to compile C++ code

I am getting following while compiling the code in CentOS5.

g++ -c create_SPH_IC.C -I/home/sandeep/LIBRARY_GasIC/hdf5-1.6.10/include -I/home/sandeep/LIBRARY_GasIC/szip-2.1/include -I/home/sandeep/LIBR
ARY_GasIC/fftw-3.3.4/include -I/home/sandeep/LIBRARY_GasIC/gsl-1.16/include -I/home/sandeep/GalGasIC/GasIC
/usr/include/assert.h: In function ‘void __assert_fail(const char*, const char*, unsigned int, const char*)’:
/usr/include/assert.h:70: error: expected primary-expression before ‘,’ token
/usr/include/assert.h: At global scope:
/usr/include/assert.h:70: error: declaration does not declare anything
/usr/include/assert.h: In function ‘void __assert_perror_fail(int, const char*, unsigned int, const char*)’:
/usr/include/assert.h:76: error: expected primary-expression before ‘,’ token
/usr/include/assert.h: At global scope:
/usr/include/assert.h:76: error: declaration does not declare anything
/usr/include/assert.h: In function ‘void __assert(const char*, const char*, int)’:
/usr/include/assert.h:82: error: expected primary-expression before ‘,’ token
/usr/include/assert.h: At global scope:
/usr/include/assert.h:82: error: declaration does not declare anything
/usr/include/inttypes.h: In function ‘intmax_t imaxabs(intmax_t)’:
/usr/include/inttypes.h:298: error: expected primary-expression before ‘,’ token
/usr/include/inttypes.h: At global scope:
/usr/include/inttypes.h:298: error: declaration does not declare anything
/usr/include/inttypes.h: In function ‘imaxdiv_t imaxdiv(intmax_t, intmax_t)’:
/usr/include/inttypes.h:302: error: expected primary-expression before ‘,’ token
/usr/include/inttypes.h: At global scope:
/usr/include/inttypes.h:302: error: declaration does not declare anything
/usr/include/inttypes.h: In function ‘intmax_t strtoimax(const char*, char**, int)’:
/usr/include/inttypes.h:306: error: expected primary-expression before ‘,’ token
/usr/include/inttypes.h: In function ‘uintmax_t strtoumax(const char*, char**, int)’:
/usr/include/inttypes.h:310: error: expected primary-expression before ‘,’ token
/usr/include/inttypes.h: In function ‘intmax_t wcstoimax(const wchar_t*, wchar_t**, int)’:
/usr/include/inttypes.h:315: error: expected primary-expression before ‘,’ token
/usr/include/inttypes.h: In function ‘uintmax_t wcstoumax(const wchar_t*, wchar_t**, int)’:
/usr/include/inttypes.h:320: error: expected primary-expression before ‘,’ token

Regards,
Sandeep
Last edited on
You should move this to General C++ Programming. It would help if you added the code that caused the error.
Topic archived. No new replies allowed.