Computer Chess Club Archives


Search

Terms

Messages

Subject: Re: Intel C++ Compiler question

Author: Steffen Jakob

Date: 06:44:08 02/04/03

Go up one level in this thread


On February 04, 2003 at 09:35:05, David Rasmussen wrote:

>I want to make a Linux executable of Chezzz to put on my page. To get one that
>is fairly optimized, I am using the Intel compiler (version 6, not 7. I will try
>with 7 later, right now, I just want to make a good executable as quickly as
>possible).
>For the moment I don't want to deal with all sorts of different shared and
>static versions etc. So I want to make a statically linked version. When I do
>that with the intel compiler, I get the following errors:
>
>/opt/intel/compiler60/ia32/lib/libcprts.a(xmtx.o)(.text+0x6d): In function `_Mtx
>init':
>: undefined reference to `pthread_mutex_init'
>/opt/intel/compiler60/ia32/lib/libcprts.a(xmtx.o)(.text+0x97): In function `_Mtx
>dst':
>: undefined reference to `pthread_mutex_destroy'
>/opt/intel/compiler60/ia32/lib/libcprts.a(xmtx.o)(.text+0xd7): In function `_Mtx
>lock':
>: undefined reference to `pthread_self'
>/opt/intel/compiler60/ia32/lib/libcprts.a(xmtx.o)(.text+0x105): In function `_Mt
>xlock':
>: undefined reference to `pthread_equal'
>/opt/intel/compiler60/ia32/lib/libcprts.a(xmtx.o)(.text+0x134): In function `_Mt
>xlock':
>: undefined reference to `pthread_mutex_lock'
>/opt/intel/compiler60/ia32/lib/libcprts.a(xmtx.o)(.text+0x191): In function `_Mt
>xunlock':
>: undefined reference to `pthread_mutex_unlock'
>/opt/intel/compiler60/ia32/lib/libunwind.a(ptn_ix86.o)(.text+0x2f): In function
>`_eh_get_lock':
>: undefined reference to `pthread_mutex_lock'
>/opt/intel/compiler60/ia32/lib/libunwind.a(ptn_ix86.o)(.text+0x42): In function
>`.B1.2':
>: undefined reference to `pthread_mutex_lock'
>/opt/intel/compiler60/ia32/lib/libunwind.a(ptn_ix86.o)(.text+0x63): In function
>`_eh_release_lock':
>: undefined reference to `pthread_mutex_unlock'
>/opt/intel/compiler60/ia32/lib/libunwind.a(ptn_ix86.o)(.text+0x76): In function
>`.B2.2':
>: undefined reference to `pthread_mutex_unlock'
>
>Nothing in my program includes any pthread stuff. So I'm guessing it's Intel's

Are you sure? Maybe you use a version of the standard c++ library which supports
multithreading? Check your object files with "nm --demangle *.o".

Greetings,
Steffen.

>libraries that do? Does anybody know a solution?

Greetings,
Steffen.



This page took 0 seconds to execute

Last modified: Thu, 15 Apr 21 08:11:13 -0700

Current Computer Chess Club Forums at Talkchess. This site by Sean Mintz.