* sh-elf behavior
@ 2000-07-05 21:41 Sathish Vasudevaiah
0 siblings, 0 replies; only message in thread
From: Sathish Vasudevaiah @ 2000-07-05 21:41 UTC (permalink / raw)
To: Cross Gcc mailing list
I have built a sh-elf cross-compiler with the
following:
egcs-20000626
binutils-2.10
newlib-1.8.2
I also have access to the Cygnus GnuPro-99r1
sh-elf cross compiler.
Now I seem to have two problems ...
- With the following piece of code, gnupro
compiler gives no errors, but the egcs compiler
gave the 'strcmp function implicitly declared' error and
aborted.
void f()
{
int n;
n=strcmp("s","a");
}
Gnupro compiler seem to include the C header files
implicitly whereas the egcs compiler doesn't. If i
add the "#include <string.h>" the error goes away.
However I need to work with a large source base built
for gnupro compiler and hence the problem.
- second problem is that the gnupro compiler is including
the c library eventhough the following options are
specified for the linker:
-nostartfiles -nodefaultlibs -nostdlib
I didn't specify -nostdinc to preprocessor because the
source base needs standard header files but not the
standard libraries.
How can I control these two behaviors ?
thanks
sathish
-
------
Want more information? See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to crossgcc-unsubscribe@sourceware.cygnus.com
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2000-07-05 21:41 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-07-05 21:41 sh-elf behavior Sathish Vasudevaiah
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).