Building in Windows #1632
-
I've been unable to "make" this under WIndows (installed docket), gives me "Error response from daemon: the working directory c:/some-path-here is invalid, it needs to be an absolute path." Then I had to tweak the paths and make them absolute and then it gave me compile errors. |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments
-
Please follow the https://mongoose.ws/tutorials/tools/ |
Beta Was this translation helpful? Give feedback.
-
Can it run on Windows XP? |
Beta Was this translation helpful? Give feedback.
-
@abdaziznet |
Beta Was this translation helpful? Give feedback.
-
Using
fails with:
Arg! Then modifying --- a/examples/http-server/Makefile 2023-03-01 15:49:00
+++ b/examples/http-server/Makefile 2024-01-22 12:14:20
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
+ CC ?= gcc # Use MinGW gcc compiler
CFLAGS += -lws2_32 # Link against Winsock library
DELETE = cmd /C del /Q /F /S # Command prompt command to delete files
OUT ?= -o $(PROG) # Build output and a
Only with Lesson I've learned; stay far away of GCC on Windows. |
Beta Was this translation helpful? Give feedback.
-
Well, in my very personal opinion, I would remove 'GCC on' from that phrase. 😉 Now seriously, I would write a script to keep Cygwin from your path. In my case, I use the MinGW icons to start a shell where I do some example development or changes. GCC is fine, and MinGW is great, just keep Cygwin confined to where it is needed (or both). BTW, we use the 64-bit version of MinGW. |
Beta Was this translation helpful? Give feedback.
Please follow the https://mongoose.ws/tutorials/tools/