This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: link question
- To: martin at loewis dot home dot cs dot tu-berlin dot de
- Subject: Re: link question
- From: "Melissa G. Vasquez" <mvasquez at ausinfo dot com>
- Date: Thu, 06 Jan 2000 08:56:45 -0600
- Cc: amylaar at cygnus dot co dot uk,gcc at gcc dot gnu dot org
Thank you,
StdWindow.cc did include that header file, however I discovered there were
3 different assert.h files. There was /usr/include/assert.h,
/usr/ucbinclude/assert.h, and
/opt/local/lib/gcc-lib/sparc-sun-solaris2.6/2.95.1/include/assert.h. I
re-compiled StdWindow.cc with -I/usr/include in front and then where ever
assert was used it linked fine.
Thanks,
Melissa G. Vasquez
mvasquez@ausinfo.com
At 12:04 AM 1/5/00 +0100, you wrote:
>> assert
>> /export/home/ccm/cats/lib/libxutil.a(StdWindow.o)
>> ld: fatal: Symbol referencing errors. No output written to TB_tooltest
>[...]
>> Any suggestions?
>
>assert is not a function, but a macro provided by <assert.h>. I guess
>StdWindow.cc does not include that header file.
>
>Regards,
>Martin
>