-
February 13th, 2011, 04:33 PM
#1
LNK2022 error using IOSTREAM and FSTREAM (VS C++ 2010)
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();
}
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|