delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2003/11/22/01:12:21

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
Date: Sat, 22 Nov 2003 01:11:29 -0500 (Eastern Standard Time)
From: Suresh Venkatasubramanian <suresh AT research DOT att DOT com>
To: Cygwin Mailing List <cygwin AT cygwin DOT com>
Subject: linking 3rd party DLLs to my code.
Message-ID: <Pine.WNT.4.58.0311220105410.448@euclid>
X-X-Sender: suresh AT bigmail DOT research DOT att DOT com
MIME-Version: 1.0

Hi,
  I am trying to link a 3rd party dll to my code. Specifically I have a
library cg.dll and wish to link it using -lcg

Now I read the FAQ section on using DLLs, and unfortunately the library
has stripped symbols (and I have no access to its src) so I can't make the
import libraries as the FAQ describes.

However I am able to link it. putting cg.dll in /usr/local/lib (say) and
compiling with

gcc -mno-cygwin <files> -L/usr/local/lib -lcg

compiles with no complaints.

However, cygcheck complains, saying that it cannot find the dll.

When I place the dll physically in the dir that I am running from however,
the code runs fine. (soft linking doesn't work; the dll has to be
physically placed there).

What might be the problem with what I am doing ? I suspect that I am doing
something wrong to begin with and the fact that I can even link the DLL is
an accident, rather than the other way around. Any help would be greatly
appreciated.

p.s for opengl folks, this is the Cg library from nvidia for programing
shaders.

Suresh Venkatasubramanian, Ph: 973 360 8951 (o)
Member, Technical Staff    Web: http://www.research.att.com/~suresh/
AT&T Shannon Labs

"The guitar is the ideal instrument for anyone who is able to love
loneliness." --Angelo Gilardino

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