How do you connect a c++ program to c functions?, C/C++ Programming

A: Using the extern "C" linkage specification around the C function declarations.

Programmers must know about mangled function names and type-safe linkages. After that they must explain how the extern "C" linkage specification statement turns that feature off throughout compilation so that the linker correctly links function calls to C functions.

 

Posted Date: 3/20/2013 3:38:10 AM | Location : United States







Related Discussions:- How do you connect a c++ program to c functions?, Assignment Help, Ask Question on How do you connect a c++ program to c functions?, Get Answer, Expert's Help, How do you connect a c++ program to c functions? Discussions

Write discussion on How do you connect a c++ program to c functions?
Your posts are moderated
Related Questions
What is abstraction? - Simplified view of an object in user's language is termed as abstraction. - It's the simplest, well-defined interface to an object in OO and C++ which

To implement a back account system for new users

A student apears in exam of math, physics, and chemistry. Write a program to find the total marks aa student has aqueired find the average.

Aim: To implement program to calculate area of cube using inline function. Code: inline void area_cube(float side) {             float area;             are

C Program for MAXIMUM NO, MINIMUM NO AND SORTING   void main() {           int i,j,t;           int a[5];           clrscr();           for(i=0;i

What is Virtual Destructor? Describe it.

write a function named "fact"that takes one integer arguments,call them "num" and returns as ..............


In this lab, please complete a given program to perform the following tasks: 1. Allocate a 10 by 5 2D byte array dynamically. The way of allocation must be consistent with pag

creating a system having five process from p0 to p4 and five resource types. create the need matrix use the safe algorithm to test if the system is in safe mode.