?
Solved

urgent:syntax error before string constant

Posted on 2009-02-11
2
Medium Priority
?
851 Views
Last Modified: 2012-05-06
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 ?
0
Comment
Question by:zizi21
2 Comments
 
LVL 53

Accepted Solution

by:
Infinity08 earned 2000 total points
ID: 23610016
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
 

Author Comment

by:zizi21
ID: 23610029
hi, sorry, i found the mistake...i misnamed the function in my cpp file. thanks for looking into this.
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This tutorial is posted by Aaron Wojnowski, administrator at SDKExpert.net.  To view more iPhone tutorials, visit www.sdkexpert.net. This is a very simple tutorial on finding the user's current location easily. In this tutorial, you will learn ho…
Summary: This tutorial covers some basics of pointer, pointer arithmetic and function pointer. What is a pointer: A pointer is a variable which holds an address. This address might be address of another variable/address of devices/address of fu…
The goal of this video is to provide viewers with basic examples to understand opening and writing to files in the C programming language.
The goal of this video is to provide viewers with basic examples to understand how to create, access, and change arrays in the C programming language.
Suggested Courses

850 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