cancel
Showing results for 
Search instead for 
Did you mean: 

SPC5STUDIO how to create a library?

MFARA.1
Associate II

Hello guys, I created a project in SPC5STUDIO and then I created a header file and a source file for my library with "amir" name. then I created a function with "ams" name in "amir.c" source file but when I compile the project I have a error which say: "undefined reference to 'ams'"

0693W00000DmsNqQAJ.png0693W00000DmsLfQAJ.png 

please tell me whats the problem and how can I add or create a library correctly.

Thank you

This discussion has been locked for participation. If you have a question, please start a new topic in order to ask your question
1 ACCEPTED SOLUTION

Accepted Solutions
Erwan YVIN
ST Employee

Hello ,

  1. i recommend to add your library amir.c and amir.h in source directory or and others directories (except components)
  2. 0693W00000Dn0QnQAJ.png

Update user.mak in order to access to these files amir.c and amir.h

Best Regards

Erwan

View solution in original post

2 REPLIES 2
Erwan YVIN
ST Employee

Hello ,

  1. i recommend to add your library amir.c and amir.h in source directory or and others directories (except components)
  2. 0693W00000Dn0QnQAJ.png

Update user.mak in order to access to these files amir.c and amir.h

Best Regards

Erwan

MFARA.1
Associate II

Dear Erwan,

Thank you, yes I added my libraries in source folder and solved

Best wishes

Amir