Subject: Re: [Boost-bugs] [Boost C++ Libraries] #5134: [thread] Simple, all sources, compile fails
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2011-12-15 04:13:13
#5134: [thread] Simple, all sources, compile fails
-------------------------------+--------------------------------------------
Reporter: grafik | Owner: viboes
Type: Support Requests | Status: new
Milestone: To Be Determined | Component: thread
Version: Boost 1.45.0 | Severity: Problem
Resolution: | Keywords:
-------------------------------+--------------------------------------------
Comment (by grafik):
Replying to [comment:6 viboes]:
> Please, could you post the error you find and the command line used to
get these errors? Otherwise we are unable to help you.
Sure.. Here's a simple example:
{{{
Froggy:trunk grafik$ uname -a
Darwin Froggy.local 11.2.0 Darwin Kernel Version 11.2.0: Tue Aug 9
20:54:00 PDT 2011; root:xnu-1699.24.8~1/RELEASE_X86_64 x86_64
Froggy:trunk grafik$ g++ --version
i686-apple-darwin11-llvm-g++-4.2 (GCC) 4.2.1 (Based on Apple Inc. build
5658) (LLVM build 2335.15.00)
Copyright (C) 2007 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR
PURPOSE.
Froggy:trunk grafik$ pwd
/Users/grafik/devroots/Boost/trunk
Froggy:trunk grafik$ cat thread_compile_test.cpp
#include <boost/thread.hpp>
int main()
{
return 0;
}
Froggy:trunk grafik$ g++ -I. thread_compile_test.cpp libs/thread/src/*.cpp
libs/thread/src/*/*.cpp
libs/thread/src/win32/thread.cpp:13:21: error: process.h: No such file or
directory
libs/thread/src/win32/thread.cpp:22:21: error: windows.h: No such file or
directory
libs/thread/src/win32/thread.cpp:30: error: âDWORDâ does not name a type
libs/thread/src/win32/thread.cpp: In function âvoid
boost::<unnamed>::create_current_thread_tls_key()â:
libs/thread/src/win32/thread.cpp:34: error: âtss_cleanup_implementedâ was
not declared in this scope
libs/thread/src/win32/thread.cpp:35: error: âcurrent_thread_tls_keyâ was
not declared in this scope
libs/thread/src/win32/thread.cpp:35: error: âTlsAllocâ was not declared in
this scope
libs/thread/src/win32/thread.cpp:40: error: âTLS_OUT_OF_INDEXESâ was not
declared in this scope
libs/thread/src/win32/thread.cpp: In function âvoid
boost::<unnamed>::cleanup_tls_key()â:
libs/thread/src/win32/thread.cpp:46: error: âcurrent_thread_tls_keyâ was
not declared in this scope
libs/thread/src/win32/thread.cpp:48: error: âTlsFreeâ was not declared in
this scope
libs/thread/src/win32/thread.cpp: In function
âboost::detail::thread_data_base*
boost::<unnamed>::get_current_thread_data()â:
libs/thread/src/win32/thread.cpp:55: error: âcurrent_thread_tls_keyâ was
not declared in this scope
libs/thread/src/win32/thread.cpp:59: error: âcurrent_thread_tls_keyâ was
not declared in this scope
libs/thread/src/win32/thread.cpp:59: error: âTlsGetValueâ was not declared
in this scope
libs/thread/src/win32/thread.cpp: In function âvoid
boost::<unnamed>::set_current_thread_data(boost::detail::thread_data_base*)â:
libs/thread/src/win32/thread.cpp:65: error: âcurrent_thread_tls_keyâ was
not declared in this scope
libs/thread/src/win32/thread.cpp:66: error: âTlsSetValueâ was not declared
in this scope
libs/thread/src/win32/thread.cpp: At global scope:
libs/thread/src/win32/thread.cpp:76: error: expected `)' before â*â token
libs/thread/src/win32/thread.cpp:77: error: âfuncâ does not name a type
libs/thread/src/win32/thread.cpp:79: error: expected `)' before
âstart_addressâ
libs/thread/src/win32/thread.cpp:82: error: âDWORDâ does not name a type
libs/thread/src/win32/thread.cpp:91: error: expected `)' before â*â token
libs/thread/src/win32/thread.cpp:91: error: expected â,â or â...â before
â*â token
libs/thread/src/win32/thread.cpp:91: error: â_beginthreadexâ declared as
function returning a function
libs/thread/src/win32/thread.cpp:92: error: expected unqualified-id before
âvoidâ
libs/thread/src/win32/thread.cpp:631: error: expected `}' at end of input
libs/thread/src/win32/thread.cpp:631: error: expected `}' at end of input
Froggy:trunk grafik$
}}}
Same applies for just about anywhere you try the equivalent simple
operation.
HTH.
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/5134#comment:7> Boost C++ Libraries <http://www.boost.org/> Boost provides free peer-reviewed portable C++ source libraries.
This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:08 UTC