-
Notifications
You must be signed in to change notification settings - Fork 342
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Multiple definitions linking error #256
Comments
Thank you for reporting. I think you use wrong target. From readme:
Please have a look at #237 and #252 that have same issues with |
Hey, i use the |
Thank you for reporting. I have seen your history and you are not a noob. You can understand we maintain this repo in our free time (several hours a week). It would realy help if you could do a quality questions or clearly documented bugs. If needed please provide a code
This would really help us to help you. Personally I won't look any deeper for now. |
Hey, sorry for the delay. I prepare an example to reproduce the error. This is the example, https://github.com/zisi/stm32-cmake/tree/linking-error/examples/link-error. To reproduce it, run:
The output:
System:
Expected behavior Thanks!! |
Hello,
So in your example it's normal that with Please add a commit to reproduce what you described here #256 (comment) |
Hey, add this commit, https://github.com/zisi/stm32-cmake/tree/linking-error and got this:
Thanks! |
I have no time to look a this now but have you tried to understand the problem ?
first error seems to be pretty clear. You want to use your own files it's normal that you have more defines and other things to provide yourself. Please open the file and you will see that your are obviously missing a simple and mandatory define. |
Thanks for the comment, i add this definition:
add it works. |
Describe the bug
When the
stm32_fetch_cube()
is used it gets also templates likesystem_stm32h7xx.c
.In case that a modified
system_stm32h7xx.c
is used, an error in linking is appeared relatedto multiple definition of functions inside the
system_stm32h7xx.c
.Sources to reproduce
https://gitlab.com/librespacefoundation/satnogs-comms/libsatnogs-comms/-/merge_requests/1/diffs
The project it is under development.
Steps to reproduce
add_executable(test ...
addsystem_stm32h7xx.c
Expected behavior
Screenshots
Environment (please complete the following information):
Additional context
In order to fix the issue, the below code is used:
Does it exists another way to not include templates?
The text was updated successfully, but these errors were encountered: