gDirectory, unresolved external

chris garcia (garcia.91@osu.edu)
Wed, 26 May 1999 10:06:42 -0400


hi rooters!! the last two dll's i have tried to compile have been giving
me errors on linking, saying:

error LNK2001: unresolved external symbol
"class TDirectory * gDirectory" (?gDirectory@@3PAVTDirectory@@A)

i have all the libraries in the $rootsys\lib directory included, and i get
no other unresolvables except for gDirectory (i have extensive use of my
own classes and TFile, TDirectory, etc.). where is gDirectory derived
from, and am i missing that library??

these are the calls to gDirectory i use:

checker = gDirectory->cd(cdirname);
:
:
local_current = gDirectory;
:
:
gDirectory->mkdir(cdirname);

they are all in different functions and don't really make any sense in the
order i have them above. these are the only references to gDirectory in my
code, commenting them out allows the dll to link. "checker" is of type
Bool_t, "local_current" is of type TDirectory*, "cdirname" is of type const
char*. any ideas?? thanks!!
"Schrodinger had to take his cat to the vet, or did he?" - unknown

chris
chris garcia
cdf group, the ohio state university