With gcc 4.6 when trying to execute this code:
#include using namespace std; #include int main() { //Int<> a
as smallB noted in a comment, you may have used gcc, focused on C programs, but you had a C++ program.
gcc
C
C++
To compile a C++ program, make sure to use the g++ compiler driver instead!
g++
example:
BAD: gcc -o foo.exe foo.cpp
gcc -o foo.exe foo.cpp
GOOD: g++-o foo.exe foo.cpp
-o foo.exe foo.cpp