need your help

"Binu K Idicula" <[email protected]> Sun, 15 Jun 2003 19:01:05 +0530
Newsgroups gmane.comp.lib.cppunit.devel
Message-ID <000801c33342$720c9070$e200000a@binuk>
This is a multi-part message in MIME format.

------=_NextPart_000_0005_01C33370.78EB0DD0
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Hai all,
   I have encountered two problems in using CppUnit.=20
1. I have already registered a plug in, as you have told. But I couldnot =
see what advantage we get in adding the plug in. The VC is not giving me =
=20
    any extra facility for plug in.
2. When I build my projects in debug mode, which includes the testing =
code, it complaints of linking errors. This errors I have checked with =
FAQ =20
    and so I set the settings C?C++ code generation use =
"DebugMultithreaded Dll" for debug and "Multithreaded Dll" for release. =
No luck. It again retained this error. I am very much in need of =
implementing unit testing for my project. Please help me if you could =
find out the problem.=20



I would have sent the files to you, if you have time. Its just an =
integer multiplication pgm :-), because I wanted to use CppUnit from =
starting.
I think the problem should be with project settings, but I have tried =
all options... now i am, waiting for your response
Thanks in Advance..
Binu k Idicula
Sr IT Officer
Atinav inc www.atinav.com =20
<<<<<<<<<<<<<<<<<<ERRORS LISTED =
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>=
>>>>>>>>

tester.obj : error LNK2001: unresolved external symbol "public: =
__thiscall CppUnit::SourceLine::SourceLine(class =
std::basic_string<char,struct std::char_traits<char>,class =
std::allocator<char> > const &,int)" =
(??0SourceLine@CppUnit@@QAE@ABV?$basic_s
tring@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@H@Z)
tester.obj : error LNK2001: unresolved external symbol "public: virtual =
__thiscall CppUnit::SourceLine::~SourceLine(void)" =
(??1SourceLine@CppUnit@@UAE@XZ)
tester.obj : error LNK2001: unresolved external symbol "void __cdecl =
CppUnit::Asserter::failNotEqual(class std::basic_string<char,struct =
std::char_traits<char>,class std::allocator<char> >,class =
std::basic_string<char,struct std::char_traits<char>,c
lass std::allocator<char> >,class CppUnit::SourceLine,class =
std::basic_string<char,struct std::char_traits<char>,class =
std::allocator<char> >)" =
(?failNotEqual@Asserter@CppUnit@@YAXV?$basic_string@DU?$char_traits@D@std=
@@V?$allocator@D@2@@std@@0VSourc
eLine@2@0@Z)
Release/UnitTesting.exe : fatal error LNK1120: 3 unresolved externals
Error executing link.exe.

------=_NextPart_000_0005_01C33370.78EB0DD0
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 6.00.2800.1106" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>Hai all,</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>&nbsp;&nbsp; I have =
encountered&nbsp;two problems=20
in using CppUnit. </FONT></DIV>
<DIV><FONT face=3DArial size=3D2>1. I have already registered a plug in, =
as you have=20
told. But I couldnot see what advantage we get in adding the plug in. =
The VC is=20
not giving me&nbsp; </FONT></DIV>
<DIV><FONT face=3DArial size=3D2>&nbsp;&nbsp;&nbsp; any extra facility =
for plug=20
in.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>2. When I&nbsp;build&nbsp;my =
projects&nbsp;in debug=20
mode, which includes the testing code, it complaints of linking errors. =
This=20
errors I have checked with FAQ&nbsp; </FONT></DIV>
<DIV><FONT face=3DArial size=3D2>&nbsp;&nbsp;&nbsp; and so I set the =
settings C?C++=20
code generation use "DebugMultithreaded Dll"&nbsp;for debug and =
"Multithreaded=20
Dll" for release. No luck. It again retained this error. I am very much =
in need=20
of implementing unit testing for my project. Please help me if you could =
find=20
out the problem.&nbsp;</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>I would have sent the files to you, if =
you have=20
time. Its just an integer multiplication pgm :-), because I wanted to =
use=20
CppUnit&nbsp;from starting.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>I think the problem should be with =
project=20
settings, but I have tried all options... now i am, waiting for your=20
response</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>Thanks in Advance..</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>Binu k Idicula</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>Sr IT Officer</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>Atinav inc <A=20
href=3D"http://www.atinav.com">www.atinav.com</A> </FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial=20
size=3D2>&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;=
&lt;&lt;ERRORS=20
LISTED=20
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&=
gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&g=
t;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt=
;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;=
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>tester.obj : error LNK2001: unresolved =
external=20
symbol "public: __thiscall CppUnit::SourceLine::SourceLine(class=20
std::basic_string&lt;char,struct std::char_traits&lt;char&gt;,class=20
std::allocator&lt;char&gt; &gt; const &amp;,int)" (<A=20
href=3D"mailto:??0SourceLine@CppUnit@@QAE@ABV?$basic_s">??0SourceLine@Cpp=
Unit@@QAE@ABV?$basic_s</A><BR><A=20
href=3D"mailto:tring@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@H@Z">t=
ring@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@H@Z</A>)<BR>tester.obj=
=20
: error LNK2001: unresolved external symbol "public: virtual __thiscall=20
CppUnit::SourceLine::~SourceLine(void)" (<A=20
href=3D"mailto:??1SourceLine@CppUnit@@UAE@XZ">??1SourceLine@CppUnit@@UAE@=
XZ</A>)<BR>tester.obj=20
: error LNK2001: unresolved external symbol "void __cdecl=20
CppUnit::Asserter::failNotEqual(class std::basic_string&lt;char,struct=20
std::char_traits&lt;char&gt;,class std::allocator&lt;char&gt; &gt;,class =

std::basic_string&lt;char,struct std::char_traits&lt;char&gt;,c<BR>lass=20
std::allocator&lt;char&gt; &gt;,class CppUnit::SourceLine,class=20
std::basic_string&lt;char,struct std::char_traits&lt;char&gt;,class=20
std::allocator&lt;char&gt; &gt;)" (<A=20
href=3D"mailto:?failNotEqual@Asserter@CppUnit@@YAXV?$basic_string@DU?$cha=
r_traits@D@std@@V?$allocator@D@2@@std@@0VSourc">?failNotEqual@Asserter@Cp=
pUnit@@YAXV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@0=
VSourc</A><BR><A=20
href=3D"mailto:eLine@2@0@Z">eLine@2@0@Z</A>)<BR>Release/UnitTesting.exe =
: fatal=20
error LNK1120: 3 unresolved externals<BR>Error executing=20
link.exe.<BR></FONT></DIV></BODY></HTML>

------=_NextPart_000_0005_01C33370.78EB0DD0--




-------------------------------------------------------
This SF.NET email is sponsored by: eBay
Great deals on office technology -- on eBay now! Click here:
http://adfarm.mediaplex.com/ad/ck/711-11697-6916-5