/ "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
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
> / 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
/ 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
> 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
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
> /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
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
> 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.
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
10 matches
Mail list logo