How to create and use a lib file ?
-
Hello there, I am trying to put my code into a ".lib" file but there is sth going wrong. I use MSVC++6 (I also use MSVC++2005 if you prefer). I create a "Static library project", I place my class files into, the project, I compile (debug and release) and I get the two .lib files. Then I create the 2nd project (let's say a dialog project) and I add the ".h" file and the ."lib" into my project. I place the pragma comment(lib, "MyLib.lib" ) // If I remember it clearly. into the file that uses the library code (or it's header) and then I try to build (debug or release)... but then I get linker errors... One of them is for : _afx(sth_here)Nil // I don't know what this function is ! Any help would be appreciated.
kostas KEL
-
Hello there, I am trying to put my code into a ".lib" file but there is sth going wrong. I use MSVC++6 (I also use MSVC++2005 if you prefer). I create a "Static library project", I place my class files into, the project, I compile (debug and release) and I get the two .lib files. Then I create the 2nd project (let's say a dialog project) and I add the ".h" file and the ."lib" into my project. I place the pragma comment(lib, "MyLib.lib" ) // If I remember it clearly. into the file that uses the library code (or it's header) and then I try to build (debug or release)... but then I get linker errors... One of them is for : _afx(sth_here)Nil // I don't know what this function is ! Any help would be appreciated.
kostas KEL
-
-
You can answer directly to sender
WhiteSky
-
Hello there, I am trying to put my code into a ".lib" file but there is sth going wrong. I use MSVC++6 (I also use MSVC++2005 if you prefer). I create a "Static library project", I place my class files into, the project, I compile (debug and release) and I get the two .lib files. Then I create the 2nd project (let's say a dialog project) and I add the ".h" file and the ."lib" into my project. I place the pragma comment(lib, "MyLib.lib" ) // If I remember it clearly. into the file that uses the library code (or it's header) and then I try to build (debug or release)... but then I get linker errors... One of them is for : _afx(sth_here)Nil // I don't know what this function is ! Any help would be appreciated.
kostas KEL