Did you ever encounter same problem?
If create a simple dll of S60 3rd with carbide c++, it runs fine with its test project on winscw udeb build configuration.
Then try to add estlib.lib to the DLL project and rebuild it, you would find the test project can't run.
It seems the Dll can't be loaded. If using RLibrary::Load to load the lib sometime you would get KErrGeneral(-2) error.
It made me can't using it anymore.
But if build the projects within command line. It would work.
I wonder if anybody can explain this.