Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Delivered-To: mailing list cygwin@cygwin.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@cygwin.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@fastmail.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/