Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

how to handle C++ forward referencing in C

Status
Not open for further replies.

anand102

Programmer
Aug 2, 2001
11
US
hi i am converting C++ code in to C and trying to keep it close to c++ as much as
possible.

I have a class declaration in a.h as :

class B ;

class A
{

B xyz();
};


which is a case of forward referecing. i have conveerted A and B to structs. thats ok.
but how to handle this forward referencing in C ??

any clues ??

thanks


 
can you be a little more explicitly? My advice is you to compille C++ code in C++. Also make in C++ the functions of interface with you code in C. In C only use functions declare as extern "C" and implemented in C++. John Fill
1c.bmp


ivfmd@mail.md
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top