We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hello,
For the hello world example, the normal executable works. However, when I do flang -emit-llvm hello.f90 -c -o hello.bc
and try to run using lli ( lli hello.bc), I get the error message:
'main' function not found in module.
In case of C++, this works as expected. What am I missing here?
The text was updated successfully, but these errors were encountered:
The name of a main program in flang is MAIN_.
I was able to run hello.f90 with this command (where $flang is my install directory):
$flang/bin/lli -entry-function=MAIN_ -load=$flang/lib/libflangrti.so -load=$flang/lib/libflang.so hello.bc hello world from from hello.f90
Sorry, something went wrong.
Thank you, worked also for me.
BTW, do you know of any effort to make flang work with Emscripten?
No idea about Emscripten.
No branches or pull requests
Hello,
For the hello world example, the normal executable works. However, when I do
flang -emit-llvm hello.f90 -c -o hello.bc
and try to run using lli ( lli hello.bc), I get the error message:
'main' function not found in module.
In case of C++, this works as expected. What am I missing here?
The text was updated successfully, but these errors were encountered: