-
-
Notifications
You must be signed in to change notification settings - Fork 168
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
Can't specify output file #1306
Comments
You most likely don't have a main and so your code is being optimized away. I encounter this when using --no-stdlib --no-entry --static-lib. Try adding an @export("symbol_name_here") after a function declaration (before the implementation). |
Can you give more information on what your setup is? |
This happens when using |
Ok, this will happen, because just like C, compiling multiple files yields multiple object files. If you use --single-module=yes, then this will work, since it outputs a single file. |
|
|
I only get the compiled version of the standard library. |
Hmm.. so wait, what are you trying to achieve here? Maybe I misunderstand. Are you just compiling the exe and it's not using the -o, or are we talking about the object files not matching the name? There are a lot of ways to do different things depending on what you're after. |
I'm trying to compile c3 code for linking with other object files. While giving the object file a specific name. |
@truemaker The (final) .o file when using |
Works good enough |
When using the -o option the passed file is ignored and the compiled program isn't beign saved at all.
The text was updated successfully, but these errors were encountered: