Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , 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 To: Cygwin Mailing List Subject: linking 3rd party DLLs to my code. Message-ID: X-X-Sender: suresh AT bigmail DOT research DOT att DOT com MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII 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 -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/