[ROOT] Advice for Good Programming : Part 2:

From: B.V.L.S.Prasad (shiva@mbu.iisc.ernet.in)
Date: Mon Sep 03 2001 - 20:17:48 MEST


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 class
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