• C

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 ?
zizi21Asked:
Who is Participating?
 
Infinity08Commented:
What does the cpluscplus.h file contain ?
Is the code you posted the complete code ?
What's the full error message (including line number) ?
0
 
zizi21Author Commented:
hi, sorry, i found the mistake...i misnamed the function in my cpp file. thanks for looking into this.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.