g++ error 0xc000007b when compiling program with iostream

0

I have a C++ program which I am compiling on a x64 machine running Windows 10 with g++ x86_64-win32-seh-rev2 v7.1.0, using the command g++ -g main.cpp. When I run my program, I get the error 0xc000007b. This is my code

#include <iostream>
using namespace std;

int main() {
    cout << "Hello World";
    return 0;
}

When I compile with this code

#include <stdio.h>
using namespace std;

int main() {
    printf("Hello World");
    return 0;
}

It works fine. When I run it in gdb, it runs fine.

I have seen other posts where there are dlls being used that do not support the architecture, but I don't think I am using any dlls in this application, unless they are being added by g++

c++
windows
g++
iostream
asked on Stack Overflow Oct 23, 2017 by Caleb

0 Answers

Nobody has answered this question yet.


User contributions licensed under CC BY-SA 3.0