Hello, with my latest commit I changed the name of the preprocessor definitions that indicate whether a CS built with shared or static libraries is used. Previously, a single definition CS_BUILD_SHARED_LIBS was used; if it was present, CS had to be built with shared libraries; if absent, CS had to be built with static libraries. Default was absence. In it's place are now two definitions CS_USE_SHARED_LIBS and CS_USE_STATIC_LIBS. Whichever is set controls with what kind of libraries CS was built. The default, if neither is present, are now _shared_ libs. The name was changed because it's cleared from a user perspective (since you "use" a CS built with some kind of libs). The default was changed because the standard behaviour is to build CS with shared libs; however, especially new MSVC users seem to forget to set the CS_BUILD_SHARED_LIBS definition, so the new default puts everything closer to "just working" out of the box. This change mainly affects Windows users anyway, as on other platforms the definitions don't cause much of a behaviour change. Only Windows needs certain class/variable/function attributes during compilation if DLLs are to be used.
So how does this affect you? Well, if you wish to be able to link against a statically built CS you should define CS_USE_STATIC_LIBS in that case, or CS_USE_SHARED_LIBS for shared libs. For MSVC this means changing the msvcgen config - see the change to control.tlib. For MinGW this means just re-running configure (as the right CS_USE_ definition is recorded in csconfig.h). -f.r.
signature.asc
Description: OpenPGP digital signature
------------------------------------------------------------------------------ Download Intel® Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev
_______________________________________________ Crystal-main mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/crystal-main Unsubscribe: mailto:[email protected]?subject=unsubscribe
