Undefined Reference to Direct3DCreate9@4

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

I worked out why I was getting the iGraphics3D error, It seems I have to use extern "C" { } in my code around the functions. Im still getting the same Direct3DDevice9 error though'