2023-04-21 11:42 AM - edited 2023-11-20 07:27 AM
Hello,
I am using the STM32CubeIDE to write software to test the STSAFE (Nucleo-F401RE + Nucleo-SAFEA1). I am trying to get a basic software working and trying to use one of the STSAFE functions, but I am running into a strange error when I try to compile it. Based on all the searches I've done, this is typically a linker issue. However, I verified that the file that declares this function.
I think I'm getting tunnel visioned, but I cannot see what part I haven't linked properly. Does anyone know where else to look?
Open Declaration:
Solved! Go to Solution.
2023-04-21 11:49 AM
Include files define the interface expectations.
You still need the actual CODE that makes the functions work, which either comes from the linker pulling a precompiled library with that code, or the code file (.C / .CPP) for the library needs to be part of the project
2023-04-21 11:49 AM
Include files define the interface expectations.
You still need the actual CODE that makes the functions work, which either comes from the linker pulling a precompiled library with that code, or the code file (.C / .CPP) for the library needs to be part of the project
2023-04-21 11:57 AM
Hello Tesla,
Thank you for the reply! This was exactly the problem. The previous projects I did had software packages that automatically included those, so I never looked at them before.
Doing this manually made me realize how many little linker issues there are!
Thank you very much :)
2024-06-12 06:26 PM
Hi,
Can you please elaborate this? I am facing the same issue.
2024-07-05 09:38 AM - edited 2024-07-05 10:01 AM
If you have some C file in C++ source folder, then the headers (for C-files) shoulde be also additionally called in main.h file and include this "main.h" in C & C++ source.