This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Linking error in eclipse gcc with the peer manager

Hello,

I followed both tutorials about using Eclipse GCC and migrating to peer manager. I get no error when I follow them individually, i.e. when I use the project included in the Eclipse GCC tutorial I can build it without error and when I migrate to the peer manager in Keil uVision I can build my own project. However, when I do both I get the following errors:

_build/security_dispatcher.o: In function `smd_register':
security_dispatcher.c:(.text.smd_register+0x0): multiple definition of `smd_register'
_build/security_dispatcher.o:security_dispatcher.c:(.text.smd_register+0x0): first defined here
_build/security_dispatcher.o: In function `smd_params_reply':
security_dispatcher.c:(.text.smd_params_reply+0x0): multiple definition of `smd_params_reply'
_build/security_dispatcher.o:security_dispatcher.c:(.text.smd_params_reply+0x0): first defined here
_build/security_dispatcher.o: In function `smd_link_secure':
security_dispatcher.c:(.text.smd_link_secure+0x0): multiple definition of `smd_link_secure'
_build/security_dispatcher.o:security_dispatcher.c:(.text.smd_link_secure+0x0): first defined here
_build/security_dispatcher.o: In function `smd_ble_evt_handler':
security_dispatcher.c:(.text.smd_ble_evt_handler+0x0): multiple definition of `smd_ble_evt_handler'
_build/security_dispatcher.o:security_dispatcher.c:(.text.smd_ble_evt_handler+0x0): first defined here

This file security_dispatcher comes with the peer_manager. The same code is built error free in Keil uVision (nRF51DK, SDK 10.0.0, Softdevice S130) What could be the reason of this and how can I solve it?

Thank you in advance.

Makefile

Related