What is an implicit extern "C" declaration?

A

Andy

Hi,

What is implicit extern "C" declaration in C++?
Can anybody give me an example?

Thanks a lot!

Andy
 
M

Matthew

What is implicit extern "C" declaration in C++?
Can anybody give me an example?

It's a linkage directive. It tells the compiler that a function has
been written in a different programming language (i.e. C) and that
different requirements apply (e.g the function's name will not be
encoded like a regular C++ function). There's a good example here that
applies to writing dlls. For more see Lippman.
http://www.functionx.com/visualc/libraries/staticdll.htm
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,733
Messages
2,569,440
Members
44,832
Latest member
GlennSmall

Latest Threads

Top