cancel
Showing results for 
Search instead for 
Did you mean: 

How to add external .c library

dongil.park
Associate II

Hello,

for Maintenance purpose, I made a .c library folder outside of SPC5Studio project

so I just linked the library folder under source folder

but my library didn't compiled

How can i add external library file into project?

Thank you

1 ACCEPTED SOLUTION

Accepted Solutions
Erwan YVIN
ST Employee

Hello Dongil ,

you can add your library in user.mak

# List of all user C source files
U_C_SRC     = ./main.c
 
# List of all user C++ source files
U_CPP_SRC   =
 
# List of all user ASM source files
U_ASM_SRC   =
 
# List all user C define here, like -D_DEBUG=1
UDEFS       =
 
# Define ASM defines here
UADEFS      =
 
# List all user directories here
UINCDIR     =
 
# List the user directory to look for the libraries here
ULIBDIR     =
 
# List all user libraries here
ULIBS       =

Best regards

Erwan

View solution in original post

1 REPLY 1
Erwan YVIN
ST Employee

Hello Dongil ,

you can add your library in user.mak

# List of all user C source files
U_C_SRC     = ./main.c
 
# List of all user C++ source files
U_CPP_SRC   =
 
# List of all user ASM source files
U_ASM_SRC   =
 
# List all user C define here, like -D_DEBUG=1
UDEFS       =
 
# Define ASM defines here
UADEFS      =
 
# List all user directories here
UINCDIR     =
 
# List the user directory to look for the libraries here
ULIBDIR     =
 
# List all user libraries here
ULIBS       =

Best regards

Erwan