From: alaric AT oasis DOT novia DOT net (Alaric Dailey) Newsgroups: comp.os.msdos.djgpp Subject: Re: hello world Date: 25 Feb 1997 11:11:20 GMT Organization: Novia Internetworking <> 28.8kbps dialup; 402/390-2NET Lines: 69 Message-ID: <5euhco$o7m@nntp.novia.net> References: <5euh43$o7m AT nntp DOT novia DOT net> NNTP-Posting-Host: oasis.novia.net To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Damn I feel stoopid - foo() and out() are supposed to be the same function. (what can I say I have been at work since 7pm and it is now 5am!) Alaric Dailey (alaric AT oasis DOT novia DOT net) wrote: : Natarajan Krishnaswami (nxk3 AT dante DOT student DOT cwru DOT edu) wrote: : : On Thu, 13 Feb 1997 14:46:33 GMT, Eli Zaretskii wrote: : : > : : >On Thu, 13 Feb 1997, Thomas Demmer wrote: : : > : : >> And under C++ prototypes are required, otherwise an error should be : : >> generated : : > : : >Is this also true for functions which have been declared extern "C"? : : : : How would one declare a function extern "C" without providing a : : prototype? : How about the following, no prototypes(per se) and still extern "C" : : #include : : #ifdef __cplusplus : extern "C" { : #endif : : void foo(void) : { : puts("Hello World!); : } : : #ifdef __cplusplus : } : #endif : : int main(void) : { : out(); : : return 0; : } : : : -- : --Alaric Dailey (alaric AT novia DOT net) :-> : : ############################################################################# : Failing Tao, man resorts to Virtue. : Failing Virtue, man resorts to humanity. : Failing humanity, man resorts to morality. : Failing morality, man resorts to ceremony. : Now, ceremony is the merest husk of faith and loyalty; : It is the beginning of all confusion and disorder. : : -Lao Tzu -- --Alaric Dailey (alaric AT novia DOT net) :-> ############################################################################# Failing Tao, man resorts to Virtue. Failing Virtue, man resorts to humanity. Failing humanity, man resorts to morality. Failing morality, man resorts to ceremony. Now, ceremony is the merest husk of faith and loyalty; It is the beginning of all confusion and disorder. -Lao Tzu