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

Top Page
Attachments:
Message as email
+ (text/plain)
Delete this message
Reply to this message
Author: LucasVogellvogel@exponent.com
Date:  
Subject: Linux, C++ and the extern "C" keyword
I only had the one question down at the bottom. Your answer was all I was
looking for.

Thanks!

-----Original Message-----
From: Furmanek, Greg [mailto:Greg.Furmanek@hit.cendant.com]
Sent: Monday, May 15, 2000 7:53 AM
To: ''
Subject: RE: Linux, C++ and the extern "C" keyword


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: ''
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 -
http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss

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