c++ - How can CDT project be compilable by itself, but not compilable as linked folder? -
i have c++ project compilable (the project leptonica). consists of configure
script , compiles make
.
if import project eclipse cdt, compiles (with autotools
toolchain).
but then, if create empty cdt static library project, , refer project above within it, becomes not compilable. tries compile referred project , produces bad errors include file not found , on.
my question how can be?
update
sorry, referring project linking folder.
i.e. project properties -> c/c++ general -> paths , symbols -> source location -> link folder -> link folder in file system
when linking, message
location 'mylocation' may overlap resource. can cause unexpected side-effects.
appears.
update 2
actual error
building file: <mypath>/leptonica-1.69/src/freetype.c invoking: gcc c compiler gcc -o0 -g3 -wall -c -fmessage-length=0 -mmd -mp -mf"leptonica-1.69/src/freetype.d" -mt"leptonica-1.69/src/freetype.d" -o "leptonica-1.69/src/freetype.o" "<mypath>/leptonica-1.69/src/freetype.c" in file included <mypath>/leptonica-1.69/src/freetype.c:31:0: /usr/include/ft2build.h:56:38: fatal error: freetype/config/ftheader.h: no such file or directory compilation terminated. make: *** [leptonica-1.69/src/freetype.o] error 1
i.e. can't find file finds if compiled standalone.
Comments
Post a Comment