From: Geoffrey F. <fu...@li...> - 2006-09-13 22:06:18
|
Alan W. Irwin writes: > PLplot also provides the old-fashioned way of doing things; use static > libraries and disable dynamic devices with all device driver code lumped > into the core library. One disadvantage of that approach is your various > apps become huge in size since they all contain duplicated code. More > fundamentally, that old-fashioned approach does not work for wxwidgets.so > since that device is written in C++ (as in the wxwidgets software package), > and the PLplot core code is written in C. Mixing C and C++ code in the same > library should be avoided because it can cause linking problems. That's only for shared libs where there are system differences that make it thorny. For static linkage, you just have to ensure that the final application link step is done with C++. |