I'm using the Dev-Bloodshed compiler and I have a few questions:

1) Why won't the dos window stay open unless I put in a
system("PAUSE"); before return 0;? Is there a way to prevent
it from closing without an automatic "press any key to
continue" prompt like MSV6?

2) How do I get it to link correctly with other files? It works in a
MSV6 workspace, but not in this one. See, I;ve made another
C++ file to hold a quick clear screen command, gotoxy
command for coord., and a color function for the text and bg.
In, MSV6, they link correctly, but in Bloodshed, I just get
'unreference variable' and other such errors. Am I doing
something wrong?