right at the end it works
and how to add it to makefile
edit: i have it, simply
gcc $? -o $@ -lws2_32
Type: Posts; User: Holymanus
right at the end it works
and how to add it to makefile
edit: i have it, simply
gcc $? -o $@ -lws2_32
same result like before
C:\Users\Martin\Desktop\C\SEM\SEM\SEM 2. verze>gcc -lws2_32 -o clapp clientapp.c
C:\Users\Martin\AppData\Local\Temp/ccIDgaaa.o(.text+0x17):clientapp.c: undefined...
And if im trying to add this file with ld.exe
ld.exe "C:\Program Files\Microsoft SDKs\Windows\v6.0A
\Lib\Ws2_32.lib"
ld.exe: warning: cannot find entry symbol _mainCRTStartup; defaulting to...
gcc -LC:\Program Files\Microsoft SDKs\Windows\v6.0A\Lib -oSEM.exe tab.o clientapp.o app.o -lWs2_32.lib
c:/mingw/bin/../lib/gcc/mingw32/4.5.0/../../../../mingw32/bin/ld.exe: cannot find -lWs2_32.lib...
you mean with parametr -l Ws2_32.lib ?
gcc -oSEM.exe tab.o clientapp.o app.o
clientapp.o:clientapp.c:(.text+0x17): undefined reference to `WSAStartup@8'
clientapp.o:clientapp.c:(.text+0x2e): undefined reference to `WSACleanup@0'...
Hi im solving problem of function of preprocesor, i dont understand why this cant be linked. Im speaking about funciton communication because there seems is the problem
#include <string.h>...