Not logged in, Join Here! or Log In Below:  
News Articles Search    

 Home / General Programming / msvcr70 causes crashing with fstream Account Manager
Archive Notice: This thread is old and no longer active. It is here for reference purposes. This thread was created on an older version of the flipcode forums, before the site closed in 2005. Please keep that in mind as you view this thread, as many of the topics and opinions may be outdated.

April 26, 2005, 04:26 PM

I am using dev c++ with gcc 3.42. My code requires a library containing _aligned_malloc to link properly. Unfortuantely there seems to be an odd conflict between libmsvcr70(which contains _aligned_malloc) and the following, perfectly valid code in this example program:

  1. fstream filein;
  2. int main(){
  3.     int a;
  4."in.txt", ios::in);
  5.     filein>>a;
  6. }

if libmsvr70 is removed from the project, it does not crash. If I remove the filein>>a; line, there is no crashing. Is there anything I can do to get it to link properly, and run without crashing?


April 26, 2005, 09:35 PM


This thread contains 2 messages.
Hosting by Solid Eight Studios, maker of PhotoTangler Collage Maker.