what is compiling wrong?

closed account (Dy7SLyTq)
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\
Last edited on
closed account (Dy7SLyTq)
nvr mnd... as soon as i posted this i realized its because i didnt supply an entry point
closed account (3qX21hU5)
Just as a heads up these threads would probably be suited better for the general programming section also.
closed account (Dy7SLyTq)
yeah sorry my bad. most of my previous threads were in the lounge so i did it without thinking. ill move it
Topic archived. No new replies allowed.