From: Starling <wassdamo@pacbell.net>
To: gcc-help@gcc.gnu.org
Subject: Re: library functions not compiling
Date: Fri, 12 Sep 2003 19:47:00 -0000 [thread overview]
Message-ID: <87fzj2ch5i.fsf@pacbell.net> (raw)
In-Reply-To: <GBEOKKOEOGFDMKDFCHIMIEFICAAA.aaron.case@dynazign.com>
"Aaron Case" <aaron.case@dynazign.com> writes:
> Seems like its should be a linking problem right?
>
> DSPTSUBS.C:864: `itoa' undeclared (first use this function)
That's a compiling problem, AFAIK. The itoa variable has to be
declared before it can be used, so you're probably #including things
either in the wrong order or at the wrong time, or you might be
missing headers even though you checked. (I had that problem trying
to use conio.h in Linux for the longest time.)
Oh, and I hate to break this to you but it's probably just a typo.
itoa is a function, not a variable, so it needs the argument list with
parentheses.. If the itoa function really had not been found your
error would have been "undefined reference to `itoa'." Since the C
language doesn't require prototypes, that would be a linker error
since the compilation goes fine.
Also with linker errors, it lists the object file as a prefix, so if
your problem were a linker error you would see
DSPTSUBS.o(.text+0x..): error message here
Starling
prev parent reply other threads:[~2003-09-12 19:47 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-09-12 14:41 Aaron Case
2003-09-12 19:47 ` Starling [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87fzj2ch5i.fsf@pacbell.net \
--to=wassdamo@pacbell.net \
--cc=gcc-help@gcc.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).