delorie.com/archives/browse.cgi | search |
From: | turrican AT sysop DOT com |
Newsgroups: | comp.os.msdos.djgpp |
Subject: | Problem :) |
Date: | Tue, 23 Sep 1997 09:47:13 +0300 |
Organization: | Hellas on Line - Pipex Intl |
Lines: | 48 |
Message-ID: | <342765F1.658B@sysop.com> |
NNTP-Posting-Host: | pluto.hol.gr |
Mime-Version: | 1.0 |
Cache-Post-Path: | pluto.hol.gr!unknown AT port15 DOT ath10 DOT ppp DOT hol DOT gr |
To: | djgpp AT delorie DOT com |
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
Hello all :) I have a problem with a simple little program. #include <stdio.h> main(); { printf("This is the Start"); delay("1000"); printf("... and this is the End"); return 0; } the problem is that when I m running this prog the command delay is executed first!?! and when delay finished I see the two printf together at the end!!! Why this is happening??? I thought that dgjpp executes in order... I noticed also that the same thing happend to linux gcc... I have also borland's c++ but here this program works fine! How can I solve that? Is this a bug? I send before an email to dj Delorie and said to do this thing > printf("This is the Start"); > Add \n or fflush(stdout) here. Output is buffered and not written > until the end of line. but this is not good if I have to do this thing for every printf and delay I have to use in my program... and why in borland's c++ works fine??????? Also I want to ask another two questions. 1) Allegro is ported for other languages? or is only for djgpp? 2) I m looking for a list that contains all aditional libraries for djgpp with descriptions for each one so I can choose the best for my needs. thanks a lot Bill
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |