Looks like you're missing a << between the " " and the g2_n[i]<br><br><div class="gmail_quote">On Fri, Jul 15, 2011 at 4:23 PM, Richard Harke <span dir="ltr"><<a href="mailto:paleopenguin@gmail.com">paleopenguin@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div id=":4i"> if (i_cnt < 10) {<br> std::ostringstream file_name;<br> file_name << "ch" << i_cnt << std::ends;<br>
std::ofstream test_file(file_name.str().c_str());<br>
test_file << std::setprecision(15);<br> test_file << " r X_n X_nf Z_n Z_nf g1_n g1_nf g2_n g2_nf mass_n mass_nf";<br> test_file << std::endl;<br> for (int i = 0; i < size; i++) {<br>
test_file << r1[i] << ' ' << X_n[i] << ' ' << X_nf[i] << ' ' << Z_n[i] << ' ' << Z_nf[i]<br> << " " << g1_n[i] << " " << g1_nf[i] << " " g2_n[i] << " " << g2_nf[i] << ' ' // this is line 1785<br>
<< mass_n[i] << ' ' << mass_nf[i] << std::endl;<br> }<br> i_cnt++;<br><br><br>grid.cc: In member function 'void Grid::interpolate_from_parent(Special_Float)':<br>grid.cc:1785: error: expected `;' before 'g2_n'<br>
make: *** [grid.o] Error 1<br></div></blockquote></div><br>