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

MSVC 2022 cannot build this project #359

Open
Pomax opened this issue Jan 19, 2024 · 4 comments
Open

MSVC 2022 cannot build this project #359

Pomax opened this issue Jan 19, 2024 · 4 comments

Comments

@Pomax
Copy link

Pomax commented Jan 19, 2024

Using MSVC 2022 Community Edition:

PS  D:\temp\cmark-gfm> nmake

Microsoft (R) Program Maintenance Utility Version 14.38.33134.0
Copyright (C) Microsoft Corporation.  All rights reserved.

makefile(4) : fatal error U1001: syntax error : illegal character '?' in macro
Stop.
@mklabs
Copy link

mklabs commented Dec 30, 2024

Hi @Pomax I got the exact same error when running the VS command line using powershell.

If you did the same, try using cmd.exe for the shell, I was able to build via cmd:

image

choosing the command prompt for Visual Studio instead of powershell.

image

@Pomax
Copy link
Author

Pomax commented Dec 31, 2024

Ah! Yes, of course, powershell doesn't support normal shell things like &&.

Hopefully the readme can be edited to point out that Windows users need to use cmd

@mklabs
Copy link

mklabs commented Dec 31, 2024

I ended up using the x64 Native Tools Command Prompt for VS 2022 from the Windows Start Menu, instead of the one from Visual Studio Tools menu. This should come with a visual studio install.

image

I needed to compile the static lib for x64 architecture and couldn't get nmake to do so with the developer command prompt out of the tools menu in VS.


In summary:

  1. From windows start menu, search for and open x64 Native Tools Command Prompt for VS 2022. This should start a windows terminal with cmd shell and environment set to x64.
  2. cd to the root of cmark-gfm repo
  3. Run nmake
  4. The binaries and static lib can be found in build/src and build/extensions

Hope that helps :)

@Pomax
Copy link
Author

Pomax commented Dec 31, 2024

awesome sleuthing, thanks! Hopefully others will find this information too.

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

No branches or pull requests

2 participants