how do i compile a wxWidget App ?

I've finished building wxWidget using gcc, but now idk what to do next..

I tried following this one :
http://stackoverflow.com/questions/15713244/compiling-a-wxwidgets-application-with-mingw-from-prompt-under-windows-xp

here's what i typed : (on wxWidgets/samples/minimal directory)
touch makefile
make -f makefile.gcc -n > makefile
make

But make is giving me an error :
makefile:1: *** missing separator.  Stop.


here's what the actual makefile looks : (invoked using: sublime_text makefile)
if not exist gcc_mswud mkdir gcc_mswud
windres --use-temp-file -i../../samples/sample.rc -ogcc_mswud\minimal_sample_rc.o    --define __WXMSW__       --define _UNICODE  --include-dir .\..\..\lib\gcc_lib\mswud --include-dir ./../../include  --include-dir .  --include-dir ./../../samples --define NOPCH
g++ -c -o gcc_mswud\minimal_minimal.o -g -O0 -mthreads  -DHAVE_W32API_H -D__WXMSW__       -D_UNICODE  -I.\..\..\lib\gcc_lib\mswud -I.\..\..\include  -W -Wall -I.  -I.\..\..\samples -DNOPCH   -Wno-ctor-dtor-privacy   -MTgcc_mswud\minimal_minimal.o -MFgcc_mswud\minimal_minimal.o.d -MD -MP minimal.cpp
g++ -o gcc_mswud\minimal.exe gcc_mswud\minimal_sample_rc.o gcc_mswud\minimal_minimal.o  -g -mthreads -L.\..\..\lib\gcc_lib -Wl,--subsystem,windows -mwindows    -lwxmsw30ud_core  -lwxbase30ud    -lwxtiffd -lwxjpegd -lwxpngd   -lwxzlibd -lwxregexud -lwxexpatd    -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwinspool -lwinmm -lshell32 -lcomctl32 -lole32 -loleaut32 -luuid -lrpcrt4 -ladvapi32 -lwsock32 -lwininet
Last edited on
bump
So why do you add the
> makefile
?
to redirect ? (there is no makefile in the directory, just makefile.gcc
Topic archived. No new replies allowed.