Whenever trying to use SafeArrayLock/Unlock I keep getting the message "undefined reference to 'SafeArrayLock@4'.
I'm using Code::Block and just copy/pasting the default microsoft example for safearrays: https://support.microsoft.com/en-us/kb/207931
If i remove the safearraylock/unlock function lines then my dll compiles just fine. Put them back in and it tosses the undefined reference error.