Export symbols for dll with clang/mingw on win

Hi guys, just trying to do a simple dll build using clang. The same code compiles using mingw gcc with a simple invocation like: g++ -shared -o test.dll test.cpp

Here are my arguments and the verbose output. I'm getting some undefined symbol errors.