in reply to XS problems on win32

Isn't stopwatch::new() C++ syntax, but your file is called stopwatch.c, which by default will be compiled as a C rather than C++ source file. I don't see any switch (like: /TP) that would cause it to be otherwise.

I don't have a file called cstudio(.h?) installed on my version of the compiler, so I can't look inside to see if that also contains C++ syntax. If it does, and it is included from a .c source file, that would perhaps explain the syntax errors?


Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
Lingua non convalesco, consenesco et abolesco. -- Rule 1 has a caveat! -- Who broke the cabal?
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.

Replies are listed 'Best First'.
Re^2: XS problems on win32
by talwyn (Monk) on Dec 11, 2005 at 17:43 UTC
    In c:\program files\Microsoft Visual Studio .NET 2003\Vc7\include

    I believe its a wrapper to allow C routines to have access to stdio.