Re: Problem when compiling c++ using gcc

2004-03-20 Thread Luc Hermitte
Hello, * On Sat, Mar 20, 2004 at 03:46:34AM -0500, Feng Y <[EMAIL PROTECTED]> wrote: > I used the following command to compile the c++ file: > gcc -o ping ping.cc Use g++ and not gcc to compile C++ code. Or at least, add the arguments that tell gcc that it is compiling C++ code. > I got the f

Problem when compiling c++ using gcc

2004-03-20 Thread Feng Y
Hi, I am new to Cygwin and I am using NS2 under cygwin-1.3.12. When I tried to use gcc to compile some C++ code and recompile NS, I met some problems. I used the following command to compile the c++ file: gcc -o ping ping.cc I got the following messages: agent.h: No such file or direct