Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 5951

SDK • Re: 'clock_get_hz' was not declared in this scope

$
0
0
Another thing to bear in mind (may or may not be relevant to your current problem), is that the SDK/CMake setup only puts the relevant directories on the include path if you have specified the library via target_linked_libaries() in the CMakeLists.txt.

Obviously an incorrect setup is never going to build anyhow, but where you might have expected to get link-time errors for the missing library, usually instead you get a compile-time error for missing includes - which may be confusing if you aren't aware of this.

Statistics: Posted by arg001 — Sun Sep 29, 2024 7:23 pm



Viewing all articles
Browse latest Browse all 5951