Error compiling a c program

2007-03-31 Thread Nick048

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: http://www.nabble.com/file/7597/Userver1.c Userver1.c 

Thank You and Best Regards
Nick048
-- 
View this message in context: 
http://www.nabble.com/Error-compiling-a-c-program-tf3497270.html#a9768339
Sent from the Cygwin Users mailing list archive at Nabble.com.


--
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/



Problem running C server with Cygwin

2007-05-28 Thread Nick048

Hi to All,

sorry for some variable in italian language.

I have written a C Server program and I have compiled this with Cygwin
without errors.
Running the exe file with Cygwin, if the client (telnet) send to Server a
word (in italian language "parola"), in the Cygwin window this message is
displayed:
5 [main] myserver 2736 _cygtls:: handle_exception: Error while dumping state
(probably corrupted stack)

This is the source code  http://www.nabble.com/file/p10835433/myServer.c
myServer.c 

Can You help me in order to found the reason of this error ?

Thank You and Best Regards.

Gaetano
-- 
View this message in context: 
http://www.nabble.com/Problem-running-C-server-with-Cygwin-tf3827749.html#a10835433
Sent from the Cygwin Users mailing list archive at Nabble.com.


--
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: Problem running C server with Cygwin

2007-05-28 Thread Nick048

Thank You for reply.

I use the same version and as Client telnet from command line. But the error
is the same.

Thank for the notice over bug.

Gaetano


Mark Fisher wrote:
> 
> i don't get this error running the code you linked.
> i'm running "gcc (GCC) 3.4.4 (cygming special, gdc 0.12, using dmd 0.125)"
> 
> i did notice a simple bug in your program though, line 141 should be:
> 
>   if (NodoTrovato == NULL){
> 
> otherwise you never create words in your list.
> 
> after that, it ran fine.
> (if by fine you wanted each connection to only add one word to your
> server)
> 

-- 
View this message in context: 
http://www.nabble.com/Problem-running-C-server-with-Cygwin-tf3827749.html#a10836998
Sent from the Cygwin Users mailing list archive at Nabble.com.


--
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/