Hi, Please see examples in $ROOTSYS/test If you want to compile only mydict.C, use g++ -c otherwise g++ will try to build an executable module. If you want to build an executable module, you have to add MyClass.o in your link sequence. Rene Brun On Sat, 17 May 2003, zaldy wrote: > > > Dear Root People, > > Please ignore my previous e-mail; am making little progress. > > I wanted to compile the source codes describe in URL: > http://root.cern.ch/root/CintGenerator.html#DictionaryNOIO > > In particular these are the files I am using: MyClass.h, MyClass.C > main.C. > > I also generated the dictionary using the command: > prompt> rootcint mydict.C -c MyClass.h > So I have 4 files: MyClass.h, MyClass.C, mydict.C, and > main.C. > > I use the Makefile described at the same URL location, > but modified a little bit. I attached it here. Or, You can also see it at > "http://neutrino.kek.jp/~zaldy/Report.txt". > > --------- > QUESTION > -------- > 1. Is the Makefile correct? I numbered each line so that it is convenient > to locate the lines that causes the error messages. > > 2. Do you know what the error messages are, and what causes them? > > I used RedHat 6.1, g++ 2.91.66, > RootV3.04 downloaded from root site and untared > (from Intel x86 Linux for Redhat 6.1 (glibc 2.1) and egcs1.1.2, > version 3.04/02 (11.8 MB). ) > > > > Thank you very much. > > -------------------------------------------------------- > Zaldy A. Nawang > PS Users Room 2 > Yon Gokan, > E362, Neutrino Group, > IPNS, KEK, > Japan > > e-mail: zaldy@neutrino.kek.jp > Tel. No. : (81) 029864 - 5387 > -------------------------------------------------------- > >
This archive was generated by hypermail 2b29 : Thu Jan 01 2004 - 17:50:11 MET