This is the mail archive of the cygwin@cygwin.com 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]

some problem on uisng dynamic library


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/


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