curl / trurl

trurl is a command line tool for URL parsing and manipulation.
https://curl.se/trurl/
Other
3.1k stars 99 forks source link

trurl: support compiling with old versions of Visual Studio #268

Closed jay closed 7 months ago

jay commented 7 months ago

This supports compiling trurl with old versions of Visual Studio by using cl at the command line only. The winbuild solution still requires recent versions of Visual Studio.

Closes #xxxx


These are some changes to build trurl with an old Visual Studio compiler which uses C89. I tested it with Visual Studio 2010.

libcurl was built using configuration LIB Debug - DLL Windows SSPI - DLL WinIDN in the pregenerated solution ..\curl\projects\Windows\VC10\curl-all.sln, and then trurl was built against it:

cl /MDd /W4 /wd4127 /D_CRT_SECURE_NO_WARNINGS /D_UNICODE /DUNICODE /DCURL_STATICLIB /I..\curl\include trurl.c /link /LIBPATH:"..\curl\build\Win32\VC10\LIB Debug - DLL Windows SSPI - DLL WinIDN" libcurld.lib crypt32.lib normaliz.lib wldap32.lib ws2_32.lib

To support other c89 compilers would probably require a stdint replacement.