Hey there, I have a small problem with compiling and linking with the command prompt(windows xp). Every .c file and .cpp file I compile or link has to be in the same directory as gcc (C:\Program Files\gcc\bin) and its quite hard to keep track of my files among all those gcc related files and its annoying too:). My question is how do I compile a file in a desktop folder using the command prompt?
usually I go:
c:\program files\gcc\bin> gcc -c test.c test2.c
when my source files are in bin.
What command do I use to compile When a file is situated elsewhere.