Bonjour,
Je cherche à utiliser la bibliothèque libxml2 sous ubuntu 20.04.
Après avoir installé le paquet libxml2:
Quand je compile:
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3 xml2-config --version 2.9.14
Et quand je regarde dans le répertoire où se trouve libxml2:
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7 pierrot@pierrot7:~/Documents/progc/xml$ cc premier.c `xml2-config --cflags --libs` -o test In file included from premier.c:9: /usr/local/include/libxml2/parser.h:15:10: fatal error: libxml/xmlversion.h: Aucun fichier ou dossier de ce type 15 | #include <libxml/xmlversion.h> | ^~~~~~~~~~~~~~~~~~~~~ compilation terminated.
Où est l'erreur?
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15 cd /usr/local/include/libxml2/ pierrot@pierrot7:/usr/local/include/libxml2$ ls c14n.h list.h tree.h xmlregexp.h catalog.h nanoftp.h uri.h xmlsave.h chvalid.h nanohttp.h valid.h xmlschemas.h debugXML.h parser.h xinclude.h xmlschemastypes.h dict.h parserInternals.h xlink.h xmlstring.h DOCBparser.h pattern.h xmlautomata.h xmlunicode.h encoding.h relaxng.h xmlerror.h xmlversion.h entities.h SAX2.h xmlexports.h xmlwriter.h globals.h SAX.h xmlIO.h xpath.h hash.h schemasInternals.h xmlmemory.h xpathInternals.h HTMLparser.h schematron.h xmlmodule.h xpointer.h HTMLtree.h threads.h xmlreader.h
Partager