Mail Archives: djgpp/1997/06/07/21:33:39
Shen Renhui wrote:
>
> Hi,I've just gotten djgpp and was stunned by the large number of files.
> I'll try and go thru the FAQ but right now I need to know which file is the
> compiler and which is the linker and which file(if there is) a compiler
> that automatically links the files.
The 'compiler' consists of more than one executables. Use gcc like this:
gcc -o myexe.exe myfile.c -lmylib .
It will compile and link the code for you
myexe.exe should be replaced with your executable name
myfile.c should be replaced with your source file name
If you need any libs put them like that: -llibname (for allegro:
-lalleg).
You should get the readme.1st for more detailed info.
> Thanks.
> Kenny
--
http://www.cam.org/~tudor
"I INSERTED THE DISK INTO THE COMPUTER, AND TURNED IT ON. LET THERE BE
DOS,I SAID! AND THERE WAS DOS." -- Bill Gates, 1977
- Raw text -