Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

Question about multithreading

omni777omni777 Member Posts: 6
I'm programming a game, which has a function in it to read map data from text files. Yesterday, I switched the program over to a multithreaded format. Now VC++ is saying that ifstream is an unresolved external symbol. Is there a special library or header I need to include to read text files while in a multithreaded program or could there be something else causing it? (I have #include at the top of the main file)

Comments

  • Dazed66Dazed66 Member Posts: 77
    [b][red]This message was edited by Dazed66 at 2002-10-26 7:24:12[/red][/b][hr]
    : I'm programming a game, which has a function in it to read map data from text files. Yesterday, I switched the program over to a multithreaded format. Now VC++ is saying that ifstream is an unresolved external symbol. Is there a special library or header I need to include to read text files while in a multithreaded program or could there be something else causing it? (I have #include at the top of the main file)
    :

    You might try going into -> project settings
    and under -> C/C++
    under catagory -> code generation
    under the -> Use run-time library
    change it to multithreaded.

    Hope that helps.


  • omni777omni777 Member Posts: 6
    Nope, I already did that. Thanks for trying, though.
  • Dazed66Dazed66 Member Posts: 77
    : Nope, I already did that. Thanks for trying, though.
    :

    Try using this
    #include
    using namespace std;

    Also are you using the CreateThread Function? If not you might want to try that...


  • omni777omni777 Member Posts: 6
    [b][red]This message was edited by omni777 at 2002-10-26 11:24:8[/red][/b][hr]
    [b][red]This message was edited by omni777 at 2002-10-26 11:18:24[/red][/b][hr]
    Yeah, I did that too...

    Edit: Hmmm... I recompiled everything and now it's showing no errors even though I didn't change anything... Thanks for your help, man.






  • Andre YoungAndre Young USAMember Posts: 0

    _____ [ http://forcoder.org ] free video tutorials and ebooks about // PL/SQL Perl Visual Basic .NET Python R JavaScript MATLAB Delphi Ruby Java PHP C++ Assembly Swift Visual Basic Objective-C C# Scratch C Go F# ML Clojure Rust Lisp Scheme COBOL Erlang Ada VBScript D Apex Logo Kotlin Prolog Alice SAS Julia Transact-SQL Hack Crystal ABAP Lua Scala Awk Dart LabVIEW Bash Fortran FoxPro // _________

Sign In or Register to comment.