Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » C / C++ IDE (CDT) » CppUnit link failure for TmpClass destructor
CppUnit link failure for TmpClass destructor [message #75364] Thu, 10 July 2003 13:41 Go to next message
Dan Murphy is currently offline Dan MurphyFriend
Messages: 1
Registered: July 2009
Junior Member
Hello,

I ran into a problem when compiling a simple auto generated TestFixture.
Below is the error I am getting from the make process:

make -k testTest
g++ testTest.cpp
/tools/eclipse/2.1/eclipse/plugins/org.eclipse.cdt.cppunit_1 .1.0/lib/RemoteTestRunner.cpp
-I/usr/local/include test.cpp -o testTest /usr/local/lib/libcppunit.a
/tmp/ccDQf05K.o(.gnu.linkonce.d.__vt_Q316RemoteTestRunner46s endTree__16RemoteTestRunnerPQ27CppUnit4Test.0_8TmpClass+0x8) :
undefined reference to
`RemoteTestRunner::sendTree__16RemoteTestRunnerPQ27CppUnit4T est.0::TmpClass::~TmpClass(void)'
collect2: ld returned 1 exit status
make: *** [testTest] Error 1

I did modify RemoteTestRunner::sendTree::TmpClass by adding the destructor
the linker was complaining about. After doing so, everything appears to be
working well. Has anyone else seen this? I would not expect this to be
normal operating procedure.

OS=Red Hat Linux 7.3
PROC=i686
Eclipse=2.1.1
Build=200306181400
CDT=1.1.0
Build=200305150256
CppUnit=1.1.0

Regards,

Dan
Re: CppUnit link failure for TmpClass destructor [message #75430 is a reply to message #75364] Thu, 10 July 2003 17:07 Go to previous messageGo to next message
John Camelon is currently offline John CamelonFriend
Messages: 50
Registered: July 2009
Member
File a defect under bugzilla.


"Dan" <murphy@elvis.com> wrote in message news:bejqe9$2uq$1@eclipse.org...
> Hello,
>
> I ran into a problem when compiling a simple auto generated TestFixture.
> Below is the error I am getting from the make process:
>
> make -k testTest
> g++ testTest.cpp
>
/tools/eclipse/2.1/eclipse/plugins/org.eclipse.cdt.cppunit_1 .1.0/lib/RemoteT
estRunner.cpp
> -I/usr/local/include test.cpp -o testTest /usr/local/lib/libcppunit.a
>
/tmp/ccDQf05K.o(.gnu.linkonce.d.__vt_Q316RemoteTestRunner46s endTree__16Remot
eTestRunnerPQ27CppUnit4Test.0_8TmpClass+0x8):
> undefined reference to
>
`RemoteTestRunner::sendTree__16RemoteTestRunnerPQ27CppUnit4T est.0::TmpClass:
:~TmpClass(void)'
> collect2: ld returned 1 exit status
> make: *** [testTest] Error 1
>
> I did modify RemoteTestRunner::sendTree::TmpClass by adding the destructor
> the linker was complaining about. After doing so, everything appears to be
> working well. Has anyone else seen this? I would not expect this to be
> normal operating procedure.
>
> OS=Red Hat Linux 7.3
> PROC=i686
> Eclipse=2.1.1
> Build=200306181400
> CDT=1.1.0
> Build=200305150256
> CppUnit=1.1.0
>
> Regards,
>
> Dan
>
Re: CppUnit link failure for TmpClass destructor [message #76172 is a reply to message #75430] Thu, 17 July 2003 15:09 Go to previous message
Eclipse UserFriend
Originally posted by: alain.nowhere.ca

John Camelon wrote:

> File a defect under bugzilla.

Good answer.

Another question who is responsible and will keep track of this ?
Martin ? Doug ?

> "Dan" <murphy@elvis.com> wrote in message news:bejqe9$2uq$1@eclipse.org...
> > Hello,
> >
> > I ran into a problem when compiling a simple auto generated TestFixture.
> > Below is the error I am getting from the make process:
> >
> > make -k testTest
> > g++ testTest.cpp
> >
> /tools/eclipse/2.1/eclipse/plugins/org.eclipse.cdt.cppunit_1 .1.0/lib/RemoteT
> estRunner.cpp
> > -I/usr/local/include test.cpp -o testTest /usr/local/lib/libcppunit.a
> >
> /tmp/ccDQf05K.o(.gnu.linkonce.d.__vt_Q316RemoteTestRunner46s endTree__16Remot
> eTestRunnerPQ27CppUnit4Test.0_8TmpClass+0x8):
> > undefined reference to
> >
> `RemoteTestRunner::sendTree__16RemoteTestRunnerPQ27CppUnit4T est.0::TmpClass:
> :~TmpClass(void)'
> > collect2: ld returned 1 exit status
> > make: *** [testTest] Error 1
> >
> > I did modify RemoteTestRunner::sendTree::TmpClass by adding the destructor
> > the linker was complaining about. After doing so, everything appears to be
> > working well. Has anyone else seen this? I would not expect this to be
> > normal operating procedure.
> >
> > OS=Red Hat Linux 7.3
> > PROC=i686
> > Eclipse=2.1.1
> > Build=200306181400
> > CDT=1.1.0
> > Build=200305150256
> > CppUnit=1.1.0
> >
> > Regards,
> >
> > Dan
> >
Previous Topic:Instalation problem
Next Topic:CDT with full C++ DOM support
Goto Forum:
  


Current Time: Sat Oct 19 16:05:50 GMT 2024

Powered by FUDForum. Page generated in 0.03312 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top