-
Notifications
You must be signed in to change notification settings - Fork 206
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
Duplicate symbol when using no arguments version of main with lto #137
Comments
Thanks for the report! I'm unfortunately not able to reproduce this. Would you mind posting more information, such as your full test case, the platform you're on, and the command-line arguments you're compiling and linking with? |
The test program was just a bare-bones main.
But it seems that link time optimisations is the culprit, the following fails
But if i remove -flto it works fine.
|
Thanks! I've now submitted #138 with a fix. |
The linker is fussing about duplicate symbol __original_main when trying to use main with the signature
int main(void)
Related #112
The text was updated successfully, but these errors were encountered: