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 Message-ID: X-Sender: morogp AT hotmail DOT com From: "cristian gonzalez" To: cygwin AT cygwin DOT com Subject: Problem compiling a program and his libraries Date: Wed, 26 Oct 2005 15:23:51 +0000 Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1; format=flowed Hi.I need help whit cygwin and the compiling of libraries. My problem is this: I have a program with a function within.The program is this: void hello3(); main() { void *lib2; void (*func1)(); hello(); lib2=dlopen("lib2.dll",RTLD_LAZY); func1=dlsym(lib2,"hello2"); (*func1)(); } void hello3() { printf("hello 3"); } The program call to function "hello" ,that is in lib1 wich is compiled against the program, and call to lib2 by means of dlopen and dlsym. The problem is in which lib2 call to lib1 and call to the function "hello3" that is into de program.I need to compiled so that it allows lib2 to call "hello3". I know that this is possible in linux by means of -rdinamyc but this doesn't work in cygwin. I will write you the lib2 in case it helps you: int hello2() { hello(); hello3(); } thanks early -- 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/