i'm using g++ compiler with cygwin and somehow i can't reach all the libraries i want to. actually i'm starting with network applications and i need to link the ws2_32.dll and/or wsock32.dll. for command:
g++ -lwsock32 test.cpp
there is no problem with compilation except it says
"undefined reference to `WSAStartup@8'" and the same for the rest of the functions i need :D so there actually is a problem. It's as if i didnt try to link it at all.
if i try the same with ws2_32 it says.. the library cannot be found or something like that..
ok.. meheh im sorry guys im truly a stupid idiot.. cygwin wouldnt take .lib libraries so if you want to compile with these get some else compiler like... mingw you can use g++ just like with cygwin only it recognizes .lib libs.. once more sry for bothering you with question that already was discussed