Undefined reference to gethostname
Posted: Wed Jun 19, 2024 3:12 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
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