Add a Lib library reference in VS2010:
1 Menu Items---> Properties---> Configure Properties--linker----> Input---Additional dependencies, add library names such as: My_api.lib;
or in the CPP source file with code #pragma comment (lib, "My_api.lib") instead.
at this point, the compiler will prompt the error: fatal error LNK1104: Unable to open the file "My_api.lib", because the compiler does not know where to find our library, the following to solve
2 Then add the library file path to the project and add the additional library path:
the project---> Properties---> Configuration Properties---> The arrow to the right of the regular-to-add library directory point, which adds the path to our library. F:\my_program\meiyong\PPPP_Decode_ETIM;
or.. /.. /pppp_decode_etim, and the experimental test is based on the project file. Vcxproj is in the current directory, the current directory in this way to set the better.
that's good.
Adding Lib library references in VS2010