I don't believe thread-level-storage is supported in the z/OS environment?

- Dave R. -

(p.s. the latest Dignus release now has support for pthreads, and includes
 many functions missing from the IBM (LE) implementation.... but doesn't
 include thread-level-storage... the implementation of that could benefit
 from some linker enhancements...   We can probably help you with that
 port, and we can do it in 31-bit too.)




Sam N wrote:

Hello:

I am porting a C++ program which uses std::thread to z/OS on Unix System 
Services. The compilation using clang++ compiler succeeds. However, I get the 
following linker error:

IEW2456E 9207 SYMBOL _ZNSt3__116__libcpp_tls_setE13pthread_key_tPv UNRESOLVED.
         MEMBER COULD NOT BE INCLUDED FROM THE DESIGNATED CALL LIBRARY.
IEW2456E 9207 SYMBOL _ZNSt3__122__libcpp_thread_createEP9pthread_tPFPvS2_ES2_
         UNRESOLVED.  MEMBER COULD NOT BE INCLUDED FROM THE DESIGNATED CALL
         LIBRARY.

Note, that I don't call any of these pthread APIs. These are called by the 
implementation of std::thread in clang compiler.

I use the standard configuration file which uses libibmcmp.a & 
SCEELIB(CELQS003, CELQSCPP, CXXRT64). I don't see the typical libpthread library 
that was used in Linux. How to resolve this?

TIA
/S




--
riv...@dignus.com                        Work: (919) 676-0847
Get your mainframe programming tools at http://www.dignus.com

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN

Reply via email to