<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><br></div><div>Hi Steve,</div><div>I'm still getting this error:</div><div><div>admbponds_measurment_trial.cpp:1: error: ‘ofstream’ does not name a type</div></div><div><br></div><div>to go with this first line of the .cpp file:</div><div>ofstream out_stream("/scratch/ufhpc/mbrooks/trial.txt");</div><div><br></div><div>I'm wondering if it's a problem that the GLOBALS_SECTION puts this definition before #include <admodel.h>?</div><div>I'm wondering if <admodel.h> contains the relevant iostream info.</div><div>-Mollie</div><div><br></div><div><font class="Apple-style-span" size="3"><span class="Apple-style-span" style="font-size: 12px;"><span class="Apple-style-span" style="font-size: medium;"><br></span></span></font></div><br><div><div>On Sep 10, 2010, at 3:51 PM, Steve Martell wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Almost,<div><br></div><div>Try </div><div><br></div><div>ofstream out_stream("/scratch...trial.txt");</div><div><br></div><div>then in your code:</div><div><br></div><div>out_stream<<variable<<endl;</div><div><br></div><div>Steve<br><div><div>On 2010-09-10, at 12:44 PM, Mollie Brooks wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Hi all,<div>If you have used ofstream to do in-procedure reporting, how did you get it to work?</div><div>I found that it exists here</div><div><a href="http://admb-project.org/documentation/developers/api/keywords.txt">http://admb-project.org/documentation/developers/api/keywords.txt</a></div><div><br></div><div>I tried adding </div><div><div>GLOBALS_SECTION</div><div><span class="Apple-tab-span" style="white-space:pre">  </span>ofstream out_stream;</div><div><span class="Apple-tab-span" style="white-space:pre"> </span>out_stream.open("/scratch/ufhpc/mbrooks/trial.txt");</div></div><div><br></div><div>But I got these errors that point to the relevant lines of the cpp file:</div><div><div>admbponds_measurment_trial.cpp:1: error: ‘ofstream’ does not name a type</div><div>admbponds_measurment_trial.cpp:2: error: expected constructor, destructor, or type conversion before ‘.’ token</div><div>admbponds_measurment_trial.cpp: In member function ‘virtual void model_parameters::userfunction()’:</div><div>admbponds_measurment_trial.cpp:127: error: ‘out_stream’ was not declared in this scope</div><div><br></div><div>Also, is there a way to search the history of this mailing list? Sorry if this question has already been covered.</div><div>thanks,</div><div>Mollie</div><div><br></div><div apple-content-edited="true"> <div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><div style="font-size: 12px; ">Mollie Brooks</div><div style="font-size: 12px; ">Ph.D. Candidate</div><div style="font-size: 12px; ">NSF IGERT Fellow</div><div style="font-size: 12px; ">Biology Department</div><div style="font-size: 12px; ">University of Florida</div><div style="font-size: 12px; "><a href="mailto:mbrooks@ufl.edu">mbrooks@ufl.edu</a></div><div style="font-size: 12px; "><a href="http://www.zoology.ufl.edu/mbrooks">www.zoology.ufl.edu/mbrooks</a></div><div style="font-size: 12px; "><br></div></div></div><br class="Apple-interchange-newline"> </div><br></div></div>_______________________________________________<br>Users mailing list<br><a href="mailto:Users@admb-project.org">Users@admb-project.org</a><br><a href="http://lists.admb-project.org/mailman/listinfo/users">http://lists.admb-project.org/mailman/listinfo/users</a><br></blockquote></div><br><div> <span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0; "><div>Steve Martell</div><div><a href="mailto:s.martell@fisheries.ubc.ca">s.martell@fisheries.ubc.ca</a></div><div><br></div></span><br class="Apple-interchange-newline"> </div> <br></div></div></blockquote></div><br></body></html>