delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2004/05/27/13:22:40

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/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
Reply-To: Cygwin List <cygwin AT cygwin DOT com>
Message-Id: <6.1.0.6.0.20040527130940.0320b010@pop.theworld.com>
X-Sender:
Date: Thu, 27 May 2004 13:17:01 -0400
To: "Devender Marri" <Devender AT stts DOT com DOT sg>, <cygwin AT cygwin DOT com>
From: Larry Hall <cygwin-lh AT cygwin DOT com>
Subject: Re: g++ linking
In-Reply-To: <69596D9C5887874E9A35F6C8DF94B2AB7EA28E@nautilus>
References: <69596D9C5887874E9A35F6C8DF94B2AB7EA28E AT nautilus>
Mime-Version: 1.0

At 05:57 AM 5/27/2004, you wrote:
>Hi,
>
>I am not able to link one of my program using g++, so looking forward for some help.
>
>I am having a library(util.lib) and dll(util.dll) file.
>
>I am trying to link my program to the dll and getting undefined reference error where as the same thing works if I try in linux environment.


I think you're implying something about your Linux environment here but
I'm not sure.  Certainly as stated and making no assumptions, you can't 
link your program with a DLL on Linux.  I point this out just so you 
recognize that your statement is unclear and that it colors my response.


>when I try to list the symbols from the dll it returns nothing.
>When I try to list the symbos from the library file it returns the symbol for the function I am looking for.


And the library is what?  An import library?  A static library?  Where do 
the DLL and LIB come from?  How were they built?  Perhaps you need to 
provide the actual sequence of steps you're taking and the results you
get.


>I want to know is there any way I can use g++ to link using the library file rather than the dll I rememeber in Microsoft Visual c++ we specifiy library file rather than dll).


And this doesn't work for you with g++ because?


>I went through the mailing list 


Good to hear!


>and could not found any relevant requirement.
>


Unfortunately, everything there is not gold.  And sometimes the gold is
hidden.


--
Larry Hall                              http://www.rfk.com
RFK Partners, Inc.                      (508) 893-9779 - RFK Office
838 Washington Street                   (508) 893-9889 - FAX
Holliston, MA 01746                     


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