Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implicit int error when using with Clang #52

Open
jakurzak opened this issue Dec 4, 2023 · 0 comments
Open

Implicit int error when using with Clang #52

jakurzak opened this issue Dec 4, 2023 · 0 comments

Comments

@jakurzak
Copy link

jakurzak commented Dec 4, 2023

When configuring using amdclang on OLCF machines, I get:

configure: flink.c:1:1: error: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int]
main(){ FF(); return 0; }
^
int
flink.c:1:9: error: call to undeclared function 'f_fun'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
main(){ FF(); return 0; }
        ^
<command line>:1:12: note: expanded from here
#define FF f_fun
           ^
2 errors generated.
configure: error: giving up

which can be remedied by changing

echo "main(){ FF(); return 0; }" > flink.c

to

echo "int main(){ int FF(); return 0; }" > flink.c

in configure and configure.ac

Any reason not to?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant