Skip to main content
Kevin(Dr.Electron)
Associate III
November 19, 2019
Question

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

  • November 19, 2019
  • 1 reply
  • 1433 views

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

This topic has been closed for replies.

1 reply

Antonio Vilei
ST Employee
October 13, 2020

Hi Kevin,

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

Best regards,

Antonio

Kevin(Dr.Electron)
Associate III
October 13, 2020

Yes, problem solved.

Thanks for your answer.