Click here to Skip to main content
15,891,657 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hi,

I tried to compile Libxslt with VS2019. I am facing the below issue. Please help:

C:\IC_GitCode\XMLPArser\rt_libxslt\src\libxslt-1.1.34\libxslt/xsltconfig.h(120): error C2018: unknown character '0x40'
Generating Code...
NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Tools\MSVC\14.26.28801\bin\HostX86\x64\cl.exe"' : return code '0x2'
Stop.

Libxml I have compiled "cscript configure.js compiler=msvc prefix=c:\opt include=c:\opt\include lib=c:\opt\lib debug=yes iconv=no"
This was successful and I placed the include folder in libxslt where I was trying to compile

Please help. I don't know where I am going wrong. This is the first time I am doing such task.

Thanks,
Sara


What I have tried:

include=c:\opt\include lib=c:\opt\lib debug=yes iconv=no"
This was successful and I placed the include folder in libxslt where I was trying to compile
Posted
Updated 22-Jun-20 10:30am
Comments
Richard MacCutchan 22-Jun-20 12:28pm    
The error message gives you the file name, the line number, and the reason. Check the source to see what it is complaining about.

It's telling you exactly where the problem is:
C:\IC_GitCode\XMLPArser\rt_libxslt\src\libxslt-1.1.34\libxslt/xsltconfig.h(120): error C2018: unknown character '0x40'

It's on line 120 of the xsltconfig.h file. If you've got a problem with compiling some projects source code, contact the people that wrote the code.
 
Share this answer
 
It appears that the script isn't handling @WITH_PROFILER@. At a quick glance, you can replace line 120 with
C++
#if 1
Edit: This has been fixed on GitLab: win32 · master · GNOME / libxslt · GitLab[^] (A new version of Makefile.msvc is also there.)
 
Share this answer
 
v3

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900