delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2003/01/19/11:35:38

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
content-class: urn:content-classes:message
MIME-Version: 1.0
Subject: linker can't find getsubopt()
X-MimeOLE: Produced By Microsoft Exchange V6.0.5762.3
Date: Sun, 19 Jan 2003 18:34:59 +0200
Message-ID: <988BE481ACC95C429DCB909F74A3163A05D686@exchange-il>
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
From: "Maor Avni" <Maor DOT Avni AT ParthusCeva DOT com>
To: <cygwin AT cygwin DOT com>
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id h0JGZbY27178

Hi,

I try to compile this simple program on cygwin:


#include <unistd.h>
#include <stdlib.h>
#include <stdio.h>

int main()
{
  getsubopt(0,0,0);
  return 0;
}



gcc has no problem with the program, but when linking starts, the linker can't find
a reference to getsubopt.

I don't care about the program working or not, I just want to make it compile, as it will solve
several problems porting a Linux program to CYGWIN.

Any ideas?

Maor Avni

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


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