Mail Archives: djgpp/1997/11/02/09:31:54
Hi.
On Sun, 2 Nov 1997, Jos van Riswick wrote:
> I'm learning c++, and I'm using djgpp and bcc. The first
> program I wrote, called test.cc reads:
[..code..]
> It compiles fine with bcc. However, gcc, no. It doesn't
> compile. When I type at the command prompt:
[..*lots* of info..]
Relax. You just have to give:
gcc test.cc -lgpp -otest.exe
OR
gxx test.cc -otest.exe
The errors you were getting were because the C++ lib had not been linked.
You can tell gcc to link in libgpp.a using the -lgpp option, or use gxx.
"gxx <args>" is identical to "gcc <args> -lgpp -lstdcx -lm".
HTH,
Mahesh (Mahadevan R.), <mdevan AT iname DOT com>
- Raw text -