>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???
Very likely you forgot to supply the preprocessor symbol:
-DWIN32
or something like this.
At least so far all global variables were defined via macro
R__EXTERN
Valery