0

I have finally made code that works and allows itself to be "made". However when I try to compile the code to submit it, it presents me with an error that says "undefined reference to 'get_int'. Can anybody give me a hint as to what I am doing wrong?enter image description here

2

if you successfully ran "make mario", why are you running clang? The make command is doing all the compiling and linking for you.

Without the correct compiler flags in the command, it won't build. Fortunately, the IDE has those set up by default.

If you're trying to "submit" the code for credit, you need to run submit50. Hopefully, you've run check50 and passed with flying colors?

3
  • unfortunately running check50 doesn't pass and I do not understand the error that I am getting. It says the following: usage: check50 [-h] [-d] [--offline] [-l] [--log] [-o {ansi,json,html} [{ansi,json,html} ...]] [--target TARGET [TARGET ...]] [--output-file FILE] [-v] [-V] [--logout] slug check50: error: the following arguments are required: slug Jul 31 '20 at 1:13
  • First, have you successfully compiled mario yet? Did you actually run it yourself? Does it produce correct results from what you can see? Once all this is done, then it's time to run check50 using the exact command shown in the pset instructions. Once it passed check50, then run submit50, again using the exact command and parameters shown in the pset instructions. BUT, if it isn't compiling, check50 is a waste of time. So, what is really your problem now? Does it compile? Does mario execute correctly?
    – Cliff B
    Jul 31 '20 at 1:20
  • 1
    I actually just figured it out. I misunderstood that I needed to actually write in more than just "check50". I have corrected my error and submitted the assignment. Thank you all for your help. Jul 31 '20 at 1:24

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .