ftp.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2011/07/10/07:15:18

X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f
From: Georg <dosusb AT googlemail DOT com>
Newsgroups: comp.os.msdos.djgpp
Subject: Problem with pthread
Date: Sun, 10 Jul 2011 04:04:48 -0700 (PDT)
Organization: http://groups.google.com
Lines: 39
Message-ID: <04479084-9c35-4cff-ad2e-f7ada3284871@hi9g2000vbb.googlegroups.com>
NNTP-Posting-Host: 92.250.191.164
Mime-Version: 1.0
X-Trace: posting.google.com 1310295888 13719 127.0.0.1 (10 Jul 2011 11:04:48 GMT)
X-Complaints-To: groups-abuse AT google DOT com
NNTP-Posting-Date: Sun, 10 Jul 2011 11:04:48 +0000 (UTC)
Complaints-To: groups-abuse AT google DOT com
Injection-Info: hi9g2000vbb.googlegroups.com; posting-host=92.250.191.164; posting-account=v5xbdQoAAAAOGc9Ccc-kLZyobvPlN3Qr
User-Agent: G2/1.0
X-HTTP-Via: 1.1 TAS-4-3.man-a
X-Google-Web-Client: true
X-Google-Header-Order: UALSERCVNKH
X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv:1.9.1.4)
Gecko/20091016 Firefox/3.5.4,gzip(gfe)
Bytes: 2427
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

I downloaded pth207.b from the DJGPP beta directory. For a test I
tried to compile this program, which I took from a "configure" file:

#include <pthread.h>
int
main ()
{
pthread_create(0, 0, 0, 0);
  ;
  return 0;
}

./configure tells me this fails and when I try to compile this
program, named thread.c, with this command:

gcc -o thread.exe thread.c -lpthread

I get the following errors:

e:/djgpp/lib/libpthread.a(pth_high.o):pth_high.c:(.text+0x211):
undefined reference to `_sendto'
e:/djgpp/lib/libpthread.a(pth_high.o):pth_high.c:(.text+0x269):
undefined reference to `_sendto'
e:/djgpp/lib/libpthread.a(pth_high.o):pth_high.c:(.text+0x4a9):
undefined reference to `_recvfrom'
e:/djgpp/lib/libpthread.a(pth_high.o):pth_high.c:(.text+0xd0f):
undefined reference to `_accept'
e:/djgpp/lib/libpthread.a(pth_high.o):pth_high.c:(.text+0xef5):
undefined reference to `_connect'
e:/djgpp/lib/libpthread.a(pth_high.o):pth_high.c:(.text+0x101e):
undefined reference to `_getsockopt'
e:/djgpp/lib/libpthread.a(pth_high.o):pth_high.c:(.text+0x1809):
undefined reference to `_recv'
collect2: ld returned 1 exit status

What shall I do to get this to compile? I also tried the version in
the current directory but that showed even more undefined references.

Georg

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019