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
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.c2.
.../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