Re: [ROOT] Error calling TFile::Write

From: Valeri Fine (Faine) (fine@bnl.gov)
Date: Tue Aug 15 2000 - 23:14:06 MEST


> >    could you try linking your program without libNew.lib. Does the problem
> > go away? Also when using libNew make sure it is the very first
> > lib when linking.
 
> This (removing libNew.lib from the link) does, indeed, solve the problem.
 
> libNew.lib was not the first library; however putting if I put it at the
> front of the list I get the same error.
 
> It's odd though, because I linked the event sample program with libNew (not
> even at the front of the list) and it seems to work fine.

MS linker is a mulitpass one.  This means it can look up the list of the libraries
as many times as the code needs to satisfy all undefined references
The last  means the library  name position in the linker list is not  crucial.


          Valery



This archive was generated by hypermail 2b29 : Tue Jan 02 2001 - 11:50:31 MET