Header Files in Momentics

Hello,

I am trying to develop a program in Momentics, which includes multiple
custom header files that I have created. I have added these header files
via FILE–>IMPORT…–> followed by the files themselves. When compiling,
I get an error that the header files cannot be found. Does anyone know
why I cannot simply add the header files in this way? Thanks.

Mark Tontelli <m2asselin@yahoo.com> wrote:
MT > Hello,

MT > I am trying to develop a program in Momentics, which includes multiple
MT > custom header files that I have created. I have added these header files
MT > via FILE–>IMPORT…–> followed by the files themselves. When compiling,
MT > I get an error that the header files cannot be found. Does anyone know
MT > why I cannot simply add the header files in this way? Thanks.


You need to tell the compiler what director(y/ies) to search.

Alternativly, you could use quotes instead of angle brackets to say that
they are in the same directory as the source. I.E.

#include “my.h”
instead of
#include <my.h>