IT Community - Software Programming, Web Development and Technical Support

Linking a C++ program to C functions

This is a discussion on Linking a C++ program to C functions within the C and C++ Programming forums, part of the Software Development category; Linking a C++ program to C functions By using the extern "C" linkage specification around the C function ...


Go Back   IT Community - Software Programming, Web Development and Technical Support > Software Development > C and C++ Programming

Register FAQ Members List Calendar Mark Forums Read
  #1 (permalink)  
Old 09-21-2007, 03:34 AM
vijayanand vijayanand is offline
D-Web Analyst
 
Join Date: Feb 2007
Posts: 293
vijayanand is on a distinguished road
Default Linking a C++ program to C functions

Linking a C++ program to C functions

By using the extern "C" linkage specification around the C function declarations.
Programmers should know about mangled function names and type-safe linkages. Then they should explain how the extern "C" linkage specification statement turns that feature off during compilation so that the linker properly links function calls to C functions. Another acceptable answer is "I don't know. We never had to do that." Merely describing what a linker does indicates that the programmer does not understand the issue that underlies the question.
__________________

J.Vijayanand
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
What are Virtual Functions? How to implement virtual functions in "C"? Sabari C and C++ Programming 4 09-10-2007 11:35 PM
How to launch Real Player program through my j2me midlet program? itbarota J2ME 1 07-25-2007 11:39 PM
when the program is executing,how to stop the program and open the cmd window... bluesky C# Programming 1 07-25-2007 05:51 AM
How can I invoke another program from C? Sabari C and C++ Programming 1 07-17-2007 04:05 AM
chat program pranky C and C++ Programming 0 02-24-2007 01:02 AM


All times are GMT -7. The time now is 09:30 PM.


Copyright ©2004 - 2007, DiscussWeb. All Rights Reserved.

SEO by vBSEO 3.0.0