Linker expects import library with __imp_ prefix. Solution: Use dlltool --add-underscore or adjust your __declspec(dllimport) usage.