Relative Content

Tag Archive for cmakecross-compilingraspberry-pi-pico

Building with cmake : 100% Linking CXX executable …fails

I am able to compile the code but when it is linking-time something does not work as expected.
I investigated a bit, and the problem is that the objects files used by the linker are ’empty’.
Likely, the build process is considering only the headers file and nothing else, but I have not idea how to fix it.
To replicate the problem just do as follow:

Building with cmake : 100% Linking CXX executable …fails

I am able to compile the code but when it is linking-time something does not work as expected.
I investigated a bit, and the problem is that the objects files used by the linker are ’empty’.
Likely, the build process is considering only the headers file and nothing else, but I have not idea how to fix it.
To replicate the problem just do as follow: