Working with Libraries and Momentics

Hi all,

I need some help linking libraries in momentics. I need to write a library myself, which is dependent on a static library supplied with the hardware I am using.

I know this is from square one, but how would I go about doing this in momentics? I have all the code written for my library, Motion.c, however, now I need to bring it all together with another library DMC.lib, and a header file, dmc.h.

Can anyone help me? Thanks in advance. Matt.

I think you just have to create the Motion library normally (using #include “dmc.h” in Motion.c)
and then when linking the actual executable binary using -lMotion -lDMC