|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Generate data entry and reporting .NET Web apps in minutes, straight from your database. Read our FREE whitepaper “Build Web 2.0 Applications Without Hand-Coding” Download now! |
|
#1
|
|||
|
|||
|
using libxml2
Is anyone familiar with the libxml2 library?
I want to use it in a c++ program but I believe there are some problems with that. I think the libxml2 library uses words that are reserved in c++, it even uses new as a variable. Any advice at all is greatly appreciated. |
|
#2
|
|||
|
|||
|
Gamgee,
So long as your library is compiled with a C compiler (which it will have to be), you won't have any problems. libxml2 is perfectly content with C, even though the xml movement seems hell bent on using python for everything.
__________________
Clay Dowling Lazarus Notes Articles and commentary on web development http://www.lazarusid.com/notes/ |
|
#3
|
|||
|
|||
|
but...
doesnt libxml2 use "new" as a variable?
though this is reserved in c++. |
|
#4
|
|||
|
|||
|
If it does, it is used internally, so won't affect your C++ program. In the event that it's declared in one of the header files, wrap it in:
Code:
extern "C" {
#include <xml.h>
}
That should keep your C code from irritating your C++ compiler. I think that this wrapping is already done internally by the header file though. |
|
#5
|
|||
|
|||
|
cool, cheers for the help Clay.
|
![]() |
| Viewing: Dev Shed Forums > Programming Languages > C Programming > using libxml2 |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|