im working on a compiler based off of bajarne stroustrops calculator and i only have this so far:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
#include <iostream>
#include <fstream>
#include <sstream>
#include <string>
#include <random>
#include <functional>
#include <map>
#include <cctype>
using std::cout;
using std::cerr;
using std::endl;
using std::cin;
using std::ifstream;
using std::istringstream;
using std::string;
using std::map;
using std::bind;
yet it is saying:
$ g++ -std=c++11 test.cpp -o test
/usr/lib/gcc/i686-pc-cygwin/4.7.3/../../../libcygwin.a(libcmain.o): In function `main':
/usr/src/debug/cygwin-1.7.22-1/winsup/cygwin/lib/libcmain.c:39: undefined reference to `WinMain@16'
collect2: error: ld returned 1 exit status\