Re: g++ linking probs

2003-02-20 Thread Andrew Markebo
/ "Elfyn McBratney" <[EMAIL PROTECTED]> wrote: |> / Manu Anand <[EMAIL PROTECTED]> wrote: |> | Guys |> | I am linking a simple C++ program with an external library using |> | g++ -W -Wall -ansi -pedantic -I/usr/local/include -L /usr/local/lib |> | -lcppunit prog.cxx |> |> Try throwing -lcppunit _a

RE: g++ linking probs

2003-02-20 Thread Manu Anand
Thursday, February 20, 2003 2:46 PM > To: [EMAIL PROTECTED] > Subject: Re: g++ linking probs > > / Manu Anand <[EMAIL PROTECTED]> wrote: > | Guys > | I am linking a simple C++ program with an external library using > | g++ -W -Wall -ansi -pedantic -I/usr/loca

Re: g++ linking probs

2003-02-20 Thread Elfyn McBratney
> / Manu Anand <[EMAIL PROTECTED]> wrote: > | Guys > | I am linking a simple C++ program with an external library using > | g++ -W -Wall -ansi -pedantic -I/usr/local/include -L /usr/local/lib > | -lcppunit prog.cxx > > Try throwing -lcppunit _after_ prog.cxx > > /Andy I can't believe I didn

Re: g++ linking probs

2003-02-20 Thread Andrew Markebo
/ Manu Anand <[EMAIL PROTECTED]> wrote: | Guys | I am linking a simple C++ program with an external library using | g++ -W -Wall -ansi -pedantic -I/usr/local/include -L /usr/local/lib | -lcppunit prog.cxx Try throwing -lcppunit _after_ prog.cxx /Andy -- The eye of the beholder rests on the

Re: g++ linking probs

2003-02-20 Thread Elfyn McBratney
> Hi > I have libcppunit.la and libcppunit.a > That'll be static,right?? > > How do I link it then? > -Manu > Like so g++ -W -Wall -ansi -pedantic -I/usr/local/include -L /usr/local/lib libcppunit.a prog.cxx But it's static so it won't make any difference. Sorry I'm all out! > > > /home/Adminis

RE: g++ linking probs

2003-02-20 Thread Manu Anand
ary 20, 2003 2:32 PM > To: cygwin; Manu Anand > Subject: Re: g++ linking probs > > > /home/Administrator/work/cxx/tests/Employee.cpp:72: undefined reference > to > > `CppUnit::TestCase::TestCase[not-in-charge](std::basic_string > std::char_traits, std::allocator

Re: g++ linking probs

2003-02-20 Thread Elfyn McBratney
> /home/Administrator/work/cxx/tests/Employee.cpp:72: undefined reference to > `CppUnit::TestCase::TestCase[not-in-charge](std::basic_string std::char_traits, std::allocator >)' > > /cygdrive/c/TEMP/ccL6jx4L.o(.text$_ZN7CppUnit16TestSuiteBuilderI12EmployeeTe > stE7addTestEPNS_4TestE+0x1c):/home/Adm

RE: g++ linking probs

2003-02-20 Thread Manu Anand
From: Elfyn McBratney[SMTP:[EMAIL PROTECTED]] > Sent: Thursday, February 20, 2003 2:19 PM > To: cygwin; Manu Anand > Subject: Re: g++ linking probs > > > Guys > > I am linking a simple C++ program with an external library using > > g++ -W -Wall -ansi

Re: g++ linking probs

2003-02-20 Thread Elfyn McBratney
> Guys > I am linking a simple C++ program with an external library using > g++ -W -Wall -ansi -pedantic -I/usr/local/include -L /usr/local/lib > -lcppunit prog.cxx > > The linker is giving me a lot of undefined references. > However when I connect using telnet to RH Linux box the program runs OK.

g++ linking probs

2003-02-20 Thread Manu Anand
Guys I am linking a simple C++ program with an external library using g++ -W -Wall -ansi -pedantic -I/usr/local/include -L /usr/local/lib -lcppunit prog.cxx The linker is giving me a lot of undefined references. However when I connect using telnet to RH Linux box the program runs OK. I looked up t