Eljay Love-Jensen wrote:
Hi Anatoli,
I have /usr/include/w32api/winsock2.h installed with Cygwin. I see that it has __cplusplus instrumentation.
Can you provide a short (~10 line) example program *and* your g++ command line that reproduces the problem.
Thanks,
--Eljay
Well, it seems, I've found the fault. It's mine.
Trying to catch sutable example of what I had been doing, I noticed
that the program builds successfully when I type commands, and fails
to build when I execute make.
So I understood the difference between commands:
$ g++ -lws2_32 -o udpserver udpserver.o udpsocket.o # wrong way used earlier
and
$ g++ -o udpserver udpserver.o udpsocket.o -lws2_32
Thanks a lot for participation!
-- Anatoli
P.S.: Vivat the GNU!