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
A: No. Syntax wise it is permitted. But then the function is no longer Inline. Since the compiler will never know how deep the recursion is at compilation time.

Program of swapping two varibales: void swap(int *, int *);   // This is swap's prototype int main() {                 int x = 5, y = 7;                 swap(&x, &

Need FTP Upload and MySQL Project Description: We are in need of an executable application that will be execute as a scheduled task on Windows Server 2008 R2 and can perform

Is it possible to have Virtual Constructor? If yes, how? If not, Why not possible?

How do I create two functions: one to put a collection of criteria into normal form, and one to compute the score of a document. A collection of criteria will be represented using

Byteland county is very famous for luminous jewels. Luminous jewels are used in making beautiful necklaces. A necklace consists of various luminous jewels of particular colour. Nec


Byteland county is very famous for luminous jewels. Luminous jewels are used in making beautiful necklaces. A necklace consists of various luminous jewels of particular colour. Nec

Create a C language code, only one program, to implement the following task. Task: Write C code for a program that implements a digital clock (HH:MM:SS). The clock inclu

Differentiate between a template class and class template in C++? Ans) Template class: A generic definition or a parameterized class not instantiated until the client gives the