Your DLL needs to link with the Perl58.lib. Check if Perl58.lib is included in the list of libraries. Setting the include and lib path is not enough, that will only let you compile to an object file. But to produce the final DLL, you have to link the object file & libraries as well. To link properly, you have to tell the linker to link with Perl58.lib under C:\Perl\lib\CORE.