Reputation: 11
While trying to run this simple hello world program:
#include <iostream>
using namespace std;
int main()
{
cout << "Hello World!" << endl;
}
I get segmentation fault error:
Loaded 'C:\Windows\System32\KernelBase.dll'. Symbols loaded.
Loaded 'C:\Windows\System32\ucrtbase.dll'. Symbols loaded.
Loaded 'C:\Program Files\Tesseract-OCR\libstdc++-6.dll'. Symbols loaded.
Loaded 'C:\Windows\System32\msvcrt.dll'. Symbols loaded.
Loaded 'C:\Program Files\Tesseract-OCR\libgcc_s_seh-1.dll'. Symbols loaded.
Loaded 'C:\Program Files\Tesseract-OCR\libwinpthread-1.dll'. Symbols loaded.
Thread 1 received signal SIGSEGV, Segmentation fault.
0x000000006fcbacf6 in std::basic_ostream<char, std::char_traits<char> >::sentry::sentry (this=this@entry=0x5ffde0, __os=...) at ./build/x86_64-w64-mingw32-posix/x86_64-w64-mingw32/libstdc++-v3/include/bits/ostream.tcc:51
Upvotes: 0
Views: 71