This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: link question


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
> 



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]