[Insight-users] errors about output with files

李健 rongx2 at live.cn
Thu Oct 1 17:53:50 EDT 2009


Dear all:

 

In itk examples, sometimes the program use std::ofstream to output the results to a file. For example:

 

  if( argc > 9 )
    {
    std::ofstream parametersFile;
    parametersFile.open( argv[9] );
    parametersFile << finalParameters << std::endl;
    parametersFile.close();
    }

 

When I use the same code, however, there is an error information: 

 

error: aggregate 'std::ofstream parametersFile' has incomplete type and cannot be defined.

 

How should I solve this problem?

 

Thanks a lot.
 		 	   		  
_________________________________________________________________
约会说不清地方?来试试微软地图最新msn互动功能!
http://ditu.live.com/?form=TL&swm=1
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/pipermail/insight-users/attachments/20091002/4fd8c881/attachment-0001.htm>


More information about the Insight-users mailing list