delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2001/09/07/19:18:08

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: <4.3.2.7.2.20010907161012.00bada60@adept.qualcomm.com>
X-Sender: normanf AT adept DOT qualcomm DOT com
X-Mailer: QUALCOMM Windows Eudora Version 4.3.2
Date: Fri, 07 Sep 2001 16:17:51 -0700
To: cygwin AT cygwin DOT com
From: Norman Frederick <normanf AT qualcomm DOT com>
Subject: problems linking
Mime-Version: 1.0

Dear Sirs:

I am having problems linking modules compiled using your gcc.

example:

gcc -c simple.c

ld simple.o crt0.o -lm -lc
get error:
/usr/lib/libm.a<_cygwin_crt0_common.o>undefined reference to GETModuleHandleA AT 4

What is missing?

I have also tried

ld simple.o -lm -lc crt0.o gcrt
but get a bunch of undefined references.

Thanks,
Norman




--
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