Message: Tip for building with other libraries on Windows/Cygwin/VC++ Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

None Tip for building with other libraries on Windows/Cygwin/VC++ 

Forum: Installation and Configuration
Date: 03 Jan, 2010
From: Tom Roberts <Tom Roberts>

One thing that cost me several days: the Geant4 build on Window/Cygwin/VC++ uses the "multithread-shared" library option /MD in VC++. This means you must build ALL libraries in that same mode. Many of them default to this, but not all do. Look at the documentation for your other library to figure out how to do this. For instance, in Coin one adds "--with-msvcrt=md" to its configure command-line (Coin is an open-source implementation of the Open Inventor viewer, ). In the absence of information, you could try setting CPPFLAGS=/MD.

There are several symptoms of library-mode problems. One is a bunch of duplicate symbols related to basic_string and other STL routines. Another symptom is a bunch of missing externals of the form __impl__SomeFunction. Another symptom is a warning about /NODEFAULTLIB:library related to libcmt.lib (but the program runs OK).

 Add Message Add Message
to: "Tip for building with other libraries on Windows/Cygwin/VC++"

 Subscribe Subscribe

This site runs SLAC HyperNews version 1.11-slac-98, derived from the original HyperNews

[ Geant 4 Home | Geant 4 HyperNews | Search | Request New Forum | Feedback ]