For example : https://aluigi.altervista.org/fakep/tcpfp.zip
Contains two files : winerr.h and tcpfp.c
Now I tried Visual Studio Code, started a new project and now this:
Code: Select all
c:/mingw/bin/../lib/gcc/mingw32/8.2.0/../../../../mingw32/bin/ld.exe: C:\Users\Dennis\AppData\Local\Temp\ccwJzarD.o:tcpfp.c:(.text+0x7): undefined reference to `WSAGetLastError@0'
c:/mingw/bin/../lib/gcc/mingw32/8.2.0/../../../../mingw32/bin/ld.exe: C:\Users\Dennis\AppData\Local\Temp\ccwJzarD.o:tcpfp.c:(.text+0x5ae): undefined reference to `WSAStartup@8'
c:/mingw/bin/../lib/gcc/mingw32/8.2.0/../../../../mingw32/bin/ld.exe: C:\Users\Dennis\AppData\Local\Temp\ccwJzarD.o:tcpfp.c:(.text+0x921): undefined reference to `htons@4'
c:/mingw/bin/../lib/gcc/mingw32/8.2.0/../../../../mingw32/bin/ld.exe: C:\Users\Dennis\AppData\Local\Temp\ccwJzarD.o:tcpfp.c:(.text+0x946): undefined reference to `ntohs@4'
c:/mingw/bin/../lib/gcc/mingw32/8.2.0/../../../../mingw32/bin/ld.exe: C:\Users\Dennis\AppData\Local\Temp\ccwJzarD.o:tcpfp.c:(.text+0x95a): undefined reference to `inet_ntoa@4'
c:/mingw/bin/../lib/gcc/mingw32/8.2.0/../../../../mingw32/bin/ld.exe: C:\Users\Dennis\AppData\Local\Temp\ccwJzarD.o:tcpfp.c:(.text+0x9c1): undefined reference to `socket@12'
c:/mingw/bin/../lib/gcc/mingw32/8.2.0/../../../../mingw32/bin/ld.exe: C:\Users\Dennis\AppData\Local\Temp\ccwJzarD.o:tcpfp.c:(.text+0x9ef): undefined reference to `connect@12'
c:/mingw/bin/../lib/gcc/mingw32/8.2.0/../../../../mingw32/bin/ld.exe: C:\Users\Dennis\AppData\Local\Temp\ccwJzarD.o:tcpfp.c:(.text+0xa06): undefined reference to `closesocket@4'
c:/mingw/bin/../lib/gcc/mingw32/8.2.0/../../../../mingw32/bin/ld.exe: C:\Users\Dennis\AppData\Local\Temp\ccwJzarD.o:tcpfp.c:(.text+0xc16): undefined reference to `__WSAFDIsSet@8'
c:/mingw/bin/../lib/gcc/mingw32/8.2.0/../../../../mingw32/bin/ld.exe: C:\Users\Dennis\AppData\Local\Temp\ccwJzarD.o:tcpfp.c:(.text+0xd23): undefined reference to `select@20'
c:/mingw/bin/../lib/gcc/mingw32/8.2.0/../../../../mingw32/bin/ld.exe: C:\Users\Dennis\AppData\Local\Temp\ccwJzarD.o:tcpfp.c:(.text+0xde8): undefined reference to `__WSAFDIsSet@8'
c:/mingw/bin/../lib/gcc/mingw32/8.2.0/../../../../mingw32/bin/ld.exe: C:\Users\Dennis\AppData\Local\Temp\ccwJzarD.o:tcpfp.c:(.text+0xe1c): undefined reference to `recv@16'
c:/mingw/bin/../lib/gcc/mingw32/8.2.0/../../../../mingw32/bin/ld.exe: C:\Users\Dennis\AppData\Local\Temp\ccwJzarD.o:tcpfp.c:(.text+0xfde): undefined reference to `socket@12'
c:/mingw/bin/../lib/gcc/mingw32/8.2.0/../../../../mingw32/bin/ld.exe: C:\Users\Dennis\AppData\Local\Temp\ccwJzarD.o:tcpfp.c:(.text+0x1049): undefined reference to `setsockopt@20'
c:/mingw/bin/../lib/gcc/mingw32/8.2.0/../../../../mingw32/bin/ld.exe: C:\Users\Dennis\AppData\Local\Temp\ccwJzarD.o:tcpfp.c:(.text+0x1077): undefined reference to `setsockopt@20'
c:/mingw/bin/../lib/gcc/mingw32/8.2.0/../../../../mingw32/bin/ld.exe: C:\Users\Dennis\AppData\Local\Temp\ccwJzarD.o:tcpfp.c:(.text+0x10a5): undefined reference to `setsockopt@20'
c:/mingw/bin/../lib/gcc/mingw32/8.2.0/../../../../mingw32/bin/ld.exe: C:\Users\Dennis\AppData\Local\Temp\ccwJzarD.o:tcpfp.c:(.text+0x10c5): undefined reference to `connect@12'
c:/mingw/bin/../lib/gcc/mingw32/8.2.0/../../../../mingw32/bin/ld.exe: C:\Users\Dennis\AppData\Local\Temp\ccwJzarD.o:tcpfp.c:(.text+0x10ff): undefined reference to `closesocket@4'
c:/mingw/bin/../lib/gcc/mingw32/8.2.0/../../../../mingw32/bin/ld.exe: C:\Users\Dennis\AppData\Local\Temp\ccwJzarD.o:tcpfp.c:(.text+0x1161): undefined reference to `send@16'
c:/mingw/bin/../lib/gcc/mingw32/8.2.0/../../../../mingw32/bin/ld.exe: C:\Users\Dennis\AppData\Local\Temp\ccwJzarD.o:tcpfp.c:(.text+0x119c): undefined reference to `closesocket@4'
c:/mingw/bin/../lib/gcc/mingw32/8.2.0/../../../../mingw32/bin/ld.exe: C:\Users\Dennis\AppData\Local\Temp\ccwJzarD.o:tcpfp.c:(.text+0x12c3): undefined reference to `closesocket@4'
c:/mingw/bin/../lib/gcc/mingw32/8.2.0/../../../../mingw32/bin/ld.exe: C:\Users\Dennis\AppData\Local\Temp\ccwJzarD.o:tcpfp.c:(.text+0x1432): undefined reference to `inet_addr@4'
c:/mingw/bin/../lib/gcc/mingw32/8.2.0/../../../../mingw32/bin/ld.exe: C:\Users\Dennis\AppData\Local\Temp\ccwJzarD.o:tcpfp.c:(.text+0x1449): undefined reference to `gethostbyname@4'
Suddenly I have to configure some weird tasks.json launch.json files, Internet description is a horror, tried many things and still wont work.
So ok next IDE. JetBrains CLion. Configured the path of Mingw. Now I start a new project with the files in the dir and now I cant even compile it because it says "CMake project is not loaded". What the hell.
When I look at your text at https://aluigi.altervista.org/about.htm it doesnt mention what IDE you use? And "I use ever and only Gcc and its Win32 port Mingw to compile my C stuff." So how do you do it? What if you have 10 or more files?
I cant even copy paste code and compile it please help