Undefined Reference to Direct3DCreate9@4

BlitzMax Forums/BlitzMax Programming/Undefined Reference to Direct3DCreate9@4

The C++ code compiles in Visual Studio with the d3d9.lib file linked. I tried linking the equivalent libd3d9.a file (For the MinGW compiler, which BlitzMax uses) by the #pragma comment(lib, "libd3d9.a") without any luck. I believe that command is depreciated as you can change the "libd3d9.a" to practically anything and it wont give an error.