Kattis / problemtools

Tools to manage problem packages using the Kattis problem package format.
MIT License
105 stars 72 forks source link

OSX running verifyProblem trying to compile c++ solution #218

Open jifland opened 1 year ago

jifland commented 1 year ago

When I run verifyProblem on a problem package, I get an error when trying to compile any c++ program.

It appears that there is an attempt to link a static library. Per the information I'm finding online, it appears that OSX is known to know have these libraries built in a static format to link against.

error ERROR in submissions: Compile error for AC submission jeffi.cpp (C++): ld: library not found for -lcrt0.o clang: error: linker command failed with exit code 1 (use -v to see invocation)
jifland commented 1 year ago

More specifically it looks like the effort is to compile the code statically, and that this is what leads to this object file trying to be linked in statically.

Tagl commented 10 months ago

More specifically it looks like the effort is to compile the code statically, and that this is what leads to this object file trying to be linked in statically.

If you remove the -static flag from the compilation step of C++ in your configuration, does it work then? You can modify it in the languages.yaml file under config.