Hi,
I’m writing a macro that reads out a data file which provides in some lines certain values. These are stored in a vector. That does work but when I try to write this vector to a new file I receive the following error:
[quote]Error: link requested for unknown class ostream_iterator /…/analysis/APDs/AutoDict_ostream_iterator_string_.cxx:6:
Error: unknown class ostream_iterator in “#pragma link C++ class ostream_iterator::*”! Egnoring it.
Warning: Error occurred during reading source files
Warning: Error occurred during dictionary source generation
!!!Removing /home/…/analysis/APDs/AutoDict_ostream_iterator_string__cxx_ACLiC_dict.cxx /…/analysis/APDs/AutoDict_ostream_iterator_string__cxx_ACLiC_dict.h !!!
Error: /usr/bin/rootcint: error loading headers…
Error in : Dictionary generation failed![/quote]
Actually I’m only focused on handling the reading and writing so that’s why nothing else happens in the code. That’s the code:
[quote=“dpiparo”]
I am compiling the macro just fine with ROOT6 on osx. What version of ROOT are you using? Which compiler? On which OS?Danilo[/quote]
It’s on ubuntu and the software center displays root-system-bin 5.34.14-1build1.
I guess I shall update ? Didn’t know there’s a new version. Despite I thought ubuntu updates all the stuff automatically.
I think the general rules for Linux/OSx are the one to follow here.
You can modify the bashrc (or equivalent) to properly setup the environment of your shells.
thanks so far. How exactly do I do this ? In the .bashrc is no root, I thought I just could change the directory or something like this.
Do I have to enter an alias which executes thisroot.sh in the given directory ?