Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
Message-ID: <3FAD723E.8050806@behemot.com>
Date: Sat, 08 Nov 2003 23:46:22 +0100
From: Antonio Montano <antonio.montano@behemot.com>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.5) Gecko/20030925
X-Accept-Language: en-us, en
MIME-Version: 1.0
To: cygwin@cygwin.com
Subject: crash with execution under msvc++
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-AntiAbuse: This header was added to track abuse, please include it with any abuse report
X-AntiAbuse: Primary Hostname - mercury.lunarpages.com
X-AntiAbuse: Original Domain - cygwin.com
X-AntiAbuse: Originator/Caller UID/GID - [0 0] / [47 12]
X-AntiAbuse: Sender Address Domain - behemot.com

Hi all, I need to solve a pde under windows. So I got Cygwin with GSL 
sources. Then I wrote a simple application under MSVC++ and the 
compilation was fine. I add to project settings the following libs: 
libgslcblas.a libgsl.dll.a libgslcblas.dll.a libpthread.a.

When I try to start the application I got an access violation with the 
following stack trace:

0005ec90()
mainCRTStartup() line 129 + 6 bytes
KERNEL32! 77ea847c()

where the code in mainCRTStartup is

        /*
         * Get the full Win32 version
         */
        _osver = GetVersion();          <-------------------------------

        _winminor = (_osver >> 8) & 0x00FF ;
        _winmajor = _osver & 0x00FF ;
        _winver = (_winmajor << 8) + _winminor;
        _osver = (_osver >> 16) & 0x00FFFF ;

I tried for hours to understand the problem but nothing ......

I'll appreciate any help. Thanks in advance.

Antonio


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

