Re: [Boost-bugs] [Boost C++ Libraries] #5134: [thread] Simple, all sources, compile fails

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