Link to home
Start Free TrialLog in
Avatar of zizi21
zizi21

asked on

urgent:syntax error before string constant

hi,

i have c ++ function that i am trying to call in main. which is a c file.

this is what i did:

extern "C"
{
        #include "cpluscplus.h"
        void
        cplus_init();

}

int main()

and then, i got this error..could anyone pls help ?
ASKER CERTIFIED SOLUTION
Avatar of Infinity08
Infinity08
Flag of Belgium image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of zizi21
zizi21

ASKER

hi, sorry, i found the mistake...i misnamed the function in my cpp file. thanks for looking into this.