Re: [GD-General] Sharing DSP between static lib / DLL
Brought to you by:
vexxed72
From: <cas...@ya...> - 2003-01-13 19:41:32
|
This is what I sometimes do: - Create the .lib in one project. - Create an empty dll project, that includes the library and defines some exports. However, I don't know if that would be possible if you are not using a .def file. The cygwin tools and mingw also, come with a handy tool (dllwrap) that automatically creates complex .def files for a project (parsing the declspec commands), maybe you could use it as a custom build step. If you are interested in this approach I could elaborate more. Ignacio Castaño cas...@ya... Pierre Terdiman wrote > Hi, > > I would like to have two versions of the same library : > - a static version (simple .lib) > - a dynamic version (a .dll) > > This is easy enough by creating two projects (.dsp) and #defining > appropriate tokens. > > But the original DLL project has a particular source-tree (in VC++), that > seems to be saved in its DSP file. Is there a way to somehow copy that > source tree to the other DSP (from the lib version), without recreating > everything in VC++ ? More important, how to easily keep both in sync ? (the > same problem arises with project settings, if I change them in one version > (say using RTTI or not), I'd like the other version to use the same settings > automatically...) > > I'm afraid it's not possible, but it's worth asking. > > Pierre > > > > ------------------------------------------------------- > This SF.NET email is sponsored by: FREE SSL Guide from Thawte > are you planning your Web Server Security? Click here to get a FREE > Thawte SSL guide and find the answers to all your SSL security issues. > http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0026en > _______________________________________________ > Gamedevlists-general mailing list > Gam...@li... > https://lists.sourceforge.net/lists/listinfo/gamedevlists-general > Archives: > http://sourceforge.net/mailarchive/forum.php?forum_id=557 ___________________________________________________ Yahoo! Móviles Personaliza tu móvil con tu logo y melodía favorito en http://moviles.yahoo.es |