delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2001/07/19/05:29:25

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT sources DOT redhat DOT com
Delivered-To: mailing list cygwin AT sources DOT redhat DOT com
To: cygwin AT cygwin DOT com
Subject: Question on assert.h
Message-ID: <995534942.3b56a85eed508@imp.free.fr>
Date: Thu, 19 Jul 2001 11:29:02 +0200 (MEST)
From: Steve Lhomme <steve DOT lhomme AT free DOT fr>
MIME-Version: 1.0
User-Agent: IMP/PHP IMAP webmail program 2.2.3
X-Originating-IP: 212.155.249.29

I'm using Cygwin to compile some MinGW32 stuff. And I have some assert() calls 
in my code. But if I understand correctly when I use the -mno-cygwin --
target=i386-mingw32 option I get the follwing include path :

GNU CPP version 2.95.3-4 (cygwin special) (80386, BSD syntax)
#include "..." search starts here:
#include <...> search starts here:
 .
 /usr/include/g++-3
 /usr/lib/gcc-lib/i686-pc-cygwin/2.95.3-4/include
 /usr/include
 /usr/include/w32api
End of search list.
The following default directories have been omitted from the search path:
End of omitted list.

The problem is that there is an assert.h in /usr/include and one 
in /usr/include/w32api
The one from /usr/include has something like #define assert(x) __assert(...
The one from /usr/include/w32api has something like #define assert(x) _assert
(...

And on the link, I get the following error :
AEncodeProperties.o: In function `AEncodeProperties::GetChannelModeString(int) 
const':
/cygdrive/e/users/slhomme/lame/out_lame/AEncodeProperties.cpp:332: undefined 
reference to `__assert'

I think it should look for _assert and not __assert.
So how can I deal with that ??? 

--
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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019