urgent:syntax error before string constant

Posted on 2009-02-11
Last Modified: 2012-05-06

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"


int main()

and then, i got this error..could anyone pls help ?
Question by:zizi21
    LVL 53

    Accepted Solution

    What does the cpluscplus.h file contain ?
    Is the code you posted the complete code ?
    What's the full error message (including line number) ?

    Author Comment

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

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Find Ransomware Secrets With All-Source Analysis

    Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

    An Outlet in Cocoa is a persistent reference to a GUI control; it connects a property (a variable) to a control.  For example, it is common to create an Outlet for the text field GUI control and change the text that appears in this field via that Ou…
    Windows programmers of the C/C++ variety, how many of you realise that since Window 9x Microsoft has been lying to you about what constitutes Unicode ( They will have you believe that Unicode requires you to use…
    Video by: Grant
    The goal of this video is to provide viewers with basic examples to understand and use for-loops in the C programming language.
    The goal of this video is to provide viewers with basic examples to understand opening and reading files in the C programming language.

    779 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    12 Experts available now in Live!

    Get 1:1 Help Now