Re: [Anjuta-list] Do I need to run automake after adding library dependencies?



On Sat, 2009-01-03 at 10:54 +0100, Sébastien Granjoux wrote:
> Hi Malcolm,
> 
> Malcolm Lalkaka a écrit :
> > I created a new project, and was following the tutorial at
> > http://www.anjuta.org/documentations/subpage/documents/C/anjuta-build-tutorial/index.html.
> > I added a library to the project configuration, and added it as a
> > dependency of the target in the project. I then tried to build, but it
> > failed to find the header files for the library I just added.
> > 
> > I then ran automake within the project directory manually, and tried
> > building again; this worked. Is this a bug, or am I missing a step here?
> 
> I don't know I need more details. What message error do you get when it 
> fails ? What have you done exactly ? so I can do the same here.

Sorry I should have given more details the first time.

The error message was:
        main.c:20:30: error: libxml/parser.h: No such file or directory
        main.c: In function 'main':
        main.c:25: error: 'xmlDocPtr' undeclared (first use in this
        function)
        main.c:25: error: (Each undeclared identifier is reported only
        once
        main.c:25: error: for each function it appears in.)
        main.c:25: error: expected ';' before 'doc'
        main.c:26: error: 'doc' undeclared (first use in this function)
        main.c:26: warning: implicit declaration of function
        'xmlParseFile'
        main.c:34: warning: implicit declaration of function
        'xmlFreeDoc'

I was following the steps in the build tutorial exactly. That is, I was
following the instructions in sections 3.2 and 4.2.

> It's possible that something is not refresh correctly, I that you need 
> to reload the project to take everything into account. But, this is a 
> bug and you should report it in bugzilla.

I tried reproducing this issue, but this time it worked fine. After
selecting the 'tutprog' target and linking it to the XML package, I
built the project, and it ran aclocal, automake, etc. itself this time.

I'm pretty sure that I refreshed the project the last time I had this
problem, but I can't seem to get it again. I'll try again later today.

Thanks for the help,
Malcolm






[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]