Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > C Programming > compiler could not find include *.h file

Reply
Thread Tools

compiler could not find include *.h file

 
 
zqiang320
Guest
Posts: n/a
 
      09-27-2008
Hello:
when I execute
$ make
Making all in libsbml/src
make[1]: Entering directory `/home/internet/mydoc/test_pj/libsbml/src'
.........
-I. -Isundials/include -Ilibsbml/include -g -O2 -MT main.o -MD -MP -
MF .deps/main.Tpo -c -o main.o main.c
In file included from sundials/include/sundials/sundials_nvector.h:50,
from sundials/include/cvodes/cvodes.h:41,
from main.c:52:
sundials/include/sundials/sundials_types.h:50:38: error: sundials/
sundials_config.h: No such file or directory
In file included from sundials/include/cvodes/cvodes.h:41,
from main.c:52:


sundials/sundials_config.h was in directory in sundials/include, why
compiler could not find it by
AM_CPPFLAGS = -Isundials/include

what should I do?

my configure.in :

AC_INIT(main, 0.1, http://www.velocityreviews.com/forums/(E-Mail Removed))
AM_INIT_AUTOMAKE(foreign)
AC_PROG_CC
AC_PROG_CXX
AM_PROG_LIBTOOL
AC_OUTPUT(Makefile libsbml/src/Makefile)

Makefile.am :

bin_PROGRAMS = main
SUBDIRS = libsbml/src .
main_SOURCES = main.c
main_LDADD = sundials/src/cvodes/libsundials_cvodes.la sundials/src/
nvec_ser/libsundials_nvecserial.la ./libsbml/src/libsbml.la -lm
AM_CPPFLAGS = -Isundials/include -Ilibsbml/include
 
Reply With Quote
 
 
 
 
Ian Collins
Guest
Posts: n/a
 
      09-27-2008
zqiang320 wrote:
>
> what should I do?
>

Again, this looks like a platform/tool problem, not a C language one.
Try another group.

--
Ian Collins.
 
Reply With Quote
 
 
 
 
Bartc
Guest
Posts: n/a
 
      09-27-2008

"zqiang320" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Hello:
> when I execute
> $ make
> Making all in libsbml/src
> make[1]: Entering directory `/home/internet/mydoc/test_pj/libsbml/src'
> ........
> -I. -Isundials/include -Ilibsbml/include -g -O2 -MT main.o -MD -MP -
> MF .deps/main.Tpo -c -o main.o main.c
> In file included from sundials/include/sundials/sundials_nvector.h:50,
> from sundials/include/cvodes/cvodes.h:41,
> from main.c:52:
> sundials/include/sundials/sundials_types.h:50:38: error: sundials/
> sundials_config.h: No such file or directory
> In file included from sundials/include/cvodes/cvodes.h:41,
> from main.c:52:
>
>
> sundials/sundials_config.h was in directory in sundials/include, why
> compiler could not find it by
> AM_CPPFLAGS = -Isundials/include


The luxury of having your compiler tell you the full path of whatever file
it can't find...

Ignoring the flag setting, it says it can't find sundials_config.h in
'sundials', not in 'sundials/include' where you say it exists.

Have you tryed temporarily copying to 'sundials' just to see if it will shut
the compiler up?

What does the include line look like in the source? Maybe there are
different search rules for "..." and <...> files, or has a path hardcoded
into it or something.

--
Bartc

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
/* #include <someyhing.h> */ => include it or do not include it?That is the question .... Andreas Bogenberger C Programming 3 02-22-2008 10:53 AM
ASP Error 0126 include file not found, when using ".." in include file path Eric ASP General 10 01-11-2007 07:38 AM
ASP Error 0126 include file not found, when using ".." in include file path Eric ASP General 0 01-09-2007 06:54 PM
Compiler Error Message: BC2017: could not find library Henrik Stidsen ASP .Net 0 05-19-2006 09:25 AM
Project could not be opened because a language-specific compiler could not be instantieted Roxanne ASP .Net 0 07-04-2003 10:22 AM



Advertisments