A simplified version of my code is:
#include "externalstuff.h"
void main(){
printf("Hello?");
/* make calls to externalstuff
....
*/
}
I did not write externalstuff.h
, so I'm not sure what is going on there exactly.
The calls to externalstuff
take some time to execute. I would expect that "Hello?"
would get printed, then I would have to wait for those external calls to finish, then my program would end. But what seems to be happening is that "Hello?"
only gets printed right before my program ends, after a long wait for the externalstuff
.
Is it possible that something in externalstuff.h
is delaying this output? If so, how?
I'm using gcc in cygwin on Widnows 7.