---------- Forwarded message ----------
From: Soham Das <sohamdas@gmail.com>
Date: 18 February 2011 17:24
Subject: Re: Traversing a Map
To: Jan Engelhardt <jengelh@medozas.de>


758 struct HXmap_trav *trav = HXmap_travinit(AssetMap);
        struct HXmap_node *nodeptr;

        while ((nodeptr = HXmap_traverse(trav)) != NULL)

         printf("KEY %s DATA %p\n", nodeptr->skey,nodeptr->data);

Jan, when I compile this code, gcc returns the following messages: (Please bear, I hope I am not annoying you) The number 758 shown is the line number, it has nothing to do with the code

V2.c:758: error: too few arguments to function ‘HXmap_travinit’
V2.c:760: warning: assignment discards qualifiers from pointer target type



On 18 February 2011 17:03, Soham Das <sohamdas@gmail.com> wrote:
Yes, thank you so much.


On 18 February 2011 15:30, Jan Engelhardt <jengelh@medozas.de> wrote:
On Friday 2011-02-18 10:57, Soham Das wrote:

>Jan, If I am already using libHX to compile my source into an object file, how do I use gdb?
>
>My sequence is like this:
>gcc -c V2.c
>gcc -o V2 -lHX V2.o

gcc $(pkg-config libHX --cflags) -O0 -ggdb3 -c V2.c
gcc -o V2 V2.o $(pkg-config libHX --libs)
gdb V2

Does that answer your question?