abinit 6.6.2 bindings with intel copmpilator
Posted: Mon Apr 04, 2011 10:50 pm
It fails compiling bindings. The compilation broke up at the
with error
it seems theese macros didn't do well
#define ABI_FC_MOD(mod,MOD,sub,SUB) mod ## _mp_ ## FC_FUNC(sub,SUB)
#define FC_FUNC(name,NAME) name ## _
#define VARS_NAME(a,A) ABI_FC_MOD(m_ab6_invars,M_AB6_INVARS, \
ab6_invars_ ## a,AB6_INVARS_ ## A)
Code: Select all
/usr/local/mpich2//bin/mpicc -I. -I/home_usr/mavrin39/work/abinit-6.6.2 -L/usr/local/mpich2/lib/intel64 -lmpich -c /home_usr/mavrin39/work/abinit-6.6.2/bindings/parser/ab6_invars_c.c
with error
Code: Select all
/work/abinit-6.6.2/bindings/parser/ab6_invars_c.c(41): error: function returning function is not allowed
(int *dt, const char *filename, int *len);
^
/work/abinit-6.6.2/bindings/parser/ab6_invars_c.c(40): warning #92: identifier-list parameters may only be used in a function definition
void VARS_NAME(new_from_file,NEW_FROM_FILE)
^
/work/abinit-6.6.2/bindings/parser/ab6_invars_c.c(43): error: function returning function is not allowed
(int *dt, const char *string, int *len);
^
/work/abinit-6.6.2/bindings/parser/ab6_invars_c.c(42): warning #92: identifier-list parameters may only be used in a function definition
void VARS_NAME(new_from_string,NEW_FROM_STRING)
^
etc
it seems theese macros didn't do well
#define ABI_FC_MOD(mod,MOD,sub,SUB) mod ## _mp_ ## FC_FUNC(sub,SUB)
#define FC_FUNC(name,NAME) name ## _
#define VARS_NAME(a,A) ABI_FC_MOD(m_ab6_invars,M_AB6_INVARS, \
ab6_invars_ ## a,AB6_INVARS_ ## A)