Page 1 of 1

Undefined reference to gethostname

Posted: Wed Jun 19, 2024 3:10 pm
by LoPiLo
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