mikeizbicki / ucr-cs100

open source software construction course
Other
485 stars 407 forks source link

hw1 not compiling #50

Closed kryne001 closed 10 years ago

kryne001 commented 10 years ago

I just saw my grade, which was given because my program did not compile, but I did all five steps shown in the homework,

git clone (myrepo) cd rshell git checkout hw1 make bin/rshell

I've done it at least four times when I cloned four different repos and they worked each time without me doing anything other than those fives commands.

bmars003 commented 10 years ago

When I was grading it I got this

marshb@well $ make g++ -Wall -Werror -ansi -pedantic src/hw1.cpp -o bin/rshell cc1plus: warnings being treated as errors src/hw1.cpp: In function \u2018int main()\u2019: src/hw1.cpp:22: warning: comparison between signed and unsigned integer expressions src/hw1.cpp:35: warning: comparison between signed and unsigned integer expressions src/hw1.cpp:73: error: no matching function for call to \u2018wait::wait(int)\u2019 /usr/include/bits/waitstatus.h:68: note: candidates are: wait::wait() /usr/include/bits/waitstatus.h:68: note: wait::wait(const wait&) make: *\ [all] Error 1

kryne001 commented 10 years ago

screen shot 2014-08-10 at 12 30 47 pm

that's what i get when it runs

bmars003 commented 10 years ago

Have you tested it on the school's server well? I am not quite sure what that picture is showing, but from the looks of it that you were testing it solely on a Mac, which is a different favor of UNIX than what what the class is using, which is what is on well.

kryne001 commented 10 years ago

Yeah that's probably the problem, I'm going to Chung today so I'll try it again and see.

bmars003 commented 10 years ago

You know you can ssh into the schools server anytime remotely by typing ssh -X username@well.cs.ucr.edu. Replace username with your cs account's username.

kryne001 commented 10 years ago

Oh wow, okay so I just checked on the school's server and it didn't compile, is it too late to rectify this?

rgosh001 commented 10 years ago

I just got the same results here due to the difference in the well server. I recognize this is late, but I was wondering the same questions as above.

bmars003 commented 10 years ago

You will need to ask the professor.