Link Problems with VC++5 ?

From: Ralf Reinhardt (reinh@wpos3.physik.uni-wuppertal.de)
Date: Thu Feb 18 1999 - 17:49:33 MET


Hello!
After getting a couple of very mysterious errors while compiling, I
decided to
install a fresh root on my system (NT4.0 SP4 VC++5.0 SP2 German,Root
2.21/03)
But- my old Programs won't compile! I always get an error message of the
type :

error LNK2001: unresolved external symbol "class TVirtualPad *  gPad"
(?gPad@@3PAVTVirtualPad@@A)

for every global variable which is defined within the libraries.
Comparing the new installation with the old one showed, that somebody
changed
the header files to use __declspec( dllimport ) explicitly. 
I tried in on the new installation  and everything works- but it is most 
probably the cause of my bugs.        What am I doing wrong???
                            Cheers Ralf
PS: There were efforts going on, to make Root compileable on VMS
Systems.
Did they succeed?



This archive was generated by hypermail 2b29 : Tue Jan 04 2000 - 00:43:29 MET