linking on DEC/OSF1

Mark Boulay (mgb@owl.phy.queensu.ca)
Wed, 30 Sep 1998 20:06:40 -0400 (EDT)


Root team,

I'm trying to compile and link a simple test program
on DEC/OSF1 with root 2_00/11. The following is the test file, along
with the compiler output. I get similar unresolved messages when
trying to build the examples in the $ROOTSYS/test directory.

#############################file test_root.C###################
#include "TROOT.h"
#include "TFile.h"
void main()
{
TROOT theRoot("theRoot","Test");
TFile *f1 = new TFile("f1","RECREATE","test file");
f1->Close();
}
################################################################

marie> g++ -o test_file -Wl,-soname -I/$ROOTSYS/include -L/$ROOTSYS/lib
-lNew -lBase -lFunc -lCint -lClib -lCont -lFunc -lHist -lHtml -lMatrix
-lMeta -lMinuit -lNet -lPostscript -lProof -lTree -lUnix -lZip -lGpad
-lGui -lGraf -lGraf3d -lGX11 -lX3d -lXm -lXpm test_root.C

/bin/ld:
Unresolved:
TFile::TFile(char const *, char const *, char const *, int)
collect2: ld returned 1 exit status
make: *** [test_file] Error 1

Thanks for any help,

Mark.

=================================================================
= =
= Mark Boulay =
= Department of Physics phone/voice mail: (613) 545-6861 =
= Queen's University fax: (613) 545-6813 =
= Kingston, Ontario email: mgb@sno.phy.queensu.ca =
= Canada, K7L 3N6 =
= =
=================================================================