2 Replies Latest reply on Jan 27, 2013 1:28 PM by Hayden Eastman

    How do I add a library to my native extension in Windows Mobile

    Hayden Eastman

      Hello,

      I would like to call functions in an external Windows Mobile library (testlib.lib) from my native extension and so far I am unable to get the build process to recognize my library.  I have placed the library and header file in the same folder with my Windows Mobile Extension the I tried the following to get the library to link in.  First I edited the .vcproj file and added a AdditionalDependencies= "TestLib.lib" to the Name="VCLibrarianTool"  section, but the build process failed with the following error: 11>LINK : fatal error LNK1104: cannot open file 'Extension.lib'.  I then tried adding a #pragma statement #pragma comment(lib, "TestLib") to the extension's cpp file, but that also failed with the following error 11>LINK : fatal error LNK1104: cannot open file 'TestDLL.lib'.  It seems that the current folder is not in the list of folders searched by the compiler but I have no idea where I can place my library for the build process to find it.

       

      Thanks