From: Xiaojun Zhu Subject: Re: problems with djgpp1.10 (fwd) To: dj AT ctron DOT com (DJ Delorie) Date: Fri, 4 Jun 1993 12:02:13 -18521200 (EDT) Cc: djgpp AT sun DOT soe DOT clarkson DOT edu > > > > When I try to compile the following very simple program, the compiler > > > generates the following message:(command line: gcc -x c++ test.c) > > (1) you should name the file "test.cc" > > (2) you should use the command "gcc test.cc -lpc -lgpl". Basically, > you forgot to tell the compiler to link the libraries. > Thank you DJ: I did as you told me, it works. But at least in the file new110.doc, you should add gcc is now picky about file extensions. (gcc -x c++ is obsolete) (I also have tried the command line: gcc -x c++ test.c -lpc -lgpl before I post my problem, but don't work either, so the only problem narrows to the file extension) Correct me if I am wrong, but I don't seem to recall that djgpp1.09 was so picky about file extension as djgpp1.10. Another question: What's the advantage of not allowing me to use test.c instead of test.cc? Why every time I have to type those lengthy -lpc -lgpl while I am expecting the linker to do it for me? In a word, why make such a change from djgpp1.09 to djgpp1.10?