From: alaric AT oasis DOT novia DOT net (Alaric Dailey) Newsgroups: comp.os.msdos.djgpp Subject: Re: hello world Date: 25 Feb 1997 11:06:43 GMT Organization: Novia Internetworking <> 28.8kbps dialup; 402/390-2NET Lines: 49 Message-ID: <5euh43$o7m@nntp.novia.net> References: NNTP-Posting-Host: oasis.novia.net To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp 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