Skip to main content
Mario Luzeiro
Associate III
Oct 1, 2019 11:22 AM UTC
Solved

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

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.
Mario Luzeiro
Mario LuzeiroBest answer
Associate III
Oct 1, 2019 12:16 PM UTC

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 LuzeiroAuthorBest answer
Associate III
Oct 1, 2019 12:16 PM UTC

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++