This is the mail archive of the
mailing list for the Cygwin project.
linking 3rd party DLLs to my code.
- From: Suresh Venkatasubramanian <suresh at research dot att dot com>
- To: Cygwin Mailing List <cygwin at cygwin dot com>
- Date: Sat, 22 Nov 2003 01:11:29 -0500 (Eastern Standard Time)
- Subject: linking 3rd party DLLs to my code.
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
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
p.s for opengl folks, this is the Cg library from nvidia for programing
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