Open HongChenLuYuan opened 1 month ago
How do you invoke the compiler?
I use the "init" command to generate a project, and then run the "c3c build" command, which generates many ".obj" files, but no ".exe" executable files. Then I found the "main.c3" file and executed "c3c compile main.c3", but still only generated many ".obj" files.
It looks like this. What should I do?
Hmm.. let's add some logs and see try adding --print-linking and --debug-log. Because what you're seeing is that it fails to link. One possibility is that the compiler does something bad when it invokes the linker and the object files are in a different drive from the compiler. Another possibility is that you didn't download the msvc libs for linking, but that should have created an error.
I added --print-linking and --debug-log. but it only outputs INFO log without any error message. I think I should give up trying it.
Can you provide me with the output you get?
This may be related to #1167
This might have been improved in dev
, but it's hard to tell without testers.
Please try 0.6.0
Please try 0.6.0
It can work. Please forgive me for not executing "msvc_build_libraries.py", I didn't know it was necessary.
Did it work only after running the python script?
I can't compile source files into ".exe" executable files in windows, it just generates many ".obj" files.