> Home > Computer Q & A

I had this really weird compile error the other day.  I thought I'd post it here in case you ever get the same error, and decide to Google the error message.  The problem was I forget a pair of parenthesis when writing my constructor for a class.  Here's the example:

sqlToken.cpp:

ctoken::ctoken
{
Wchar = NULL;
Int = 0;
Double = 0;
type = TOK_NULL;
error = length = 0;
precedence = 0;
};

--------------------Configuration: Collector - Win32 Debug--------------------
Compiling...
sqlToken.cpp
c:\dev\collector\sqltoken.cpp(127) : fatal error C1001: INTERNAL COMPILER
ERROR
         (compiler file 'msc1.cpp', line 1794)<
         Please choose the Technical
Support command on the Visual C++
Help menu, or open the
Technical Support help file for more
information
Error executing xicl6.exe.
Creating browse info file...
BSCMAKE: error BK1506 : cannot open file '.\Debug\sqlToken.sbr': No such
file or directory
Error executing bscmake.exe.

Collector.exe - 2 error(s), 0 warning(s)

Caused by
ctoken::ctoken()
{
Wchar = NULL;
Int = 0;
Double = 0;
type = TOK_NULL;
error = length = 0;
precedence = 0;
};