I downloaded tdm gcc 10.3.0 and installed it succesfully. I have a file I want to compile yet it is missing header files. Is there a way to add components to tdm gcc from an interface, or do I download the files(headers) manually and add them to the project. If so, where do I add them in the project ? I know header files exist in C:\TDM-GCC-32\include
Also, just in case, I have these header files in my main.c
,
#include <winsock2.h>#include <Windows.h>#include <ws2ipdef.h>#include <ws2tcpip.h>#include <iphlpapi.h>#include <bcrypt.h>#include <wincrypt.h>#include <sysinfoapi.h>#include <winternl.h>#include <stdarg.h>#include <stdio.h>#include <stdlib.h>
as i tried to compile with gcc main.c
, I got this error
main.c:8:10: fatal error: ws2ipdef.h: No such file or directory 8 | #include <ws2ipdef.h> | ^~~~~~~~~~~~compilation terminated.
How can I find this header file? If I just find it in github is it enough to add it to C:\TDM-GCC-32\include
?
another way to ask, how can I add ws2
to tdm gcc, or how to install tdm gcc alongwith?