ignored preprocessor directives

Hello everyone,
I'm currently working with LTI library for a project which requires signal processing and matrix computation.
Compiling such library I've encountered a strange error, in a .h file I've this code:

#ifndef _LTI_GTK_WIDGET_H_
#define _LTI_GTK_WIDGET_H_

#include "ltiConfig.h"

#ifdef HAVE_GTK
#include <gtk/gtk.h>

... some declarations and include here... (they don't deal with preprocessor definitions)

#endif

#endif

I haven't declared the preprocessor directive HAVE_GTK, but in spite of this, during compilation I've encountered some errors referring to the declarations and include in #ifdef HAVE_GTK section.

can anyone help with this problem?

Thanks in advance,

Luigi

Are you using the GNU Autobuild toos (autoconf/automake). If you are, running configure generates a config.h that fills in these HAVE_xxx defines based on what it found in your environment.

If you're not, you're probably picking up a rogue config.h.
did you try looking at ltiConfig.h?

maybe it expects you to review/edit it before compiling.
Last edited on
Thanks for your prompt suggestions, that take me on the right track.
It has been a problem with file ltiWinConfig.h (that has been referenced by ltiConfig.h) that defines HAVE_GTK in any case.
Commenting this line avoids errors described in my previous post.
Topic archived. No new replies allowed.