delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2001/03/21/18:10:57

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
X-Apparently-From: <earnie?boyd AT yahoo DOT com>
Message-ID: <3AB934BD.D75D5185@yahoo.com>
Date: Wed, 21 Mar 2001 18:09:49 -0500
From: Earnie Boyd <earnie_boyd AT yahoo DOT com>
Reply-To: Earnie Boyd <cygwin AT cygwin DOT com>
X-Mailer: Mozilla 4.76 [en] (WinNT; U)
X-Accept-Language: en
MIME-Version: 1.0
To: Nate Lawson <nate AT rootlabs DOT com>
CC: cygwin AT cygwin DOT com
Subject: Re: dllcrt2.o not found
References: <Pine DOT BSF DOT 4 DOT 21 DOT 0103211131310 DOT 89604-100000 AT rootlabs DOT com>

Nate Lawson wrote:
> 
> Thanks for the help getting the dll to compile.  It worked.  However, I'm
> still having linking problems.
> 
> 1. Does it matter whether a DLL is linked in character or windows
> mode?  (It makes no GDI calls).
> 2. Should I use gcc -shared or gcc -mdll to build?
> 3. Why can't it find dllcrt2.o?  I've tried adding -lmsvcrt or -ldllcrt
> but no luck.
> 
> Here is my linking line:
> gcc -mwindows -mno-cygwin -DDBG -s -Wl,--out-implib,Packet.a
> -mdll -o Packet.dll Packet.def Packet32.o -L /usr/lib/mingw
> /usr/lib/gcc-lib/i686-pc-cygwin/gcc-2.95.2-9/../../../../i686-pc-cygwin/bin/ld:
> cannot open dllcrt2.o: No such file or directory
> collect2: ld returned 1 exit status
> make: *** [main] Error 1
> 

Did you install the mingw package?  The -mno-cygwin indicates to gcc
that you want to build mingw programs.  

Earnie.

_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com


--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple

- Raw text -


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