Hey guys I needed some help on writing cross-platform code but not an application but a library.
I am creating a library both static and dynamic with most of the development done in Linux, I have got the static and shared library generated in Linux but now wanted to generate a windows version of a static and dynamic library in the form of .lib and .dll using the same source code.
Is this possible? I'm a bit worried because I noticed generating windows .dll files required using _dllspec or something similiar in your source code.
If not then can anyone advice me the best and quickest solution to getting my code compiled on windows. I don't need to do the compiling under linux I am happy to do it directly under windows. Also I am using 2 external libraries which are boost and xerces xml which I have installed on both my windows and linux system so hopefully they shouldn't be a problem.
What I really want is to have a single source code copy that can be compiled under both linux and windows to generate libraries specific to each platform. I don't really care if I have to edit my code in favour of windows or linux as long as I can have a single source code copy.
Any help on this is greatly appreciated, thank you.