Commit fe7c245a authored by Rogerz Zhang's avatar Rogerz Zhang

Fix building error under mingw

parent f24bebac
...@@ -124,8 +124,8 @@ mingw: ...@@ -124,8 +124,8 @@ mingw:
windres build\res.rc build\res.o windres build\res.rc build\res.o
$(CC) $(MINGWOPT) mongoose.c -lws2_32 \ $(CC) $(MINGWOPT) mongoose.c -lws2_32 \
-shared -Wl,--out-implib=$(PROG).lib -o $(PROG).dll -shared -Wl,--out-implib=$(PROG).lib -o $(PROG).dll
$(CC) $(MINGWOPT) -build mongoose.c main.c build\res.o \ $(CC) $(MINGWOPT) mongoose.c main.c build\res.o \
-lws2_32 -ladvapi32 -o $(PROG).exe -lws2_32 -ladvapi32 -lcomdlg32 -o $(PROG).exe
# Build for Windows under Cygwin # Build for Windows under Cygwin
#CYGWINDBG= -DDEBUG -O0 -ggdb #CYGWINDBG= -DDEBUG -O0 -ggdb
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment