This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

multiple definition of "something" Segger

Hello every one.

I am new with Segger and nRF52.

I tried to create my own library for OB1203 sensor.

But i stack here when Segger view this error:

Output/blinky_pca10040_s132 Release/Obj/OB1203.o:C:\Users\dang\Desktop\OB1203v1\examples\peripheral\blinky\pca10040\s132\ses/../../../../../../modules/nrfx/drivers/include/OB1203.h:195: multiple definition of `osc_trim'; Output/blinky_pca10040_s132 Release/Obj/main.o:C:\Users\dang\Desktop\OB1203v1\examples\peripheral\blinky\pca10040\s132\ses/../../../../../../modules/nrfx/drivers/include/OB1203.h:195: first defined here
Below is my screen shoot

I believe the way i put OB1203.h and OB1203.c is wrong, that is not relate to Segger or nRF52 but i can not find where it wrong. 

Please help me.

Thank you for any support

Parents
  • Hi Alex

    I noticed this from one of your earlier replies now. I see that the OB1203 folder is located at the end of a very long path. This can cause SES to be unable to locate header files properly and cause errors like this. Can you try placing OB1203 folder closer to the root and add the new path (all the way to the header file, so .../.../OB1203) in the user include directories.

    Best regards,

    Simon

Reply
  • Hi Alex

    I noticed this from one of your earlier replies now. I see that the OB1203 folder is located at the end of a very long path. This can cause SES to be unable to locate header files properly and cause errors like this. Can you try placing OB1203 folder closer to the root and add the new path (all the way to the header file, so .../.../OB1203) in the user include directories.

    Best regards,

    Simon

Children
No Data
Related