Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
wants to merge 1 commit into from

Conversation

jay
Copy link
Member

@jay jay commented Jan 21, 2024

  • Define bool type and remove mixed declarations for old versions of Visual Studio.

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.

- Define bool type and remove mixed declarations for old versions of
  Visual Studio.

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
@jay jay closed this in 1518a4b Jan 24, 2024
@jay jay deleted the old_vs_build branch January 24, 2024 07:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants