Skip to content

Visual Studio 2022 setup #2909

Discussion options

You must be logged in to vote

"a lot of errors" is not very precise nor helpful.

ifeq ($(OS),Windows_NT) # Windows settings. Assume MinGW compiler. To use VC: make CC=cl CFLAGS=/MD OUT=/Feprog.exe
PROG ?= example.exe # Use .exe suffix for the binary
CC = gcc # Use MinGW gcc compiler
CFLAGS += -lws2_32 -lbcrypt # Link against Winsock library
DELETE = cmd /C del /Q /F /S # Command prompt command to delete files
OUT ?= -o $(PROG) # Build output
endif

https://mongoose.ws/documentation/tutorials/tools/
VCFLAGS = /nologo /W3 /O2 /MD /I. $(DEFS) $(TFLAGS)

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by scaprile
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants