Confusing the compiler

Sometimes it’s real fun to see how easily you can confuse the compiler. In the error below, function is a macro that takes three parameters:

filename.c(453) : error C2220: warning treated as error - no 'object' file generated
filename.c(453) : warning C4013: 'function' undefined; assuming extern returning int
filename.c(466) : error C2064: term does not evaluate to a function taking 279509856 arguments

I don’t know where it got the idea that I typed 279,509,856 parameters, but I sure didn’t take the time to do that! 😉

About rlc

Software Analyst in embedded systems and C++, C and VHDL developer, I specialize in security, communications protocols and time synchronization, and am interested in concurrency, generic meta-programming and functional programming and their practical applications. I take a pragmatic approach to project management, focusing on the management of risk and scope. I have over two decades of experience as a software professional and a background in science.
This entry was posted in Uncategorized and tagged . Bookmark the permalink.