I use i686-4.8.2-release-posix-dwarf-rt_v3-rev1.7z.
Test cpp code:
#include <string> #include <iostream> int main() { std::string str = "100"; std::cout << str; return 0; }
Compile command:
g++ -static test.cpp -o test.exe
When run test.exe obtain segmentation fault.
Without "-static" - all is ok.
This is a known issue. New builds will be uploaded on Monday.
Sorry, I'm confused, this is not a issue that I thought.
Your code compiles and runs successfully.
Last edit: niXman 2014-01-05
I try this code on a fresh installation of windows xp and windows 7 and got exception. Without "-static" i got output of "100".
In the topic you wrote that you get segmentation fault. Now you write that you get an exception. How do you determine it segmentation fault or exception?
Fresh systems suggested me to debug or close the application. On my working system qt creator show segmentation fault in ntdll!RtlIntegerToUnicodeString. Full backtrace:
I assumed that the same thing occur on a fresh systems.
I'm sorry, I'm confused again %)
I tested your code on an already fixed builds, so it runs successfully.
On Monday-Tuesday I uploaded fixed builds, please wait.
Thanks for great work.
done:
https://sourceforge.net/mailarchive/message.php?msg_id=31818705