This is the mail archive of the mailing list for the Cygwin project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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

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:
AT&T Shannon Labs

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

Unsubscribe info:
Problem reports:

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]