Quantcast
Channel: Active questions tagged gcc - Stack Overflow
Viewing all articles
Browse latest Browse all 22213

gcc tdm 10.3.0 get missing header files

$
0
0

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?


Viewing all articles
Browse latest Browse all 22213

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>