Skip to main content
Mario Luzeiro
Associate III
October 1, 2019
Solved

cannot build after convert to cpp undefined reference to `_gettimeofday'

  • October 1, 2019
  • 1 reply
  • 1417 views

I've just converted my project to C++ with STM32CubeIDE and now it gives me an error about a "undefined reference to `_gettimeofday'" in libc_nano.a

How do I fix this issue?

This topic has been closed for replies.
Best answer by Mario Luzeiro

SOLVED: time function was used on some other lib that I didnt know.

for some reason it was building on C but not on C++

1 reply

Mario Luzeiro
Mario LuzeiroAuthorAnswer
Associate III
October 1, 2019

SOLVED: time function was used on some other lib that I didnt know.

for some reason it was building on C but not on C++