how to use a dynamical linked library in C++ program in Linux
-
I have a dynamically linked library, providing some functions needed in my project. I have successfully imported it into my VC ++ 6.0 project. Now, i am translating the project into pure C++ (such as avoiding using MFC classess) in Linux box. Does anyone know if it makes sense to try to use the library in Linux. Thanks
-
I have a dynamically linked library, providing some functions needed in my project. I have successfully imported it into my VC ++ 6.0 project. Now, i am translating the project into pure C++ (such as avoiding using MFC classess) in Linux box. Does anyone know if it makes sense to try to use the library in Linux. Thanks
The equivalent in *nix is a .so file. That's all I know about them. ;)
--Mike-- Visual C++ MVP :cool: LINKS~! Ericahist | PimpFish | CP SearchBar v3.0 | C++ Forum FAQ Dunder-Mifflin, this is Pam.
-
I have a dynamically linked library, providing some functions needed in my project. I have successfully imported it into my VC ++ 6.0 project. Now, i am translating the project into pure C++ (such as avoiding using MFC classess) in Linux box. Does anyone know if it makes sense to try to use the library in Linux. Thanks
cy163@hotmail.com wrote:
Does anyone know if it makes sense to try to use the library in Linux.
Certainly - there are many cross-platform libraries, just look at SourceForge.
-
I have a dynamically linked library, providing some functions needed in my project. I have successfully imported it into my VC ++ 6.0 project. Now, i am translating the project into pure C++ (such as avoiding using MFC classess) in Linux box. Does anyone know if it makes sense to try to use the library in Linux. Thanks
Write a Makefile to create a shared object (lib*.so) and another Makefile to dynamically link your application with it. On runtime your application will use the shared object. http://yolinux.com/TUTORIALS/LibraryArchives-StaticAndDynamic.html