HI everyone ,

   Now , i am learning to write a STAF service to support our auto-test
framework ,  so i first copy the example of Staf service in help doc to
dev-cpp  and to make it ,but i meet too error info  as following , i don't
sure these casue by my makeing env or g++ ?  please get me some suggesting .
thanks


DeviceService.o(.text$_ZN10STAFRefPtrI22STAFMapClassDefinitionEaSERKS1_[STAFRefPtr<STAFMapClassDefinition>::operator=(STAFRefPtr<STAFMapClassDefinition>
const&)]+0x34): In function
`ZNSt8_Rb_treeI10STAFStringSt4pairIKS0_10STAFRefPtrI10DeviceDataEESt10_Select1stIS6_ESt4lessIS0_ESaIS6_EE7_S_leftEPKSt18_Rb_tree_node_base':
D:/program/Dev-Cpp/include/c++/3.4.2/bits/stl_tree.h: undefined reference to
`STAFThreadSafeDecrement'
DeviceService.o(.text$_ZN10STAFRefPtrI22STAFMapClassDefinitionEaSERKS1_[STAFRefPtr<STAFMapClassDefinition>::operator=(STAFRefPtr<STAFMapClassDefinition>
const&)]+0x166): In function `STAFServiceGetLevelBounds':
D:/program/Dev-Cpp/project/TestSTAF/DeviceService.cpp:156: undefined
reference to `STAFThreadSafeIncrement'
DeviceService.o(.text$_ZN10STAFRefPtrI10STAFResultEaSERKS1_[STAFRefPtr<STAFResult>::operator=(STAFRefPtr<STAFResult>
const&)]+0x34): In function
`ZNSt8_Rb_treeI10STAFStringSt4pairIKS0_10STAFRefPtrI10DeviceDataEESt10_Select1stIS6_ESt4lessIS0_ESaIS6_EE7_S_leftEPKSt18_Rb_tree_node_base':
D:/program/Dev-Cpp/include/c++/3.4.2/bits/stl_tree.h: undefined reference to
`STAFThreadSafeDecrement'
DeviceService.o(.text$_ZN10STAFRefPtrI10STAFResultEaSERKS1_[STAFRefPtr<STAFResult>::operator=(STAFRefPtr<STAFResult>
const&)]+0x161): In function `STAFServiceGetLevelBounds':
D:/program/Dev-Cpp/project/TestSTAF/DeviceService.cpp:156: undefined
reference to `STAFThreadSafeIncrement'
DeviceService.o(.text$_ZN10STAFRefPtrI12STAFMutexSemEaSERKS1_[STAFRefPtr<STAFMutexSem>::operator=(STAFRefPtr<STAFMutexSem>
const&)]+0x34): In function
`ZNSt8_Rb_treeI10STAFStringSt4pairIKS0_10STAFRefPtrI10DeviceDataEESt10_Select1stIS6_ESt4lessIS0_ESaIS6_EE7_S_leftEPKSt18_Rb_tree_node_base':
D:/program/Dev-Cpp/include/c++/3.4.2/bits/stl_tree.h: undefined reference to
`STAFThreadSafeDecrement'
DeviceService.o(.text$_ZN10STAFRefPtrI12STAFMutexSemEaSERKS1_[STAFRefPtr<STAFMutexSem>::operator=(STAFRefPtr<STAFMutexSem>
const&)]+0x15b): In function `STAFServiceGetLevelBounds':
D:/program/Dev-Cpp/project/TestSTAF/DeviceService.cpp:155: undefined
reference to `STAFThreadSafeIncrement'
DeviceService.o(.text$_ZN10STAFRefPtrI10DeviceDataED1Ev[STAFRefPtr<DeviceData>::~STAFRefPtr()]+0x1d):
In function
`ZNSt8_Rb_treeI10STAFStringSt4pairIKS0_10STAFRefPtrI10DeviceDataEESt10_Select1stIS6_ESt4lessIS0_ESaIS6_EE7_S_leftEPKSt18_Rb_tree_node_base':
D:/program/Dev-Cpp/include/c++/3.4.2/bits/stl_tree.h: undefined reference to
`STAFThreadSafeDecrement'
DeviceService.o(.text$_ZN10STAFRefPtrI10DeviceDataEC1ERKS1_[STAFRefPtr<DeviceData>::STAFRefPtr(STAFRefPtr<DeviceData>
const&)]+0x6a):D:/program/Dev-Cpp/include/c++/3.4.2/bits/stl_tree.h:
undefined reference to `STAFThreadSafeIncrement'
DeviceService.o(.text$_ZNK10STAFStringltERKS_[STAFString::operator<(STAFString
const&) const]+0x34):D:/program/Dev-Cpp/include/c++/3.4.2/bits/stl_tree.h:
undefined reference to `STAFStringCompareTo'
collect2: ld returned 1 exit status
d:\program\Dev-Cpp\Bin\dllwrap.exe: no export definition file provided.
Creating one, but that may not be what you want
d:\program\Dev-Cpp\Bin\dllwrap.exe: c++ exited with status 1
mingw32-make.exe: *** [TestStaf.dll] Error 1

执行结束



I only past a small pit on here , it is so long .



Best regards.



jason dong
------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
staf-users mailing list
staf-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/staf-users

Reply via email to