X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f From: Hans-Bernhard Broeker Newsgroups: comp.os.msdos.djgpp Subject: Re: sound(), delay(), etcoetera Date: 20 Mar 2006 13:42:24 GMT Lines: 47 Message-ID: <487pq0Fif35hU3@news.dfncis.de> References: <483gjvFh8q8aU1 AT news DOT dfncis DOT de> X-Trace: news.dfncis.de 5OQCPy6KoYhXYUnfs8d4lgXvDR1YGF0XX2IDowqlxFIy/F1hDEQ7aEXMpU X-Orig-Path: not-for-mail To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Fausto Arinos Barbuto wrote: > I sent your code to a friend in the US who has Borland's C/C++ > compiler. Which one, and how did he run it? Borland has made about a dozen versions of C/C++ compilers in their time, supporting various target platforms > He compiled it with minor changes, zipped the executable and sent it > to me. Sorry, but I'll have to ask you leave the decision whether those changes were minor or major to me. IOW: I want to see that modified source. So please post the actual source here, and the BCC version and command line used to build it. > but it can indeed beep! Don't know what to think anymore -- > maybe I found a little bug in GCC? Unlikely to the point of not being worth consideration. That program is way too simple for GCC to have a chance at miscompiling it. No, this really must be a platform difference issue. For the record: I did this on a laptop running XP home SP2, using DJGPP. And with this minor modification, OpenWatcom produces beeps, too: #ifdef __DJGPP__ #include #endif #include int main() { sound(1000); delay(1000); nosound(); return 0; } wcl -l=dos -bt=dos beep.c wcl386 -l=dos4g -bt=dos beep.c -- Hans-Bernhard Broeker (broeker AT physik DOT rwth-aachen DOT de) Even if all the snow were burnt, ashes would remain.