From: Jeff W. <jwi...@mf...> - 2004-06-23 21:05:24
|
This is a very vague bug report, but I am hoping someone might provide some insight. I will described the scenario and please read it all, because what is important is the entire scenario, not any one individual stage: 1. I have mingw GCC 3.3.3 installed. 2. I renamed c:/mingw/bin to c:/mingw/bin3.3.3 2. I upgrade to GCC 3.4 by installed the 3.4 core and 3.4 c++ tar files into c:\mingw 3. I compile STLport 4.5.3 NOTE: I am using stlport as a DLL 4. I compile a test app that does this: // contents of foo.txt is simply 12.4 std::ifstream ifs("foo.txt"); float f; ifs >>f; std::cout << "F = " << f << std::endl; Output is: F = 0 It should say F = 12.4 5. I then renamed c:/mingw/bin to c:/mingw/bin3.4, and then rename c:/mingw/bin3.3.3 to c:/mingw/bin (effectively reverting the binaries to the previous version) 6. Now I recompile STLport4.5.3 (as a DLL) and note that I am using the old 3.3.3 binaries. 7. Now I rerun my test app (I do NOT recompile it). But it is using the recompiled DLL And this time it works as expected. I guess what I am trying to demonstrate is that only the DLL changed and it worked properly. So I am inclined to think it is not a problem with the STLport 4.5.3 code, but a problem with the 3.4 compiler. BTW: I also tried 4.6.0 and 5.0 version STLport and same deal (although I couldnt get it to compile on 3.3.3). Does this scenario provide any insight into what can be done to fix this? Jeff |