Reputation: 169
I have to make a project to run successfully on a Linux machine. Right now my project works very well on windows machine. On Windows machine it is compiling and working fine. My project is using one ".lib" and one ".dll" file to do the tasks successfully on Windows. Can i use the same .lib file and .dll file on linux machine to build the project successfully? I am compiling the project with G++ and using GNU Makefile to do the task.
What should i do in the case that i can not use the .LIB and .DLL file on Linux machine.
Upvotes: 3
Views: 4305
Reputation: 799024
The best thing would be to get the DLL compiled on Linux as a .so and use that instead. Linux does not need the equivalent of a .lib to access shared objects.
Upvotes: 8
Reputation: 7178
I suggest you look at the Wine project, which allows you to port Windows programs to Linux (and other Unixes) generally without code modification
The Wine project has a toolkit that allows you to take your existing Windows source and compile it to work on Linux, linking against winelib
Upvotes: 3