cancel
Showing results for 
Search instead for 
Did you mean: 

Error in LwIP. implicit declaration of function 'gethostbyname'; did you mean 'getsockname'?

Kevin(Dr.Electron)
Associate III

Hi,

I tried to port the X-CUBE-IOTA1 Lib to the STM32F7-Disco.

So i startet with a void Project added the Cube Iota files and enabled the LwIP Module.

But in the http_manager.c file all gethostbyname calls throw the above error.

I don't understand how the compiler can't find the function.

All Files should be included correctly.

Do i have to change some LwIP Settings?

I know that may be a dump question, but i can't find the error.

If you need some Code let me know.

Thanks for your Help,

Kevin

2 REPLIES 2
Antonio Vilei
Senior III

Hi Kevin,

did you solve your problem? If you still have issues, please let us know.

Best regards,

Antonio

Yes, problem solved.

Thanks for your answer.