My program is very easy, all the mess happens around the passing of the ofstream pointer as shown below.
Main programm:
int main()
{...
ofstream otf;
otf.open("hex_movie.xyz");
....
write(int (1),oc,nx,ny,otf,ck)
}
And in the write.h, it begins with
int write(int TYPE,int *oc,int nx,int ny,ofstream otf, double ck)
{.... return 0;}
I used Xcode to debug it, and it shows (only on the line of the write fucntion, sorry I cannot upload a screen shot)
Xcode/GGK/GGK/ggk.cpp:110:28: Call to implicitly-deleted copy constructor of 'ofstream' (aka 'basic_ofstream')
Can anybody help me with this, thank you very much! :)