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 Date: Thu, 10 Apr 2003 09:18:36 -0400 From: Lester Ingber To: cygwin AT cygwin DOT com Subject: Re: -mno-cygwin and "undefined reference to `_impure_ptr'"? Message-ID: <20030410131836.GA1480@ingber.com> Reply-To: Lester Ingber Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4i X-URL-ALT: http://www.alumni.caltech.edu/~ingber/ Ronald said that "-lm" is not necessary with mingw, even when is needed. I tried this, and my code indeed runs the same without including "-lm". However, I am seeing a strange (to me) problem using -mno-cygwin. I have put two short files, ASA_DLL.tar.gz and CYGWIN_DLL.tar.gz, in my archive. (Postings over 100K are rejected, and it seems that after mime encoding I surpass that limit.) The full link must be specified: www.ingber.com/private/ASA_DLL.tar.gz www.ingber.com/private/CYGWIN_DLL.tar.gz You can test this yourself in ASA_DLL and CYGWIN_DLL ./0run Then delete the output files: Under CYGWIN_DLL rm testPrint Under ASA_DLL rm *out Bring up Excel click on an empty cell Insert->Object->Create From File->Browse click on the .exe file, run_main.exe Then click on the new icon of run_main.exe in the cell, follow the prompts to Open. Now, under CYGWIN_DLL everything works fine, and the new testPrint file has the correct output. Under ASA_DLL, a complaint still is made that it cannot find cygwin1.dll? If you start over again with a new Excel, and just copy /usr/bin/cygwin1.dll into the same ASA_DLL directory (not into any system folder, etc.), everything works just fine, e.g., the correct asa_out and asa_usr_out files are created. If this kludge works, i.e., just copying cygwin1.dll into the same directory, that's OK, but I'd like to find out why this is necessary at all. Lester -- Prof. Lester Ingber ingber AT ingber DOT com ingber AT alumni DOT caltech DOT edu www.ingber.com www.alumni.caltech.edu/~ingber -- 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/