Quantcast
Channel: Active questions tagged visual-studio-code - Stack Overflow
Viewing all articles
Browse latest Browse all 97400

is Undefined Errors in VS Code MinGW Vs. Win32

$
0
0

I am facing a problem with my VSCode.

when i use MinGW it shows me errors of identifier ... is Undefined which does not affect the execution of the code,
but when I switch to Win32 all these errors disappears. and that happens even though I included the needed Libraries. I wanna know if some one can help me out What is the problem and how can I solve it.

here are my headers:

#include <iostream>
#include <vector>
#include <tuple>
#include <fstream>
#include <algorithm>
#include <windows.h>
#include <ctime>

if I write a simple code for example something deals with time like this:

int main()
{

    time_t now = time(0);
    cout<<ctime(&now);

    return 0;
}

it shows me erros like that only when I use MinGW

identifier "make_tuple" is undefined
identifier "get" is undefined
identifier "time" is undefined
identifier "localtime" is undefined
identifier "asctime" is undefined
identifier "ctime" is undefined

Viewing all articles
Browse latest Browse all 97400

Trending Articles



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