AWARE SYSTEMS
TIFF and LibTiff Mail List Archive

Thread

1997.03.17 21:00 "undefined symbol "__eprintf" with cc/CC under Solaris 2.4", by Armin Wittmann
1997.03.17 21:44 "Re: undefined symbol "__eprintf" with cc/CC under Solaris 2.4", by Gary Burgess
1997.03.18 07:16 "Re: undefined symbol "__eprintf" with cc/CC under Solaris 2.4", by Karsten Spang

1997.03.18 07:16 "Re: undefined symbol "__eprintf" with cc/CC under Solaris 2.4", by Karsten Spang

Hello Armin

On Sparc I am using the normal cc C-compiler for generating your library.

Are you sure about that, i.e. you did not use gcc?

But on Sparc I always get this undefined symbol "__eprintf" with the final linking procedure.

While compiling your tool not one warning or error occured.

__eprintf is used by the assert macro that comes with gcc. If you compile the library with gcc, it needs this routine, which gcc loads correctly when linking. If you compile with another compiler, the symbol should not be referenced, unless the gcc version of assert.h is somehow included by your program. It is usually in a directory something like /opt/gnu/sparc-sun-sunos5.4/include, /usr/local/gnu/sparc-sun-sunos5.4/include, or similar.

If you use -DNDEBUG when compiling the library, the assert stuff is disabled completely, which is what you normally want in a production version.

Karsten
--------------------------------------------------------------------------------
E-mail: krs@kampsax.dk                                      Karsten Spang
Phone:  +45 36 39 08 00                                     Kampsax Technology
Fax:    +45 36 77 03 01                                     P.O. Box 1142
WWW:    http://www.kampsax.dk/~krs/                         DK-2650 Hvidovre
Refer to my web page for PGP public key                     Denmark