RE: Problem of compiling and linking the C/C++ program using WIN32API with GCC

2007-05-28 Thread Dave Korn
On 28 May 2007 14:42, Alain Nguyen wrote: > Hi, > > I am a new CYGWIN user. > > I actually tried to compile and link a C/C++ program using the 'w32api', > more exactly, the '/lib/w32api/libws2_32.a' library, with the following > command: > > $gcc -o myprogram -lws2_32-c mypr

Problem of compiling and linking the C/C++ program using WIN32API with GCC

2007-05-28 Thread Alain Nguyen
Hi, I am a new CYGWIN user. I actually tried to compile and link a C/C++ program using the 'w32api', more exactly, the '/lib/w32api/libws2_32.a' library, with the following command: $gcc -o myprogram -lws2_32-c myprogram.c But, I always got the error messages from the 'ld' l