Thanks for the rapid response. I've now looked at this FAQ, and none of the circumstances it includes describes my problem.
The closest one is: Q: My simple C++ program throws up lots of errors - what is going on?
The suggestion is that the user is trying to compile a C++ program as a C program. But, that is not the case for me. The "Hello World" program has a cpp extension. And, as I stated, compiles and runs just fine in the 32 bit compiler.
So, I am pretty sure the problem lies in how I set up the new 64 bit compiler. I just do not know what the problem is.
Additional Suggestions/Questions:
My path is:
PATH=C:\ProgramData\Oracle\Java\javapath;C:\Windows\system32;C:\Windows;C:\Windows\system32\wbem;C:\Program Files\Common Files\Microsoft Shared\Windows Live;C:\Program Files (x86)\Common Files\Microsoft Shared\Windows Live;C:\Windows\System
32\WindowsPowerShell\v1.0;C:\Program Files (x86)\Common Files\Roxio Shared\DLLShared;c:\Program Files (x86)\Common Files\Ulead Systems\MPEG;C:\Program Files (x86)\QuickTime\QTSystem;c:\Program Files (x86)\Java\jre6\bin;C:\Program Files\Java\jdk1.6.0_21\bin;C:\Program Files (x86)\Windows Live\Shared;C:\Program Files (x8
6)\QuickTime\QTSystem\;c:\ndigital\programs;C:\Program Files\MATLAB\MATLAB Compiler Runtime\v82\runtime\win64;C:\cygwin64\bin;C:\GnuWin32\include;C:\GnuWin32\bin;C:\Program Files\IBM\SPSS\Statistics\24\JRE\bin;C:\Program Files (x86)\gnuplot\bin;C:\TDM-GCC-64\bin;C:\Program Files (x86)\Skype\Phone\
My full rebuld log is:
-------------- Clean: Debug in test7 (compiler: MinGW 64 Bit)---------------
Cleaned "test7 - Debug"
-------------- Build: Debug in test7 (compiler: MinGW 64 Bit)---------------
x86_64-w64-mingw32-g++.exe -Wall -fexceptions -g -Wnon-virtual-dtor -Winit-self -Wunreachable-code -Wall -std=c++11 -ftemplate-backtrace-limit=0 -IC:\CodeBlocks\MinGW\include -IC:\GnuWin32\include -IC:\Eigen -Ic:\boost -c D:\test7\main.cpp -o obj\Debug\main.o
In file included from C:/TDM-GCC-64/x86_64-w64-mingw32/include/stddef.h:7:0,
from C:/TDM-GCC-64/lib/gcc/x86_64-w64-mingw32/5.1.0/include/stddef.h:1,
from C:\CodeBlocks\MinGW\include/wchar.h:26,
from C:/TDM-GCC-64/lib/gcc/x86_64-w64-mingw32/5.1.0/include/c++/cwchar:44,
from C:/TDM-GCC-64/lib/gcc/x86_64-w64-mingw32/5.1.0/include/c++/bits/postypes.h:40,
from C:/TDM-GCC-64/lib/gcc/x86_64-w64-mingw32/5.1.0/include/c++/iosfwd:40,
from C:/TDM-GCC-64/lib/gcc/x86_64-w64-mingw32/5.1.0/include/c++/ios:38,
from C:/TDM-GCC-64/lib/gcc/x86_64-w64-mingw32/5.1.0/include/c++/ostream:38,
from C:/TDM-GCC-64/lib/gcc/x86_64-w64-mingw32/5.1.0/include/c++/iostream:39,
from D:\test7\main.cpp:1:
C:/TDM-GCC-64/x86_64-w64-mingw32/include/crtdefs.h:35:1: error: '__MINGW_EXTENSION' does not name a type
__MINGW_EXTENSION typedef unsigned __int64 size_t;
^
C:/TDM-GCC-64/x86_64-w64-mingw32/include/crtdefs.h:45:1: error: '__MINGW_EXTENSION' does not name a type
__MINGW_EXTENSION typedef __int64 ssize_t;
^
C:/TDM-GCC-64/x86_64-w64-mingw32/include/crtdefs.h:52:9: error: 'size_t' does not name a type
typedef size_t rsize_t;
^
C:/TDM-GCC-64/x86_64-w64-mingw32/include/crtdefs.h:62:1: error: '__MINGW_EXTENSION' does not name a type
__MINGW_EXTENSION typedef __int64 intptr_t;
^
C:/TDM-GCC-64/x86_64-w64-mingw32/include/crtdefs.h:75:1: error: '__MINGW_EXTENSION' does not name a type
__MINGW_EXTENSION typedef unsigned __int64 uintptr_t;
^
C:/TDM-GCC-64/x86_64-w64-mingw32/include/crtdefs.h:88:1: error: '__MINGW_EXTENSION' does not name a type
__MINGW_EXTENSION typedef __int64 ptrdiff_t;
^
C:/TDM-GCC-64/x86_64-w64-mingw32/include/crtdefs.h:123:1: error: '__MINGW_EXTENSION' does not name a type
__MINGW_EXTENSION typedef __int64 __time64_t;
^
C:/TDM-GCC-64/x86_64-w64-mingw32/include/crtdefs.h:138:9: error: '__time64_t' does not name a type
typedef __time64_t time_t;
^
In file included from C:/TDM-GCC-64/lib/gcc/x86_64-w64-mingw32/5.1.0/include/stddef.h:1:0,
from C:\CodeBlocks\MinGW\include/wchar.h:26,
from C:/TDM-GCC-64/lib/gcc/x86_64-w64-mingw32/5.1.0/include/c++/cwchar:44,
from C:/TDM-GCC-64/lib/gcc/x86_64-w64-mingw32/5.1.0/include/c++/bits/postypes.h:40,
from C:/TDM-GCC-64/lib/gcc/x86_64-w64-mingw32/5.1.0/include/c++/iosfwd:40,
from C:/TDM-GCC-64/lib/gcc/x86_64-w64-mingw32/5.1.0/include/c++/ios:38,
from C:/TDM-GCC-64/lib/gcc/x86_64-w64-mingw32/5.1.0/include/c++/ostream:38,
from C:/TDM-GCC-64/lib/gcc/x86_64-w64-mingw32/5.1.0/include/c++/iostream:39,
from D:\test7\main.cpp:1:
C:/TDM-GCC-64/x86_64-w64-mingw32/include/stddef.h:26:18: error: 'uintptr_t' does not name a type
_CRTIMP extern uintptr_t __cdecl __threadhandle(void);
^
In file included from C:/TDM-GCC-64/lib/gcc/x86_64-w64-mingw32/5.1.0/include/c++/cwchar:44:0,
from C:/TDM-GCC-64/lib/gcc/x86_64-w64-mingw32/5.1.0/include/c++/bits/postypes.h:40,
from C:/TDM-GCC-64/lib/gcc/x86_64-w64-mingw32/5.1.0/include/c++/iosfwd:40,
from C:/TDM-GCC-64/lib/gcc/x86_64-w64-mingw32/5.1.0/include/c++/ios:38,
from C:/TDM-GCC-64/lib/gcc/x86_64-w64-mingw32/5.1.0/include/c++/ostream:38,
from C:/TDM-GCC-64/lib/gcc/x86_64-w64-mingw32/5.1.0/include/c++/iostream:39,
from D:\test7\main.cpp:1:
C:\CodeBlocks\MinGW\include/wchar.h:105:59: error: 'size_t' has not been declared
_CRTIMP int __cdecl __MINGW_NOTHROW _snwprintf (wchar_t*, size_t, const wchar_t*, ...);
^
C:\CodeBlocks\MinGW\include/wchar.h:108:60: error: 'size_t' has not been declared
_CRTIMP int __cdecl __MINGW_NOTHROW _vsnwprintf (wchar_t*, size_t, const wchar_t*, __VALIST);
^
C:\CodeBlocks\MinGW\include/wchar.h:146:50: error: 'size_t' has not been declared
int __cdecl __MINGW_NOTHROW snwprintf (wchar_t*, size_t, const wchar_t*, ...);
^
C:\CodeBlocks\MinGW\include/wchar.h:147:51: error: 'size_t' has not been declared
int __cdecl __MINGW_NOTHROW vsnwprintf (wchar_t*, size_t, const wchar_t*, __VALIST);
^
C:\CodeBlocks\MinGW\include/wchar.h:178:80: error: 'size_t' has not been declared
_CRTIMP wchar_t* __cdecl __MINGW_NOTHROW _wfullpath (wchar_t*, const wchar_t*, size_t);
^
C:\CodeBlocks\MinGW\include/wchar.h:207:9: error: 'size_t' does not name a type
_CRTIMP size_t __cdecl __MINGW_NOTHROW wcsftime (wchar_t*, size_t, const wchar_t*, const struct tm*);
^
C:\CodeBlocks\MinGW\include/wchar.h:222:9: error: 'size_t' does not name a type
_CRTIMP size_t __cdecl __MINGW_NOTHROW wcscspn (const wchar_t*, const wchar_t*);
^
C:\CodeBlocks\MinGW\include/wchar.h:224:9: error: 'size_t' does not name a type
_CRTIMP size_t __cdecl __MINGW_NOTHROW wcslen (const wchar_t*);
^
C:\CodeBlocks\MinGW\include/wchar.h:225:77: error: 'size_t' has not been declared
_CRTIMP wchar_t* __cdecl __MINGW_NOTHROW wcsncat (wchar_t*, const wchar_t*, size_t);
^
C:\CodeBlocks\MinGW\include/wchar.h:226:77: error: 'size_t' has not been declared
_CRTIMP int __cdecl __MINGW_NOTHROW wcsncmp(const wchar_t*, const wchar_t*, size_t);
^
C:\CodeBlocks\MinGW\include/wchar.h:227:76: error: 'size_t' has not been declared
_CRTIMP wchar_t* __cdecl __MINGW_NOTHROW wcsncpy(wchar_t*, const wchar_t*, size_t);
^
C:\CodeBlocks\MinGW\include/wchar.h:230:9: error: 'size_t' does not name a type
_CRTIMP size_t __cdecl __MINGW_NOTHROW wcsspn(const wchar_t*, const wchar_t*);
^
C:\CodeBlocks\MinGW\include/wchar.h:233:9: error: 'size_t' does not name a type
_CRTIMP size_t __cdecl __MINGW_NOTHROW wcsxfrm(wchar_t*, const wchar_t*, size_t);
^
C:\CodeBlocks\MinGW\include/wchar.h:298:1: error: 'size_t' does not name a type
size_t __cdecl __MINGW_NOTHROW mbrlen(const char * __restrict__, size_t,
^
C:\CodeBlocks\MinGW\include/wchar.h:300:1: error: 'size_t' does not name a type
size_t __cdecl __MINGW_NOTHROW mbrtowc(wchar_t * __restrict__, const char * __restrict__,
^
C:\CodeBlocks\MinGW\include/wchar.h:302:1: error: 'size_t' does not name a type
size_t __cdecl __MINGW_NOTHROW mbsrtowcs(wchar_t * __restrict__, const char ** __restrict__,
^
C:\CodeBlocks\MinGW\include/wchar.h:304:1: error: 'size_t' does not name a type
size_t __cdecl __MINGW_NOTHROW wcrtomb(char * __restrict__, wchar_t,
^
C:\CodeBlocks\MinGW\include/wchar.h:306:1: error: 'size_t' does not name a type
size_t __cdecl __MINGW_NOTHROW wcsrtombs(char * __restrict__, const wchar_t ** __restrict__,
^
C:\CodeBlocks\MinGW\include/wchar.h:320:62: error: 'size_t' has not been declared
wchar_t* __cdecl __MINGW_NOTHROW wmemset(wchar_t *, wchar_t, size_t);
^
C:\CodeBlocks\MinGW\include/wchar.h:321:67: error: 'size_t' has not been declared
wchar_t* __cdecl __MINGW_NOTHROW wmemchr(const wchar_t*, wchar_t, size_t);
^
C:\CodeBlocks\MinGW\include/wchar.h:322:46: error: 'size_t' has not been declared
int wmemcmp(const wchar_t*, const wchar_t *, size_t);
^
C:\CodeBlocks\MinGW\include/wchar.h:325:5: error: 'size_t' has not been declared
size_t);
^
C:\CodeBlocks\MinGW\include/wchar.h:326:73: error: 'size_t' has not been declared
wchar_t* __cdecl __MINGW_NOTHROW wmemmove(wchar_t* s1, const wchar_t *, size_t);
^
In file included from C:/TDM-GCC-64/lib/gcc/x86_64-w64-mingw32/5.1.0/include/c++/bits/postypes.h:40:0,
from C:/TDM-GCC-64/lib/gcc/x86_64-w64-mingw32/5.1.0/include/c++/iosfwd:40,
from C:/TDM-GCC-64/lib/gcc/x86_64-w64-mingw32/5.1.0/include/c++/ios:38,
from C:/TDM-GCC-64/lib/gcc/x86_64-w64-mingw32/5.1.0/include/c++/ostream:38,
from C:/TDM-GCC-64/lib/gcc/x86_64-w64-mingw32/5.1.0/include/c++/iostream:39,
from D:\test7\main.cpp:1:
C:/TDM-GCC-64/lib/gcc/x86_64-w64-mingw32/5.1.0/include/c++/cwchar:151:11: error: '::mbrlen' has not been declared
using ::mbrlen;
^
C:/TDM-GCC-64/lib/gcc/x86_64-w64-mingw32/5.1.0/include/c++/cwchar:152:11: error: '::mbrtowc' has not been declared
using ::mbrtowc;
^
C:/TDM-GCC-64/lib/gcc/x86_64-w64-mingw32/5.1.0/include/c++/cwchar:154:11: error: '::mbsrtowcs' has not been declared
using ::mbsrtowcs;
^
C:/TDM-GCC-64/lib/gcc/x86_64-w64-mingw32/5.1.0/include/c++/cwchar:158:11: error: '::swprintf' has not been declared
using ::swprintf;
^
C:/TDM-GCC-64/lib/gcc/x86_64-w64-mingw32/5.1.0/include/c++/cwchar:167:11: error: '::vswprintf' has not been declared
using ::vswprintf;
^
C:/TDM-GCC-64/lib/gcc/x86_64-w64-mingw32/5.1.0/include/c++/cwchar:176:11: error: '::wcrtomb' has not been declared
using ::wcrtomb;
^
C:/TDM-GCC-64/lib/gcc/x86_64-w64-mingw32/5.1.0/include/c++/cwchar:181:11: error: '::wcscspn' has not been declared
using ::wcscspn;
^
C:/TDM-GCC-64/lib/gcc/x86_64-w64-mingw32/5.1.0/include/c++/cwchar:182:11: error: '::wcsftime' has not been declared
using ::wcsftime;
^
C:/TDM-GCC-64/lib/gcc/x86_64-w64-mingw32/5.1.0/include/c++/cwchar:183:11: error: '::wcslen' has not been declared
using ::wcslen;
^
C:/TDM-GCC-64/lib/gcc/x86_64-w64-mingw32/5.1.0/include/c++/cwchar:187:11: error: '::wcsrtombs' has not been declared
using ::wcsrtombs;
^
C:/TDM-GCC-64/lib/gcc/x86_64-w64-mingw32/5.1.0/include/c++/cwchar:188:11: error: '::wcsspn' has not been declared
using ::wcsspn;
^
C:/TDM-GCC-64/lib/gcc/x86_64-w64-mingw32/5.1.0/include/c++/cwchar:196:11: error: '::wcsxfrm' has not been declared
using ::wcsxfrm;
^
In file included from C:/TDM-GCC-64/lib/gcc/x86_64-w64-mingw32/5.1.0/include/c++/ios:40:0,
from C:/TDM-GCC-64/lib/gcc/x86_64-w64-mingw32/5.1.0/include/c++/ostream:38,
from C:/TDM-GCC-64/lib/gcc/x86_64-w64-mingw32/5.1.0/include/c++/iostream:39,
from D:\test7\main.cpp:1:
C:/TDM-GCC-64/lib/gcc/x86_64-w64-mingw32/5.1.0/include/c++/bits/char_traits.h: In static member function 'static std::size_t std::char_traits<wchar_t>::length(const char_type*)':
C:/TDM-GCC-64/lib/gcc/x86_64-w64-mingw32/5.1.0/include/c++/bits/char_traits.h:334:26: error: 'wcslen' was not declared in this scope
{ return wcslen(__s); }
^
In file included from C:/TDM-GCC-64/lib/gcc/x86_64-w64-mingw32/5.1.0/include/c++/bits/char_traits.h:380:0,
from C:/TDM-GCC-64/lib/gcc/x86_64-w64-mingw32/5.1.0/include/c++/ios:40,
from C:/TDM-GCC-64/lib/gcc/x86_64-w64-mingw32/5.1.0/include/c++/ostream:38,
from C:/TDM-GCC-64/lib/gcc/x86_64-w64-mingw32/5.1.0/include/c++/iostream:39,
from D:\test7\main.cpp:1:
C:/TDM-GCC-64/lib/gcc/x86_64-w64-mingw32/5.1.0/include/c++/cstdint: At global scope:
C:/TDM-GCC-64/lib/gcc/x86_64-w64-mingw32/5.1.0/include/c++/cstdint:64:11: error: '::intptr_t' has not been declared
using ::intptr_t;
^
C:/TDM-GCC-64/lib/gcc/x86_64-w64-mingw32/5.1.0/include/c++/cstdint:82:11: error: '::uintptr_t' has not been declared
using ::uintptr_t;
^
In file included from C:/TDM-GCC-64/lib/gcc/x86_64-w64-mingw32/5.1.0/include/c++/bits/localefwd.h:42:0,
from C:/TDM-GCC-64/lib/gcc/x86_64-w64-mingw32/5.1.0/include/c++/ios:41,
from C:/TDM-GCC-64/lib/gcc/x86_64-w64-mingw32/5.1.0/include/c++/ostream:38,
from C:/TDM-GCC-64/lib/gcc/x86_64-w64-mingw32/5.1.0/include/c++/iostream:39,
from D:\test7\main.cpp:1:
C:/TDM-GCC-64/lib/gcc/x86_64-w64-mingw32/5.1.0/include/c++/cctype:87:11: error: '::isblank' has not been declared
using ::isblank;
^
In file included from C:\CodeBlocks\MinGW\include/pthread.h:66:0,
from C:/TDM-GCC-64/lib/gcc/x86_64-w64-mingw32/5.1.0/include/c++/x86_64-w64-mingw32/bits/gthr-default.h:34,
from C:/TDM-GCC-64/lib/gcc/x86_64-w64-mingw32/5.1.0/include/c++/x86_64-w64-mingw32/bits/gthr.h:148,
from C:/TDM-GCC-64/lib/gcc/x86_64-w64-mingw32/5.1.0/include/c++/ext/atomicity.h:35,
from C:/TDM-GCC-64/lib/gcc/x86_64-w64-mingw32/5.1.0/include/c++/bits/ios_base.h:39,
from C:/TDM-GCC-64/lib/gcc/x86_64-w64-mingw32/5.1.0/include/c++/ios:42,
from C:/TDM-GCC-64/lib/gcc/x86_64-w64-mingw32/5.1.0/include/c++/ostream:38,
from C:/TDM-GCC-64/lib/gcc/x86_64-w64-mingw32/5.1.0/include/c++/iostream:39,
from D:\test7\main.cpp:1:
C:\CodeBlocks\MinGW\include/process.h:64:9: error: 'intptr_t' does not name a type
_CRTIMP intptr_t __cdecl __MINGW_NOTHROW _execl (const char*, const char*, ...);
^
C:\CodeBlocks\MinGW\include/process.h:65:9: error: 'intptr_t' does not name a type
Process terminated with status 1 (0 minute(s), 1 second(s))
50 error(s), 0 warning(s) (0 minute(s), 1 second(s))