This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: std::ofstream


> #include <iostream>
> 
> int main()
> {
>         std::ofstream file("xyz.out", std::ios::out|std::ios::app);
> }

> Am I in error somewhere?

Yes: std::ofstream is in <fstream>. You'll need to include that file.

-benjamin


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]