I have a library (curl) that is compiled in static which gives libcurl.a and I have another library (microxml) which is compiled in static which also gives libmicroxml.a .I have tried to make a link between these 2 library and autoreconf. First ,I try to add these lines in this way in Makefile.am:
> undefined reference to `closelog ' ../src/easycwmpd-http.o: In
> function `http_get_response ': Http.c text + 0x4b7): undefined
> reference to `asprintf ' ../src/easycwmpd-xml.o: In function
> `xml_mxml_find_node_by_env_type ': Xml.c text + 0x540): undefined
> reference to `asprintf ' ../src/easycwmpd-xml.o: In function
> `xml_get_hold_request ': Xml.c text + 0x786): undefined reference
> to `asprintf ' Xml.c text + 0x81e): undefined reference to
> `asprintf ' ../src/easycwmpd-xml.o: In function `xml_handle_message ':
> Xml.c .text + 0x929): undefined reference to `asprintf '
> ../src/easycwmpd-xml.o:xml.c:(.text+0xe26): more undefined references
> to `asprintf 'follow Collect2: ld returned 1 exit status
can you guys, explain to me if i was wrong doing this , or can you give me any guidelines or any help i will appreciate that
Autoconf
× Après avoir cliqué sur "Répondre" vous serez invité à vous connecter pour que votre message soit publié.
× Attention, ce sujet est très ancien. Le déterrer n'est pas forcément approprié. Nous te conseillons de créer un nouveau sujet pour poser ta question.