Undefined reference to gethostname

LoPiLo
Posts: 2
Joined: Wed Jun 19, 2024 2:59 pm

Undefined reference to gethostname

Postby LoPiLo » Wed Jun 19, 2024 3:10 pm

Hi,
I'm trying to use esp-idf-sys::gethostname() function but I get from the linker the error:
undefined reference to `gethostname'
Does anyone know why or where I can find the gethostname C function so I can add it as extern function in my rust code?
Thanks

Who is online

Users browsing this forum: No registered users and 27 guests