| | |
fstream.h + winsock2.h doesn't work?
Please support our C++ advertiser: Intel Parallel Studio Home
Thread Solved |
•
•
Join Date: Dec 2005
Posts: 45
Reputation:
Solved Threads: 0
Hello, I am working on a server program that deals with opening files, or at least that is all that is relevant for this post. I am using VC++.
I use multithreading so that it can be multi-client, of course, but when I try to use this line:
(assume "ifstream infile" and "string filename" defined)
This causes the error "unresolved external symbol __CrtDbgReport". I am fairly sure this has something to do with the multithreading aspect of the program because it only started appearing when I added the threads.
The same exact error comes up when I try to simply include iostream.h but I didn't think of it much at the time because I learned that printf() worked. However, unless there is a fileopenf(), I think this an impasse.
If there is a way to fix this fstream problem, maybe it would also fix the iostream problem.
I use multithreading so that it can be multi-client, of course, but when I try to use this line:
C++ Syntax (Toggle Plain Text)
infile.open(filename, ios::in);
This causes the error "unresolved external symbol __CrtDbgReport". I am fairly sure this has something to do with the multithreading aspect of the program because it only started appearing when I added the threads.
The same exact error comes up when I try to simply include iostream.h but I didn't think of it much at the time because I learned that printf() worked. However, unless there is a fileopenf(), I think this an impasse.
If there is a way to fix this fstream problem, maybe it would also fix the iostream problem.
![]() |
Similar Threads
- fstream Tutorial (C++)
- string compare and fstream (C)
- Why Data Structures???...QUESTIONS INSIDE (C++)
- GET! GOT! GOTCHA! I still don't Get it... (C++)
- Help with fstream (C++)
- fstream and struct question (C++)
- Stack Queue Fstream (C++)
Other Threads in the C++ Forum
- Previous Thread: make file
- Next Thread: Compile errors [help] [ log ]
| Thread Tools | Search this Thread |
api array based beginner binary bitmap c++ c/c++ calculator char char* class classes coding compile compiler console conversion count database delete deploy desktop developer directshow dll dynamiccharacterarray email encryption error file forms fstream function functions game getline givemetehcodez google graph homeworkhelp homeworkhelper iamthwee ifstream input int integer lib linkedlist linux list loop looping loops map math matrix memory multiple news node number numbertoword output parameter pointer problem program programming project proxy python random read recursion recursive reference return rpg sorting string strings struct template templates text tree unix url variable vector video visual visualstudio win32 windows winsock word wordfrequency wxwidgets






