im building a programm with ./waf build and it complies like 100 .cc programs
on 2 programs i get error usually missing libxml files, ill give you the code, just changed the names of the files.
all the xml files are located in my usr/include/libxml2/libxml
file1.h:
Code
#include <string>
#include <string>
#include <libxml/xmlwriter.h>
#include <libxml/xmlreader.h>
file1.cc:
Code
#include "file2.h"
#include <libxml2/libxml/encoding.h>
#include <libxml2/libxml/xmlwriter.h>
file2.h:
no includes referring to libxml
file2.cc:
Code
#include <libxml/encoding.h>
#include <libxml/xmlreader.h>
#include <libxml/xpath.h>
i used many includes for some tests, but always got different errors:
Code
//#include <libxml2/libxml/xmlreader.h>
//#include <libxml2/libxml/xmlversion.h>
//#include <libxml/xmlexports.h>
//#include <libxml2/libxml/encoding.h>
//#include <libxml2/libxml/xmlwriter.h>
//#include "libxml2/libxml/parser.h"
if i use the originally files, the first error i get is:
In file included from ../src/x/file1.cc:7:0:
../src/x/file1.h:12:30: fatal error: libxml/xmlwriter.h: No such file or directory
compilation terminated.
this error refers to #include <libxml/xmlwriter.h> in file1.h i guess, so where is the problem?
trying to add -I/usr/include/libxml2 to my compiler, it says: no such file or directory
This post was edited by Br0 on Sep 25 2013 01:08am