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 Content-Disposition: inline Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="ISO-8859-1" MIME-Version: 1.0 From: "jianwen wang" To: cygwin AT cygwin DOT com Date: Tue, 12 Nov 2002 03:39:58 -0800 X-Epoch: 1037101198 X-Sasl-enc: GnL+ZsGafcZnFpmYa2N8oQ Subject: some problem on uisng dynamic library Message-Id: <20021112113958.E16742FD25@server3.fastmail.fm> I creat dll file from a simple source file ,use instruction : gcc -c file.c -o file.o gcc -shared -o file.dll file.c And I want to used it in the main function to load the dll file dynamically, using dlopen(), dlsym().. : gcc -o main main.cpp but the program doesn't run . What's wrong with it ? -- Jianwen Wang jianwen_wang AT fastmail DOT fm -- http://fastmail.fm - Access your email from home and the web -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/