I have problems finding include files that are defined in a makefile with pgcc under cygwin.
I installed pgWIN 8.0.1 on a WIN XP system with a already installed regular cygwin.
Is this o.k., or do I have to remove the regular Cygwin before PG installation?
Variables are defined via “export” in a sh script. All these are set properly.
The makefile has several includes in separate *.mk files that desribe directory paths.
These -Ipaths are extended properly, however pgcc complains not to find the include files albeit they they are in respective dirs
example
make: *** [miscmaths.o] Error 2
pgcpp -w -I/cygdrive/c/fslneu/extras/include/newmat -I/cygdrive/c/fslneu/src/miscmaths -I/cygdrive/c/fslneu/extras/include/libprob
-I/cygdrive/c/fslneu/extras/include/zlib -I. -I/cygdrive/c/fslneu/include -I/cygdrive/c/fslneu/include -c -o optimise.o optimise.cc
“c:\fslneu\src\miscmaths\optimise.h”, line 76: catastrophic error: could not
open source file “newmatap.h”
#include “newmatap.h”
this is the makefile
include ${FSLCONFDIR}/default.mk
PROJNAME = miscmaths
USRINCFLAGS = -I${INC_NEWMAT} -I${INC_BOOST} -I${INC_PROB} -I${INC_ZLIB}
USRLDFLAGS = -L${LIB_NEWMAT} -L${LIB_PROB} -L${LIB_ZLIB}
OBJS = miscmaths.o optimise.o miscprob.o kernel.o histogram.o base2z.o t2z.o f2z.o volume.o volumeseries.o minimize.o cspline.o sparse_matrix.o sparsefn.o rungekutta.o nonlin.o bfmatrix.o
LIBS = -lutils -lfslio -lniftiio -lznz -lz -lnewmat -lprob -lm
all: libmiscmaths.a
quick:${OBJS} quick.o
${CXX} ${CXXFLAGS} ${LDFLAGS} -o $@ ${OBJS} quick.o ${LIBS}
libmiscmaths.a: ${OBJS}
${AR} -r libmiscmaths.a ${OBJS}
This is the code of default.mk file
Assumes that ${FSLDIR} is set as an environment variable
include ${FSLCONFDIR}/${FSLMACHTYPE}/systemvars.mk
include ${FSLCONFDIR}/${FSLMACHTYPE}/externallibs.mk
include ${FSLCONFDIR}/common/vars.mk
include ${FSLCONFDIR}/common/rules.mk
this is a snippet of a externallibs.mk file called
FSLEXTLIB=${FSLDIR}/extras/lib
FSLEXTINC=${FSLDIR}/extras/include
GD library
LIB_GD = ${FSLEXTLIB}
INC_GD = ${FSLEXTINC}/libgd
GDC library
LIB_GDC = ${FSLEXTLIB}
INC_GDC = ${FSLEXTINC}/libgdc
…
The same problem exists with libs and corresponding paths.
When I have the *.h files in the building dir they are found.
I would appreciate any help
Thanks
a_bra