Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT sources DOT redhat DOT com Delivered-To: mailing list cygwin AT sources DOT redhat DOT com From: "Markus Hoenicka" MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <14997.19805.646000.55427@gargle.gargle.HOWL> Date: Thu, 22 Feb 2001 17:33:17 +0000 (CT0) To: cygwin AT cygwin DOT com Subject: Re: building DLLs (was:RE: New user help - dont understand Mount (and the rest)) In-Reply-To: <3A93E3C3.E2DF2A52@ece.gatech.edu> References: <14995 DOT 193 DOT 753000 DOT 902610 AT gargle DOT gargle DOT HOWL> <000a01c09b97$bcd7a530$b01661c7 AT holstein-mobile DOT ASPECTDV DOT COM> <14995 DOT 57435 DOT 403000 DOT 883588 AT gargle DOT gargle DOT HOWL> <3A93E3C3 DOT E2DF2A52 AT ece DOT gatech DOT edu> X-Mailer: VM 6.75 under Emacs 20.6.1 Charles Wilson writes: > building DLL's from C++ is not as well-studied as C. Take a look at the > makefile in the /ncurses/c++/ directory from the > ncurses-5.2-4-src.tar.gz tarball on any cygwin mirror for a clue. Or, > for a smaller download, look at > > http://www.neuro.gatech.edu/users/cwilson/cygutils/dllhelpers-0.2.6.tar.gz > > which is based on Mumit's original 0.2.5 version. > > Unfortunately, I've got a deadline or I'd address this question a little > more thoroughly. I'll try to get back to it this weekend. This is what I finally got with the info in the dllhelpers package. I did those steps to build the dll: $ dlltool --export-all --output-def libosp_.def ../*.o $ dlltool --dllname libosp.dll --def libosp_.def --output-lib libosp.a $ dllwrap --driver-name g++ --def libosp_.def -o libosp.dll ../*.o --dllname li bosp.dll strip libosp.dll cp libosp.dll /usr/local/bin And then I built one of the SP apps: $ c++ -g -O2 -o onsgmls nsgmls.o SgmlsEventHandler.o RastEventHandler.o StringS et.o nsgmls_inst.o ../lib/.libs/libosp.a This gets me pretty close to what I need. onsgmls runs properly and creates all output that I expect. But instead of exiting gracefully I get a popup reading: The instruction at "0xWhatever" referenced memory at "0xSomething". The memory could not be "read". Click on OK to terminate the application. I'd appreciate any hints as to what this means for the lib creation or the app creation steps. regards, Markus -- Markus Hoenicka, PhD UT Houston Medical School Dept. of Integrative Biology and Pharmacology 6431 Fannin MSB4.114 Houston, TX 77030 (713) 500-6313, -7477 (713) 500-7444 (fax) Markus DOT Hoenicka AT uth DOT tmc DOT edu http://ourworld.compuserve.com/homepages/hoenicka_markus/ -- Want to unsubscribe from this list? Check out: http://cygwin.com/ml/#unsubscribe-simple