#[SOLVED] sockets.h, C programming; addrinfo giving issues

11 messages · Page 1 of 1 (latest)

snow blaze
snow blaze
#

... solved

ocean brambleBOT
#

#9742 📣 If there is nothing else that we can do for you, please close this thread by adding "[SOLVED]" to the title.

  • You can do this on desktop by clicking the three dots on the top right of the page, and pressing "Edit Post".
  • You can also do this on Android / iOS by long tapping your post in the text channel list, and tapping "Edit Post".

Your title should be like so: https://cdn.discordapp.com/attachments/503224329191030787/1039841700417384498/image.png
Thank you

snow blaze
#

@jade heart

jade heart
#

thank you!

#

C libraries giving erros SOLVED

#

C libraries giving erros [SOLVED]

snow blaze
#

@jade heart say how you fixed it first

jade heart
#

OKe :D

#

if you're using sockets.h, addrinfo is a gnu extension apparently, so you need to add #define _GNU_SOURCE

#

alternatively, you can choose to compile without specifying a c standard, that seems to work. Most of them seemingly just dont work 🤷