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
There is a pebble merchant. He sells the pebbles, that are used for shining the floor. His main duty is to take the length of the room’s sides. But he sometimes mistakes doing that

- Create a program that uses at least two functions that will be called from your main. This program is a number game program that asks for parts of your phone and after manipulati

i want software to calculate heating or use thermodynamic equation , pleas help me

find the area of a curve y=f(x) between x=a and x=b integrate f(x) between limits a and b   #include float start_point, /* GLOBAL VARIABLES */

Bubble sort C program: Write a program to define a bubble sort. void main()  {   clrscr();   int a[100],ch,n;   cout   cin>>n;   for (int i=0;i

Program is to append the contents of one file to another: void main()    {   clrscr();   fstream file1,file2;   char st1[13],st2[13];/* 13 because a filename canno

Write a ''C'' program to accept any 3 digit integer number from the keyboard and display the word equivalent representation of the given number

A company needs 200 pencils per year . you cannot simply use this price as the cost of pencils two years from now. Because of inflation the cost is likely to be higher than it is


Write a program that finds the minimum total number of shelves, including the initial one required for this loading process