_atoll undefined ?!?

Yaakov Selkowitz yselkowitz@users.sourceforge.net
Mon May 24 16:51:00 GMT 2004


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

OK, I have done some looking into this, googled, checked relevant man
pages and the code, but I think I'm missing something.

I'm trying to build a .dll in C, and one of the src files (utils.c)
calls atoll.  Yes, utils.c has a #include <stdlib.h>, and I checked the
output of gcc -E and it's grabbing the right header.  When utils.c is
compiled to .o, there are no warnings or errors.  When linking however,
I get the following error:

.libs/utils.o(.text+0x1191):utils.c: undefined reference to '_atoll'
collect2: ld returned 1 exit status

If I'm not mistaken, _atoll should be in libcygwin.a, but I grepped it
and it's not there (but atol, strtoll, and the other functions defined
in stdlib.h ARE in libcygwin.a).

I've attached cygcheck.out.  What's going on here?


Yaakov

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (Cygwin)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFAsiDNpiWmPGlmQSMRAiNqAJ97niQKepJg42YsUoKNEuj7C35t0QCgtzCZ
LOTWoQF4rVrqcTxsBxTvtmA=
=sQ4B
-----END PGP SIGNATURE-----
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: cygcheck.out
URL: <http://cygwin.com/pipermail/cygwin/attachments/20040524/61da0047/attachment.ksh>
-------------- next part --------------
--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


More information about the Cygwin mailing list