Sorry, that fails completely for me :(same with msys make).g++ -c -Wall .cpp
g++: .cpp: No such file or directory
g++: no input files
mingw32-make: *** [wurd.o] error 1
Originally Posted by ming32-make
Originally Posted by msys make
edit: spoke too soon- I've had to tweak your makefile to replicate the error you have described:Originally Posted by g++
edit2: MessageBox is in user32.dll so requires linking with user32.lib; not that it removes the linker error...Code:CC = g++ LD = ld LIBS = "C:\Program Files\Microsoft Platform SDK\Lib\gdi32.Lib" "C:\Program Files\Microsoft Platform SDK\Lib\kernel32.lib" LDFLAGS = --subsystem windows -e _WinMain@16 $(LIBS) CXXFLAGS = -c -Wall all: wurd wurd: wurd.o $(LD) wurd.o -o wurd.exe $(LDFLAGS) wurd.o: wurd.cpp $(CC) $(CXXFLAGS) wurd.cpp



LinkBack URL
About LinkBacks


