Linux, C++ and the extern "C" keyword

Furmanek, Greg Greg.Furmanek@hit.cendant.com
Mon, 15 May 2000 10:53:16 -0400


What is your question in the first paragraph??


All "C" functions are available to the C++ programming language.
You should be able to include C header files without any problems.
You do not have to use the extern on them.

You would use extern if you do not have header files to get the
prototypes from.



The Wolf.



-----Original Message-----
From: Lucas Vogel [mailto:lvogel@exponent.com]
Sent: Sunday, May 14, 2000 7:49 PM
To: 'plug-discuss@lists.plug.phoenix.az.us'
Subject: Linux, C++ and the extern "C" keyword


I am reading a book on C++ and I have a question on how some of it might
apply in the case of Linux. I believe the author of the book('Practical C++'
by Rob McGregor) bases all of his work and examples on the Windows platform,
though it isn't a windows-specific book. 

I also have another book that serves as an introduction to Linux
programming, with all of the examples being done in C. The book describes of
the many C-specific function calls that are available for the Linux
platform.

My question is, if I wanted to write an application on Linux using these
C-specific function calls, would I have to do anything with "extern 'C'" for
the function calls, or would I be able to just #include the appropriate
header files and rock out from there?

Thanks
Lucas Vogel

_______________________________________________
Plug-discuss mailing list  -  Plug-discuss@lists.PLUG.phoenix.az.us
http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss