Error compiling a c program

View: New views
5 Messages — Rating Filter:   Alert me  

Error compiling a c program

by Nick048 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi to all,

I have written a little server program, that work; but after the compilation, gcc return this warning:
userserver.c:98:2 : warning: no newline at end of file

Can You help me to find the origin of this warning ?

The file is here:Userver1.c

Thank You and Best Regards
Nick048

RE: Error compiling a c program

by Dave Korn :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On 31 March 2007 16:35, Nick048 wrote:

> Hi to all,
>
> I have written a little server program, that work; but after the
> compilation, gcc return this warning:
> userserver.c:98:2 : warning: no newline at end of file
>
> Can You help me to find the origin of this warning ?

  It comes from gcc.

    cheers,
      DaveK
--
Can't think of a witty .sigline today....


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


Re: Error compiling a c program

by Tim Prince-4 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

dave.korn@... wrote:

> On 31 March 2007 16:35, Nick048 wrote:
>
>> Hi to all,
>>
>> I have written a little server program, that work; but after the
>> compilation, gcc return this warning:
>> userserver.c:98:2 : warning: no newline at end of file
>>
>> Can You help me to find the origin of this warning ?
>
>   It comes from gcc.

And, presumably, you could fix it by using your editor to add a line
after the last brace.  I doubt gcc would accept the .html form.

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


RE: Error compiling a c program

by Dave Korn :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On 31 March 2007 17:14, Tim Prince wrote:

> dave.korn@... wrote:
>> On 31 March 2007 16:35, Nick048 wrote:
>>
>>> Hi to all,
>>>
>>> I have written a little server program, that work; but after the
>>> compilation, gcc return this warning:
>>> userserver.c:98:2 : warning: no newline at end of file
>>>
>>> Can You help me to find the origin of this warning ?
>>
>>   It comes from gcc.
>
> And, presumably, you could fix it by using your editor to add a line
> after the last brace.  I doubt gcc would accept the .html form.

  Babelfish dice

avvertimento: nessun newline all'estremità della lima


    cheers,
      DaveK
--
Can't think of a witty .sigline today....


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


RE: Error compiling a c program

by Dave Korn :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On 31 March 2007 17:26, Dave Korn wrote:

> On 31 March 2007 17:14, Tim Prince wrote:
>
>> dave.korn@... wrote:
>>> On 31 March 2007 16:35, Nick048 wrote:
>>>
>>>> Hi to all,
>>>>
>>>> I have written a little server program, that work; but after the
>>>> compilation, gcc return this warning:
>>>> userserver.c:98:2 : warning: no newline at end of file
>>>>
>>>> Can You help me to find the origin of this warning ?
>>>
>>>   It comes from gcc.
>>
>> And, presumably, you could fix it by using your editor to add a line
>> after the last brace.  I doubt gcc would accept the .html form.
>
>   Babelfish dice
>
> avvertimento: nessun newline all'estremità della lima


 ... but it probably means 'della archivio'.


    cheers,
      DaveK
--
Can't think of a witty .sigline today....


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/