M.Caggiano said:
I've write a function without errors but i've this message after
compilation:
*** ["../Socket/Client/Client.o"] Error1
how can i resolve this problem?
Many many thanks in advance.
First of all, it's important to copy-and-paste the *exact* error
message. Whatever tool produced the message, I suspect it actually
printed "Error 1", not "Error1". This may seem like a trivial point,
but we can't guess what other errors you may have inadvertently
produced when you re-typed the message.
As it happens, the form of the error message looks familiar; it
appears to be from the GNU "make" command, and it indicates that
*some* command, intended to create the file
"../Socket/Client/Client.o", failed with a status code of 1. Most
likely that command was the compiler. Normally you should have seen
the compiler's output just before the message you quoted. The most
likely explanations are (a) you've failed to show us the relevant
output (without which we can't possibly guess what the problem is), or
(b) the make command was invoked in such a way that it discarded the
compiler's diagnostic output (which would be an odd thing to do).
You seem to be assuming that you've written a function without errors;
since you're getting an error message, that seems unlikely. Look for
error messages from the compiler. Look at your Makefile and at the
way you're invoking the "make" command to be sure that it's letting
you see any messages from the compiler.
For help with using make, post to comp.unix.programmer. If you can
see the compiler's output, pay attention to the messages; if they
indicate a problem in your C source, and you have trouble correcting
it, post here with more details. If the problem has to do with a
system-specific feature, rather than with the core C language and
library, we might redirect you; in particular, sockets are not part of
standard C, and can be discussed in comp.unix.programmer.
You might also want to read this:
<
http://www.catb.org/~esr/faqs/smart-questions.html>.
--
Keith Thompson (The_Other_Keith) <
[email protected]>
Nokia
"We must do something. This is something. Therefore, we must do this."
-- Antony Jay and Jonathan Lynn, "Yes Minister"