Weird error message
I am getting this error message with MSVC6.
c:\program files\microsoft visual studio\vc98\include\math.h(514) : error C2894: templates cannot be declared to have 'C' linkage
It points to the standard math header, math.h. I have no modified the header, I have no clue why I get that error message. Any ideas?
I searched the web for a similair message, but couldn't find any clear reason for it.
I figured it out. It was a problem in the library I was using.. if you include math.h from a C header while it's wrapped in extern C, and then use that header from a C++ program, you get problems.