Re: [xml] LibXML++ in CMakeLists.txt



Javier V schrieb am 03.08.2012 um 00:52 (+0200):

home/jabuntu/Desktop/testxml/main.cpp:26:31: fatal error:
libxml++/libxml++.h: No such file or directory
compilation terminated.

You put the libxml++ header files in a non-standard directory
and didn't tell the compiler about it. Try something like:

  g++ -I/home/jabuntu/libxml++ â

Works with:  ~jabuntu/libxml++/libxml++/libxml++.h

You'll probably also need -L for linking.

Read this guide from start to end, you won't regret it:

An Introduction to GCC - Brian Gough
http://www.network-theory.co.uk/docs/gccintro/index.html

Your specific page: 3.1 Setting search paths
http://www.network-theory.co.uk/docs/gccintro/gccintro_21.html

For how to use CMake, maybe ask on a CMake forum.
-- 
Michael Ludwig



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]