Hi,
I'm using the makefile from ble_hrs to write my own makefile. I need to had libraries .lib and .a files. How should I add my files in the makefile?
Thanks in advance.
Hi,
I'm using the makefile from ble_hrs to write my own makefile. I need to had libraries .lib and .a files. How should I add my files in the makefile?
Thanks in advance.
Hi,
Just add "LIBRARIES += -llibrary" to your makefile. See gcc.gnu.org/.../Link-Options.html for more details.
This seems to work for .a files. I also have a .lib library. I have tried the same method. It is not linked. I know they are different in type of library. Do I have to convert the .lib to .a? Or is there another way to link it?
Thanks in advance.
Have you tried using the full path and name to the lib file without the '-l' option?
I changed it for " LIBRARIES += PATH/library.lib. It finds the .lib file but I have a error : "could not read symbols : File format not recognized".