Re: [classad-users] Problem with linking Classads under Win32


Date: Fri, 7 May 2004 09:47:40 -0500 (CDT)
From: Artem Harutyunyan <hartem@xxxxxxxxxxxxxx>
Subject: Re: [classad-users] Problem with linking Classads under Win32
Hi Alain,
 
> Do you get these linking errors with the programs that come with the
> ClassAd library? For instance, test_classads and sample: do they link 
> and run?
  
  Below one can found build log of "sample". As i can see it
conflicts with slport, besides it is giving the same errors about 
unresolved externals as in previous case.
 My program gives very similar errors, so I think that in case of solving 
problems with "sample" my program will compile too.
  
Many thanks in advance
Artem.

______________
Build Log:

--------------------Configuration: sample - Win32 Release--------------------

Command Lines
Creating temporary file "C:\DOCUME~1\dotslash\LOCALS~1\Temp\RSPE3.tmp" 
with contents
[
kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib 
shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib 
classad.lib /nologo /subsystem:console /incremental:yes 
/pdb:"Release/sample.pdb" /machine:I386 /nodefaultlib:"libcmt" 
/nodefaultlib:"stlport_vc6_static" /nodefaultlib:"libc" 
/out:"Release/sample.exe" 
.\Release\sample.obj
]
Creating command line "link.exe 
@C:\DOCUME~1\dotslash\LOCALS~1\Temp\RSPE3.tmp"
Output Window
Linking...
stlport_vc6.lib(stlport_vc646.dll) : error LNK2005: "public: __thiscall 
_STL::allocator::~allocator(void)" (??1?$allocator@D@_STL@@QAE@XZ) already 
defined in sample.obj

stlport_vc6.lib(stlport_vc646.dll) : error LNK2005: "public: __thiscall 
_STL::basic_string,class _STL::allocator >::~basic_string,class 
_STL::allocator >(void)" 
(??1?$basic_string@DV?$char_traits@D@_STL@@V?$allocator@D@2@@_STL@@QAE@XZ) 
already defined in sample.obj

stlport_vc6.lib(stlport_vc646.dll) : error LNK2005: "public: __thiscall 
_STL::_STLP_alloc_proxy >::~_STLP_alloc_proxy >(void)" 
(??1?$_STLP_alloc_proxy@PADDV?$allocator@D@_STL@@@_STL@@QAE@XZ) already 
defined in sample.obj

stlport_vc6.lib(stlport_vc646.dll) : error LNK2005: "public: __thiscall 
_STL::_String_base >::~_String_base >(void)" 
(??1?$_String_base@DV?$allocator@D@_STL@@@_STL@@QAE@XZ) already defined in 
sample.obj

stlport_vc6.lib(stlport_vc646.dll) : error LNK2005: "public: void 
__thiscall _STL::basic_ios >::clear(int)" 
(?clear@?$basic_ios@DV?$char_traits@D@_STL@@@_STL@@QAEXH@Z) already 
defined in sample.obj

stlport_vc6.lib(stlport_vc646.dll) : error LNK2005: "public: void 
__thiscall _STL::basic_ostream >::_M_put_nowiden(char const *)" 
(?_M_put_nowiden@?$basic_ostream@DV?$char_traits@D@_STL@@@_STL@@QAEXPBD@Z) 
already defined in sample.obj

sample.obj : error LNK2001: unresolved external symbol "class 
_STL::basic_ostream > _STL::cout" 
(?cout@_STL@@3V?$basic_ostream@DV?$char_traits@D@_STL@@@1@A)

classad.lib(source.obj) : error LNK2001: unresolved external symbol 
"public: static class AttributeReference * __cdecl 
AttributeReference::MakeAttributeReference(class ExprTree *,class 
_STL::basic_string,class _STL::allocator > const &,bool)" 
(?MakeAttributeReference@AttributeReference@@SAPAV1@PAVExprTree@@ABV?$basic_string@DV?$char_traits@D@_STL@@V?$allocator@D@2@@_STL@@_N@Z)

classad.lib(sink.obj) : error LNK2001: unresolved external symbol "public: 
void __thiscall AttributeReference::GetComponents(class ExprTree * &,class 
_STL::basic_string,class _STL::allocator > &,bool &)const " 
(?GetComponents@AttributeReference@@QBEXAAPAVExprTree@@AAV?$basic_string@DV?$char_traits@D@_STL@@V?$allocator@D@2@@_STL@@AA_N@Z)

classad.lib(fnCall.obj) : error LNK2001: unresolved external symbol 
"private: static bool __cdecl FunctionCall::matchPattern(char const 
*,class _STL::vector > const &,class EvalState &,class Value &)" 
(?matchPattern@FunctionCall@@CA_NPBDABV?$vector@PAVExprTree@@V?$allocator@PAVExprTree@@@_STL@@@_STL@@AAVEvalState@@AAVValue@@@Z)
Release/sample.exe : fatal error LNK1120: 4 unresolved externals
Error executing link.exe.


Results
sample.exe - 11 error(s), 0 warning(s)



Condor Classads Info:
http://www.cs.wisc.edu/condor/classad/



[← Prev in Thread] Current Thread [Next in Thread→]