0

Hello i need help understanding what is wrong with my pset6. I keep getting this error. Sorry i am new here.

server.c:672:1: error: function definition is not allowed here { ^ server.c:1105:1: error: expected '}' ^ server.c:655:1: note: to match this '{' { ^ 2 errors generated. make: *** [server] Error 1

1 Answer 1

0

This looks like you have a problem with missing, mismatched, or incorrectly placed curly braces. Without seeing the code, I can't tell, but it looks like you're missing a closing brace on line 671 and it's hitting the function signature on line 672, which it doesn't like.

If this answers your question, please click on the check mark to accept. Let's keep up on forum maintenance. ;-)

2
  • thank you i can send the code for you to see if that will help. pastebin.com/pXbtgNfR
    – tactiv3
    Feb 27, 2016 at 6:33
  • Checking mismatched curly braces is one of the most basic debugging tasks. I'm sure that you can handle it.
    – Cliff B
    Feb 27, 2016 at 7:35

You must log in to answer this question.

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