--- depbuild.cpp.old 2008-10-08 21:58:01.000000000 +0200 +++ depbuild.cpp.new 2008-10-08 21:59:04.000000000 +0200 @@ -131,7 +131,15 @@ void dependency_calculate_asm(const char *filename) { string command = nasm + " " + nflags + " -M " + filename; - system(command.c_str()); + FILE *fp = popen(command.c_str(), "r"); + if (fp) + { + char line[256]; + while (fgets(line, sizeof(line), fp)) //Process all lines of output + { + cout << line; + } + } } void dependency_calculate_psr(const char *filename)