Skip to content
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

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

Open
jifland opened this issue Jan 11, 2023 · 2 comments
Open

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

jifland opened this issue Jan 11, 2023 · 2 comments

Comments

@jifland
Copy link

jifland commented Jan 11, 2023

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
Copy link
Author

jifland commented Jan 11, 2023

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
Copy link
Contributor

Tagl commented Nov 29, 2023

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants