Hey guys I was hoping you could help me out here, I am a bit new to C++ and trying to find a way how I could create a multi-platform library or toolkit for both windows and linux?
I have base interface classes and 2 derived classes for each, one for linux and one for windows.
I have heard about putting pre-processor macros into the base-interface header which can then include the platform specific header.
The problem I am having is understanding how to put this all together into a single shared/dynamic library?
I mean do I compile the linux part and windows part seperately under each platform as dynamic libraries? which then generates a .dll for windows and a .so for linux... so I get 2 libraries?
Question
Da1
Hey guys I was hoping you could help me out here, I am a bit new to C++ and trying to find a way how I could create a multi-platform library or toolkit for both windows and linux?
I have base interface classes and 2 derived classes for each, one for linux and one for windows.
I have heard about putting pre-processor macros into the base-interface header which can then include the platform specific header.
The problem I am having is understanding how to put this all together into a single shared/dynamic library?
I mean do I compile the linux part and windows part seperately under each platform as dynamic libraries? which then generates a .dll for windows and a .so for linux... so I get 2 libraries?
A bit puzzled, any help is greatly appreciated
Link to comment
Share on other sites
5 answers to this question
Recommended Posts