Changeset 3572 in Sophya for trunk/SophyaPI/PIext/cxxexecutor.cc


Ignore:
Timestamp:
Feb 7, 2009, 10:50:34 PM (17 years ago)
Author:
cmv
Message:

char* -> const char* pour regler les problemes de deprecated string const... + comparaison unsigned signed + suppression EVOL_PLANCK rz+cmv 07/02/2009

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/SophyaPI/PIext/cxxexecutor.cc

    r3551 r3572  
    394394  <<endl
    395395
    396 #ifdef SANS_EVOLPLANCK
    397   <<"//---- Peida include files"<<endl
    398   <<"#include \"toutpeida.h\""<<endl
    399 #else
    400396  // Si on enleve sopnamsp.h (using namespace SOPHYA), il faudra accoler
    401397  // SOPHYA:: à toutes les déclarations automatiques - Reza, 10/09/2004
     
    409405  <<"#include \"histats.h\""<<endl
    410406  <<endl
    411 #endif
    412407
    413408  <<"//---- Spiapp include files"<<endl
     
    497492  os<<obtype<<"* "<<stmp
    498493    <<" = dynamic_cast< "<<obtype<<" * >(omg.GetObj(___nomobj));"<<endl;
    499 #ifdef SANS_EVOLPLANCK
    500   os<<"if("<<stmp<<"==NULL) { \n"
    501     <<" long mExcErr = nullPtrErr; \n"
    502     <<" cerr << \"CxxExecutor::PutObject: Non existing object "
    503     <<" ... please update file \\n \" ;"
    504     <<" throw mExcErr ; \n } "<<endl;
    505 #else
    506494  os<<"if("<<stmp<<"==NULL) throw NullPtrError"
    507495    <<"(\"CxxExecutor::PutObject: Non existing object "<<nobj
    508496    <<"... please update file\");"<<endl;
    509 #endif
    510497  os<<obtype<<"& "<<nobj<<" = (*"<<stmp<<");"<<endl<<endl;
    511498}
     
    622609
    623610int rc;
    624 #ifdef SANS_EVOLPLANCK
    625 CxxCompilerLinker cxx;
    626 string sophlib = " -lPIE -lm ";
    627 cxx.AddLinkOptions(sophlib);
    628 #else
    629611CxxCompilerLinker cxx(true,true,true);
    630 #endif
    631612if(TmpDir().size()>0) cxx.SetTmpDir(TmpDir());
    632613if(mPrtLevel>0) cxx.SetVerbose(true);
Note: See TracChangeset for help on using the changeset viewer.