This is the mail archive of the
cygwin@cygwin.com
mailing list for the Cygwin project.
Question on assert.h
- To: cygwin at cygwin dot com
- Subject: Question on assert.h
- From: Steve Lhomme <steve dot lhomme at free dot fr>
- Date: Thu, 19 Jul 2001 11:29:02 +0200 (MEST)
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/