Quantcast
Channel: Active questions tagged gcc - Stack Overflow
Viewing all articles
Browse latest Browse all 22149

Issue with executing .exe written in C++ (using mingw compiler)

$
0
0

I am new to programming and trying to learn C++ using C++ Primer (5th ed.). I have written this code that is directly from the book. The issue is when trying to execute the .exe results with this prompt popping up

The procedure entry point _ZNKSt9basic_ioslcSt11char_traitslcEEcvbEv could not be located in the dll

The .cpp

#include <iostream>

main ()
{
    int sum = 0, val = 0;

    while (std::cin >> val) 
        sum += val;

    std::cout << "The sum is: "<< sum << std::endl;

    return 0;
}

Viewing all articles
Browse latest Browse all 22149

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>