yambo-code / yambo

This is the official GPL repository of the yambo code
http://www.yambo-code.eu/
GNU General Public License v2.0
98 stars 38 forks source link

Errors while compiling with intel oneapi 2023 #54

Open idamir opened 1 year ago

idamir commented 1 year ago

Compiling with intel oneapi 2023 gives the errors: 1. .../yambo-5.1.2/src/tools/io.c:56:15: error: call to undeclared function 'system'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] *ierr=system(name); ^ How to fix: add #include <stdlib.h> in the head of src/tools/io.c

2. .../yambo-5.1.2/src/parser/PARSER_symbols.c:44:14: error: call to undeclared library function 'strdup' with type 'char *(const char *)'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] ptr->name = strdup(sym_name); ^ .../yambo-5.1.2/src/parser/PARSER_symbols.c:44:14: note: include the header <string.h> or explicitly provide a declaration for 'strdup' How to fix: add #include <string.h> #include <strings.h> in the head of src/parser/PARSER_symbols.c

sangallidavide commented 1 year ago

Fixed in the bug-fixes with commit 4d41f70

To be propagated into other branches / releases