I'm having a major issue using the simple iostream and fstream headers in VS C++ 2010. Before adding any code that uses iosteam and fstream, I was having problems compiling after just adding their headers with the #include<iostream> and #include<fstream> statements. I managed to fix that by changing the CLR support to just standard CLR, but when I try and compile the simple code found below (which is the code for a button on a form), I get several errors stating error LNK2022: metadata operation failed : Custom attributes are not consistent, and I also get several error LNK2034 errors stating : metadata inconsistent with COFF symbol table. Does anyone have any idea of what the problem might be, or what I may need to change to get this to compile!? Thanks

private: System::Void button1(System::Object^ sender, System::EventArgs^e) {

ofstream issout("iss_test_out.csv", ios:: out);
issout << "testing" << "," << "yo" << "," << "12" << endl;
issout.close();
}