delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2003/06/09/19:20:23

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
Message-ID: <20030609232009.89482.qmail@web21506.mail.yahoo.com>
Date: Mon, 9 Jun 2003 16:20:09 -0700 (PDT)
From: JS <etoilee_nuit AT yahoo DOT com>
Subject: Re: Help! (creating a dynamically linked shared library)
To: cygwin AT cygwin DOT com
In-Reply-To: <Pine.CYG.4.55.0306092312050.4028@ellixia>
MIME-Version: 1.0

Hi Elfyn,
   It compiled! Thanks. =)  But now I'm trying to
build the .lib and main program in DOS, and DOS isn't
finding the function. My command line is:

cl add.cpp function.lib

Do you know why it's not working?  Thanks again!


~Julie


--- Elfyn McBratney <elfyn AT is DOT ubertales DOT co DOT uk> wrote:
> On Mon, 9 Jun 2003, JS wrote:
> 
> > These are the commands I used to create the .lib
> and
> > exports.o files:
> >
> >   gcc -c function.c
> >   dlltool -e exports.o -l function.lib function.o
> >   gcc function.o exports.o -o function.dll
>     ^^^^^^^^^^^^^^
> 
> You need to add the `-shared' flag after invocation
> of gcc eg.,
> `gcc -shared' for shared libs.
> 
> 
> 
> -- 
> Elfyn McBratney (mailto:spambot AT is DOT ubertales DOT co DOT uk)
> Systems Administrator
> ABCtales.com / Ubertales.co.uk
> 
> 
> --
> Unsubscribe info:     
> http://cygwin.com/ml/#unsubscribe-simple
> Problem reports:      
> http://cygwin.com/problems.html
> Documentation:         http://cygwin.com/docs.html
> FAQ:                   http://cygwin.com/faq/
> 


__________________________________
Do you Yahoo!?
Yahoo! Calendar - Free online calendar with sync to Outlook(TM).
http://calendar.yahoo.com

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.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