public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* g++ linking
@ 2004-05-27 12:16 Devender Marri
  2004-05-27 20:53 ` Larry Hall
  0 siblings, 1 reply; 2+ messages in thread
From: Devender Marri @ 2004-05-27 12:16 UTC (permalink / raw)
  To: cygwin

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.

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.

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


I went through the mailing list and could not found any relevant requirement.


I appreciate ur help in solving my problem.

Thank you


Regards
Marri Devender Rao
Software Engineer
24, Ang Mo Kio Street 65,
Singapore 569061
Phone: 64131381(O), 65833061(H)


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

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: g++ linking
  2004-05-27 12:16 g++ linking Devender Marri
@ 2004-05-27 20:53 ` Larry Hall
  0 siblings, 0 replies; 2+ messages in thread
From: Larry Hall @ 2004-05-27 20:53 UTC (permalink / raw)
  To: Devender Marri, cygwin

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/

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2004-05-27 17:22 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-05-27 12:16 g++ linking Devender Marri
2004-05-27 20:53 ` Larry Hall

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).