I'm using MinGW g++ and have installed and `-mingw32-make`'d the wxWidgets library files. But, when i try to compile a simple program:

```
// test.cpp
#include "wx/wx.h"

int main( int , char** )
{
     return 0;
};

```

The linking fails.

I use this command line

```
g++ test.cpp - o test.exe

```

It appears I need extra linker parameters. What exactly do I need?

Also, I was searching around a little bit, and I found someone saying i should use `-mingw32-make -n` on a sample program in the wxWidgets folder, and use the same parameters for my own file, but that fails as well.

This is what I get as an error message:

`g++ test.cpp -o test.exe -g -mthreads -L.....\lib\gcc_lib -Wl,-- subsystem,windows -mwindows -lwxmsw31ud_core -lwxbase31ud -lwxtiffd -lwxjpegd -lwxpngd -lwxzlibd -lwxregexud -lwxexpatd -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwinspool -lwinmm -lshell32 -lshlwapi -lcomctl32 -lole32 -loleaut32 -luuid -lrpcrt4 -ladvapi32 -lversion -lwsock32 -lwininet
d:/programming/software/mingw/bin/../lib/gcc/mingw32/4.9.3/../../../../mingw32/bin/ld.exe: cannot find -lwxmsw31ud_core
d:/programming/software/mingw/bin/../lib/gcc/mingw32/4.9.3/../../../../mingw32/bin/ld.exe: cannot find -lwxbase31ud
d:/programming/software/mingw/bin/../lib/gcc/mingw32/4.9.3/../../../../mingw32/bin/ld.exe: cannot find -lwxtiffd
d:/programming/software/mingw/bin/../lib/gcc/mingw32/4.9.3/../../../../mingw32/bin/ld.exe: cannot find -lwxjpegd
d:/programming/software/mingw/bin/../lib/gcc/mingw32/4.9.3/../../../../mingw32/bin/ld.exe: cannot find -lwxpngd
d:/programming/software/mingw/bin/../lib/gcc/mingw32/4.9.3/../../../../mingw32/bin/ld.exe: cannot find -lwxzlibd
d:/programming/software/mingw/bin/../lib/gcc/mingw32/4.9.3/../../../../mingw32/bin/ld.exe: cannot find -lwxregexud
d:/programming/software/mingw/bin/../lib/gcc/mingw32/4.9.3/../../../../mingw32/bin/ld.exe: cannot find -lwxexpatd
collect2.exe: error: ld returned 1 exit status`