[ROOT] RE:Advice for Good Programming : Part 2:

From: Masaharu Goto (MXJ02154@nifty.ne.jp)
Date: Tue Sep 04 2001 - 15:38:35 MEST


Hello Prasad,

I can think of 2 possibilities,

1. I guess it can be because you put too many things to
 one G__cpp_xxx file.  I've seen similar problem when
 I compile huge library in one file.  If this is the
 case, you need to split it into multiple files.  You
 can somehow integrate multiple dictionary in one Cint
 process.

2. Allocating 120Mbyte is not possible if you do not have
 huge physical memory on your computer. Your compiler may
 have some problem in this aspect. 

There can be other possibilities too. I hope you can work
it out.

Thank you
Masaharu Goto



>Date: Mon, 3 Sep 2001 23:47:48 +0530 (IST)
>From: "B.V.L.S.Prasad" <shiva@mbu.iisc.ernet.in>
>To: <roottalk@pcroot.cern.ch>
>Cc: <MXJ02154@niftyserve.or.jp>
>Subject: Advice for Good Programming : Part 2:
>
>Dear masa, rooters and all,
>
>       I am facing a strange problem.
>cint compiled all my C++ files whose names are listed below.
>Finally, its not compiling G__cpp_BioBhasha.C ...its giving the following
>error.
>
>Creating an archive file has been successfull with g++, but with cint its
>failing.
>
>       I am using Mandrake 8.0, g++-2.96 and cint5.15.06. version.
>
>*****************************************************************************
*
*****
>
>/home/shiva/cint/cint  -w0 -zBioBhasha -nG__cpp_BioBhasha.C  -D__MAKECINT__
>-DG__MAKECINT  -c-1 -A   -DG__REGEXP -DG__SHAREDLIB -DG__OSFDLL -DG__ANSI
>BioUtilities.h BioPoint.h BioAtom.h BioSequence.h BioPointImpl.h
>BioStatistics.h BioMultipleSequences.h BioAtomImpl.h BioHKL.h BioHelperClass.
h
>BioMolecule.h BioPdbHeader.h BioPdbTitle.h BioPdbCompnd.h BioPdbSource.h
>BioPdbKeywds.h BioPdbExpdta.h BioPdbAuthor.h BioGenBankLocus.h
>BioGenBankDefinition.h BioGenBankVersion.h BioGenBankAccession.h
>BioGenBankSegment.h BioGenBankKeywords.h BioGenBankSource.h
>BioGenBankReference.h BioGenBankFeatures.h BioGenBankBaseCount.h
>BioGenBankOrigin.h BioGenBankSequence.h BioGenBank.h BioEmblId.h BioEmblAc.h
>BioEmblSv.h BioEmblDt.h BioEmblDe.h BioEmblGn.h BioEmblKw.h BioEmblOs.h
>BioEmblRn.h BioEmblDr.h BioEmblFt.h BioEmblSq.h BioEmblSequence.h BioEmblCc.h
>BioEmbl.h BioDdbj.h BioSwissProtId.h BioSwissProtSq.h BioSwissProt.h BioFasta
.
h
>BioMultipleFasta.h BioMsf.h BioClustal.h BioMultipleGde.h BioMultiplePir.h
>BioAminoAcidLibrary.h BioAtomLibrary.h BioLinkDef.h
>
>g++ -Wall -I/home/shiva/cint   -DG__REGEXP -DG__SHAREDLIB -DG__OSFDLL 
-DG__ANSI
>-O   -c G__cpp_BioBhasha.C
>
>Cannot allocate 120124992 bytes after allocating 14723708 bytes
>make: *** [G__cpp_BioBhasha.o] Error 1
>*****************************************************************************
*
*****
>
>
>This error came after 17 minutes. I checked it on top command.
>
>I have used #pragma also.
>
>my BioLinkDef.h  is :
>
>#ifdef __CINT__
>
>#pragma link off all globals;
>#pragma link off all classes;
>#pragma link off all functions;
>
>#pragma link C++ function setAminoAcidDefaults;
>#pragma link C++ function setAtomDefaults;
>#pragma link C++ class BioAminoAcidLibrary;
>#pragma link C++ class BioAtomLibrary;
>
>#endif
>
>
>BioAminoAcidLibrary is not creating any problem which is also a data class.
>
>But,
>BioAtomLibrary is creating the problem.
>
>       the content of that I have mailed earlier to you. It basically is clas
s
>holding the relevant information of all the 105 elements. I am attaching that
>file again. Please have a look.
>
>
>why is this happening...??
>and how to over come...???
>
>
>thankyou for the help.
>
>Prasad.
>
>
>-- 
>Be Happy,
>Enjoy Life.
>with love
>shiva.
>********************************************************************
>*   If the Problem is Clear, the Solution is  Near.    ...shiva... *
>********************************************************************
>



This archive was generated by hypermail 2b29 : Tue Jan 01 2002 - 17:50:59 MET