delorie.com/archives/browse.cgi | search |
Mailing-List: | contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm |
List-Subscribe: | <mailto:cygwin-subscribe AT sources DOT redhat DOT com> |
List-Archive: | <http://sources.redhat.com/ml/cygwin/> |
List-Post: | <mailto:cygwin AT sources DOT redhat DOT com> |
List-Help: | <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs> |
Sender: | cygwin-owner AT sources DOT redhat DOT com |
Delivered-To: | mailing list cygwin AT sources DOT redhat DOT com |
Message-ID: | <0E7AA454E229D411A1CB0090274661FF5502F4@gaea.trillium.com> |
From: | Brian Pollard <b_pollard AT trillium DOT com> |
To: | "'cygwin AT sourceware DOT cygnus DOT com'" <cygwin AT sourceware DOT cygnus DOT com> |
Subject: | linking problems with posix in cygwin |
Date: | Thu, 20 Jul 2000 10:42:46 -0700 |
MIME-Version: | 1.0 |
X-Mailer: | Internet Mail Service (5.5.2650.21) |
When trying to link many object files in Cygwin I do not know what library to include. On a sun system it compiles with -lposix4. This is the line: gcc -o mt_acc ./ss_gen.o ./ss_task.o ./ss_drvr.o ./ss_timer.o ./ss_mem.o ./ss_strm.o ./ss_msg.o ./ss_queue.o ./ss_pack.o ./ss_rtr.o ./ss_acc.o ./cm_mem.o ./cm_bdy5.o ./mt_ss.o ./mt_id.o -lpthread -lposix4 I finally got the -lpthread to work but still have the problem with -lposix4 library I get errors of undefined references to "localtime_r" and "rand_r" Which library should I include from cygwin to compile, or do i need to create the library? Thank you in advance for your time. Brian Pollard -- Want to unsubscribe from this list? Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |