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

Main Function required #2

Open
nahumj opened this issue Feb 6, 2023 · 1 comment
Open

Main Function required #2

nahumj opened this issue Feb 6, 2023 · 1 comment

Comments

@nahumj
Copy link
Collaborator

nahumj commented Feb 6, 2023

Even if a test case has "run_main=false", the test cases will fail to compile unless a main function is provided in the solution.

Example compiler error:

/usr/lib/gcc/x86_64-linux-gnu/11/../../../x86_64-linux-gnu/Scrt1.o: In function `_start':
(.text+0x20): undefined reference to `main'
collect2: error: ld returned 1 exit status
@mercere99
Copy link
Owner

I'll have to think a bit for how this should be handled. I'm not sure how to detect main(). If main is explicitly not written by the students, we can always put it in the header.

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