To Phil and Arjen:

Thanks to both of you for the useful information below which should
help me to sort out the C++ linking issue for the traditional build.

Alan


On 2015-06-01 10:59+0100 Phil Rosenberg wrote:

> I have the same empty variable for my visual studio 64 bit plplot build.
>
> Looking at https://msdn.microsoft.com/en-us/library/abx4dbyh.aspx
>
> " If you include one of the C++ Standard Library Header Files in your
> code, a Standard C++ Library will be linked in automatically by Visual
> C++ at compile time."
>
> So as Arjen suggested. Visual Studio is clever enough to detect
> whether or not to link in the C++ runtime library.
>
> Note however, if you have not selected the static runtime option in
> cmake then to deploy your plplot application you must also install the
> (freely available) version of the c/c++ runtime for the visual studio
> version you compiled on. Not that this makes any difference for
> building and running on the same machine.
>
> On 1 June 2015 at 08:09, Arjen Markus <arjen.mar...@deltares.nl> wrote:
>> Hi Alan,
>>
>>
>>
>>> -----Original Message-----
>>> From: Alan W. Irwin [mailto:ir...@beluga.phys.uvic.ca]
>>> Meanwhile, would both of you guys please let me know the exact results for
>>> CMAKE_CXX_IMPLICIT_LINK_LIBRARIES and
>>> CMAKE_CXX_IMPLICIT_LINK_DIRECTORIES from
>>> CMakeFiles/<VERSION>/CMakeCXXCompiler.cmake in your build trees for both
>>> the Cygwin and MSVC platforms?
>>>
>> For the Cygwin 64bits build I see the following (CMake 3.1.2):
>>
>> set(CMAKE_CXX_IMPLICIT_LINK_LIBRARIES
>> "stdc++;cygwin;advapi32;shell32;user32;kernel32")
>>
>> set(CMAKE_CXX_IMPLICIT_LINK_DIRECTORIES
>> "/usr/lib/gcc/x86_64-pc-cygwin/4.9.2;/usr/x86_64-pc-cygwin/lib;/usr/lib;/lib")
>>
>> set(CMAKE_CXX_IMPLICIT_LINK_FRAMEWORK_DIRECTORIES "")
>>
>>
>>
>> For MinGW/MSYS I get this (CMake 3.2.1, no typo):
>>
>> set(CMAKE_CXX_IMPLICIT_LINK_LIBRARIES
>> "stdc++;mingw32;moldname;mingwex;msvcrt;advapi32;shell32;user32;kernel32;mingw32;moldname;mingwex;msvcrt")
>>
>> set(CMAKE_CXX_IMPLICIT_LINK_DIRECTORIES
>> "d:/mingwnew/lib/gcc/mingw32/4.8.1;d:/mingwnew/lib/gcc;d:/mingwnew/mingw32/lib;d:/mingwnew/lib")
>>
>>
>>
>> And for MSVC (32 bits, CMake 2.8.12.2):
>>
>> set(CMAKE_CXX_IMPLICIT_LINK_LIBRARIES "")
>>
>> set(CMAKE_CXX_IMPLICIT_LINK_DIRECTORIES "")
>>
>> I have no idea why these are empty – maybe the linker itself takes care of
>> all of the required libraries?

__________________________
Alan W. Irwin

Astronomical research affiliation with Department of Physics and Astronomy,
University of Victoria (astrowww.phys.uvic.ca).

Programming affiliations with the FreeEOS equation-of-state
implementation for stellar interiors (freeeos.sf.net); the Time
Ephemerides project (timeephem.sf.net); PLplot scientific plotting
software package (plplot.sf.net); the libLASi project
(unifont.org/lasi); the Loads of Linux Links project (loll.sf.net);
and the Linux Brochure Project (lbproject.sf.net).
__________________________

Linux-powered Science
__________________________

------------------------------------------------------------------------------
_______________________________________________
Plplot-devel mailing list
Plplot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/plplot-devel

Reply via email to