Hi !

I am stuck with a problem in makefile.am............

In my project there are many directories and subdirectories..........

I have a directory /MyProject/Image/graphic/ShowImage.cpp.........

and /MyProject/View/View.cpp............................

I want some function from View.cpp to used in ShowImage.cpp.............

How can I do this...........I have included the header file "View.h" in ShowImage.cpp and also

I have make changes in makefile.am as follow:


//Makefile.am of graphic/ShowImage.cpp

headers = \
ShowImage.h

sources = \
ShowImage.cpp

noinst_LTLIBRARIES = libgraphic.la
pkginclude_HEADERS = $(headers)
CLEANFILES = $(BUILT_SOURCES)
noinst_LTLIBRARIES = libgui.la
libgraphic_la_SOURCES = $(headers_p) $(sources)
libgui_la_SOURCES = $(headers) $(sources)
nodist_libgui_la_SOURCES = $(BUILT_SOURCES)
libgraphic_la_CXXFLAGS = \
@MYPROJECT_DEP_CFLAGS@ $(AM_CXXFLAGS) \
-I@top_srcdir@/View
But when I make install it, it gives error in ShowImage.cpp that View.h does not exist............

How can I remove this error..............

Thanks