Compilation problem

2011-12-08
2013-05-02
  • On Fedora 16, I get a compilation error when I try to build SWObjects:

    $ make bin/SWtransformer
    g++ -DYYTEXT_POINTER=1 -fPIC -g -O0 -W -Wall -Wextra -Wnon-virtual-dtor -ansi -std=c++98 -I/home/reinout/.workspace/swobjects -I/home/reinout/.workspace/swobjects/lib   -I/home/reinout/.workspace/swobjects/MapSetParser -I/home/reinout/.workspace/swobjects/SPARQLfedParser -I/home/reinout/.workspace/swobjects/SQLParser -I/home/reinout/.workspace/swobjects/TrigSParser -I/home/reinout/.workspace/swobjects/TurtleSParser -I/home/reinout/.workspace/swobjects/lib -pipe    -c -o bin/SWtransformer.o bin/SWtransformer.cpp
    In file included from /home/reinout/.workspace/swobjects/lib/SWObjects.hpp:24:0,
                     from lib/SPARQLfedParser/SPARQLfedParser.ypp:60,
                     from bin/SWtransformer.cpp:11:
    /home/reinout/.workspace/swobjects/config.h:1:190: fout: stray ‘\’ in program
    /home/reinout/.workspace/swobjects/config.h:1:190: fout: stray ‘#’ in program
    /home/reinout/.workspace/swobjects/config.h:1:190: fout: stray ‘\’ in program
    /home/reinout/.workspace/swobjects/config.h:1:190: fout: stray ‘\’ in program
    /home/reinout/.workspace/swobjects/config.h:1:190: fout: stray ‘#’ in program
    /home/reinout/.workspace/swobjects/config.h:1:190: fout: stray ‘\’ in program
    /home/reinout/.workspace/swobjects/config.h:1:190: fout: stray ‘#’ in program
    /home/reinout/.workspace/swobjects/config.h:1:190: fout: stray ‘\’ in program
    /home/reinout/.workspace/swobjects/config.h:1:190: fout: stray ‘#’ in program
    /home/reinout/.workspace/swobjects/config.h:1:190: fout: stray ‘\’ in program
    /home/reinout/.workspace/swobjects/config.h:1:190: fout: stray ‘\’ in program
    /home/reinout/.workspace/swobjects/config.h:1:190: fout: stray ‘#’ in program
    /home/reinout/.workspace/swobjects/config.h:1:190: fout: stray ‘\’ in program
    /home/reinout/.workspace/swobjects/config.h:1:190: fout: stray ‘\’ in program
    /home/reinout/.workspace/swobjects/config.h:1:190: fout: stray ‘#’ in program
    /home/reinout/.workspace/swobjects/config.h:1:190: fout: stray ‘\’ in program
    /home/reinout/.workspace/swobjects/config.h:1:190: fout: stray ‘\’ in program
    /home/reinout/.workspace/swobjects/config.h:1:190: fout: stray ‘#’ in program
    /home/reinout/.workspace/swobjects/config.h:1:190: fout: stray ‘\’ in program
    /home/reinout/.workspace/swobjects/config.h:1:190: fout: stray ‘#’ in program
    /home/reinout/.workspace/swobjects/config.h:1:190: fout: stray ‘\’ in program
    /home/reinout/.workspace/swobjects/config.h:1:190: fout: stray ‘\’ in program
    /home/reinout/.workspace/swobjects/config.h:1:190: fout: stray ‘#’ in program
    /home/reinout/.workspace/swobjects/config.h:1:190: fout: stray ‘\’ in program
    /home/reinout/.workspace/swobjects/config.h:1:190: fout: stray ‘\’ in program
    /home/reinout/.workspace/swobjects/config.h:1:190: fout: stray ‘#’ in program
    /home/reinout/.workspace/swobjects/config.h:1:190: fout: stray ‘\’ in program
    /home/reinout/.workspace/swobjects/config.h:1:190: fout: stray ‘#’ in program
    /home/reinout/.workspace/swobjects/config.h:1:190: fout: stray ‘\’ in program
    /home/reinout/.workspace/swobjects/config.h:1:190: fout: stray ‘#’ in program
    /home/reinout/.workspace/swobjects/config.h:1:190: fout: stray ‘\’ in program
    /home/reinout/.workspace/swobjects/config.h:1:190: fout: stray ‘#’ in program
    /home/reinout/.workspace/swobjects/config.h:1:190: fout: stray ‘\’ in program
    /home/reinout/.workspace/swobjects/config.h:1:190: fout: stray ‘#’ in program
    /home/reinout/.workspace/swobjects/config.h:1:190: fout: stray ‘\’ in program
    /home/reinout/.workspace/swobjects/config.h:1:190: fout: stray ‘#’ in program
    /home/reinout/.workspace/swobjects/config.h:1:190: fout: stray ‘\’ in program
    /home/reinout/.workspace/swobjects/config.h:1:190: fout: stray ‘\’ in program
    In file included from bin/SWtransformer.cpp:19:0:
    bin/../interface/SAXparser_libxml.hpp:10:27: fatale fout: libxml/parser.h: No such file or directory
    compilation terminated.
    make: ***  Fout 1

    I've installed both libxml-devel and libxml2-devel. What's going on?