Tony, I am using that same version of libxml2 with Visual Studio 2013 update 3. We build on Windows Server 2008 R2, or Windows 7, but I doubt that the operating system matters much.
Your command line below would not be enough to build the file. You need to provide the include path, and provide the link parameters to the libxml2 distribution. I built your referenced example using a simple Visual Studio win32 project. -Tom -----Original Message----- From: xml [mailto:xml-boun...@gnome.org] On Behalf Of Tony Girgenti Sent: Tuesday, September 16, 2014 9:54 AM To: eric.zurc...@csiro.au; xml@gnome.org Subject: Re: [xml] Using LIBXML2 in Windows environment Eric, Thanks for your help. I am using a Windows 8.1, 64bit computer with libxml2 from this file: libxml2-2.7.8.win32.zip in a command prompt. I would like to compile this program: http://xmlsoft.org/examples/reader1.c I have used "cl reader1.c" at the command prompt and I get this output: ---------------------------------------------------------------------------- ------------------------------------- C:\GNU COBOL 2.0\Projects\libxml2>cl reader1.c Microsoft (R) C/C++ Optimizing Compiler Version 18.00.30723 for x86 Copyright (C) Microsoft Corporation. All rights reserved. reader1.c reader1.c(2) : error C2143: syntax error : missing '{' before ':' reader1.c(2) : error C2059: syntax error : ':' reader1.c(12) : warning C4138: '*/' found outside of comment C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\INCLUDE\crtdefs.h(642) : error C2081: 'uintptr_t' : name in formal parameter list illega reader1.c(15) : fatal error C1083: Cannot open include file: 'libxml/xmlreader.h': No such file or directory C:\GNU COBOL 2.0\Projects\libxml2> ---------------------------------------------------------------------------- -------------------------------------- Any help that you can provide to compile this program would be gratefully appreciated. Thanks, Tony -----Original Message----- From: eric.zurc...@csiro.au [mailto:eric.zurc...@csiro.au] Sent: Monday, September 15, 2014 8:32 PM To: t...@lakesideos.com; xml@gnome.org Subject: RE: [xml] Using LIBXML2 in Windows environment Tony, Libxml2 works quite well in Windows, and can readily be compiled with Visual Studio 2013. Can you be more specific about where you are running into problems? If you want assistance, it would also be useful to know whether you are attempting to build a 32-bit or 64-bit version. Eric Zurcher Software developer | GrazPlan Project CSIRO Agriculture E eric.zurc...@csiro.au T +61 2 6246 5143 M 0415 631 421 GPO Box 1600, Canberra ACT 2601 www.csiro.au | www.grazplan.csiro.au | -----Original Message----- | From: Tony Girgenti [mailto:t...@lakesideos.com] | Sent: Monday, 15 September 2014 10:32 PM | To: Zurcher, Eric (Agriculture, Black Mountain); xml@gnome.org | Subject: RE: [xml] Using LIBXML2 in Windows environment | | Hello Eric. | | Thanks for your help. | | I am not using MinGW or Cygwin. I am using Microsoft Visual Studio | 2013. | | From what you pointed out in the readme.txt file, I will not be using | this version of LIBXML2. | | I did try LIBXML2 from "libxml2-2.7.8.win32.zip" and have other | unresolvable issues. | | I guess this package does not work in windows. | | Thanks, | Tony | _______________________________________________ xml mailing list, project page http://xmlsoft.org/ xml@gnome.org https://mail.gnome.org/mailman/listinfo/xml _______________________________________________ xml mailing list, project page http://xmlsoft.org/ xml@gnome.org https://mail.gnome.org/mailman/listinfo/xml