cancel
Showing results for 
Search instead for 
Did you mean: 

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

Mario Luzeiro
Senior

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?

1 ACCEPTED SOLUTION

Accepted Solutions
Mario Luzeiro
Senior

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

View solution in original post

1 REPLY 1
Mario Luzeiro
Senior

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