Subject: Re: assert.h and undefined assert() in ld
From: [email-masked] (raf)

17 Mar 1998 14:28:05 -0800
Message-ID: <[email-masked]>
To: [email-masked]

>What's the trick to getting assert to work?  Compiles fine, linker bails
>with undefined reference to assert().  What flag do I need to include the
>assert.
>(FWIW, I don't need to do anything special to make assert work under gcc for
>Solaris)

just guessing:

	#include <assert.h>

if you already are doing this, look at assert.h to see what the
problem is. try gcc -E to see what's coming out of cpp, ...

raf

-
For help on using this list (especially unsubscribing), send a message to
"[email-masked]" with one line of text: "help".