|
Boost Users : |
Subject: [Boost-users] Boost.Test with Boost.Thread
From: Satish Kaveti (skaveti_at_[hidden])
Date: 2011-03-05 17:25:48
I am learning to create simple unit tests using Boost.Test. I am getting the following error when I run bjam.
C:/DevTools/boost_1_44_0/tools/build/v2/build\feature.jam:138: in feature.feature from module feature
error: feature already defined:
error: in feature declaration:
error: feature "threadapi" : "pthread" "win32" : "propagated"
c:\DevTools\boost_1_44_0\libs\thread\build\Jamfile.v2:57: in modules.load from module Jamfile</c:/devtools/boost_1_44_0/libs/thread/build>
C:/DevTools/boost_1_44_0/tools/build/v2/build\project.jam:310: in load-jamfile from module project
C:/DevTools/boost_1_44_0/tools/build/v2/build\project.jam:62: in project.load from module project
C:/DevTools/boost_1_44_0/tools/build/v2/build\project.jam:760: in project.use from module project
C:/DevTools/boost_1_44_0/tools/build/v2/build\project.jam:89: in load-used-projects from module project
C:/DevTools/boost_1_44_0/tools/build/v2/build\project.jam:73: in load from module project
C:/DevTools/boost_1_44_0/tools/build/v2/build\project.jam:115: in load-parent from module project
C:/DevTools/boost_1_44_0/tools/build/v2/build\project.jam:458: in initialize from module project
C:/DevTools/boost_1_44_0/tools/build/v2/build\project.jam:300: in load-jamfile from module project
C:/DevTools/boost_1_44_0/tools/build/v2/build\project.jam:62: in load from module project
C:/DevTools/boost_1_44_0/tools/build/v2/build\project.jam:168: in project.find from module project
C:/DevTools/boost_1_44_0/tools/build/v2\build-system.jam:569: in load from module build-system
C:\DevTools\boost_1_44_0\tools\build\v2/kernel\modules.jam:283: in import from module modules
C:\DevTools\boost_1_44_0\tools\build\v2\kernel\bootstrap.jam:142: in boost-build from module
C:\DevTools\boost_1_44_0\boost-build.jam:17: in module scope from module
My Jamroot file is shown below :
-------------------------------------
import os ;
import testing ;
use-project /blues/system : c:/devtools/boost_1_44_0/libs/system/build ;
use-project /blues/thread : c:/devtools/boost_1_44_0/libs/thread/build ;
use-project /blues/test : c:/devtools/boost_1_44_0/libs/test/build ;
project
:
: requirements
<threading>multi
<link>static
<include>c:/devtools/boost_1_44_0
<define>_WIN32_WINNT=0x0501
<define>_CRT_SECURE_NO_WARNINGS=1
<define>_SCL_SECURE_NO_WARNINGS=1
;
and my Jamfile is shown below :
-------------------------------------
alias unit_test_framework
: # Sources
/blues/test//boost_unit_test_framework
;
explicit unit_test_framework ;
run-fail unit_test_example_01.cpp unit_test_framework ;
How can I successfully build the unit test ?
Thanks.
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net