linux-c-programming.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* gcc -static -ggdb not working
@ 2005-10-26  5:39 fabio
  2005-10-26  7:31 ` Steve Graegert
  0 siblings, 1 reply; 3+ messages in thread
From: fabio @ 2005-10-26  5:39 UTC (permalink / raw)
  To: linux-c-programming

Hello, I wonder why I cant dbug C programs on Solaris/sparc with gcc:

-bash-3.00$ cat 1.c;\gcc -static -ggdb 1.c -o 1
main(){
        printf("hello world\n");
}
ld: fatal: library -lc: not found
ld: fatal: library -lc: not found
ld: fatal: File processing errors. No output written to 1
collect2: ld returned 1 exit status
-bash-3.00$

I use the "\" to avoid bash aliases.

Thanks for the help,

fabio

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2005-10-26  7:31 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-10-26  5:39 gcc -static -ggdb not working fabio
2005-10-26  7:31 ` Steve Graegert
2005-10-26  7:28   ` fabio

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 NNTP newsgroup(s).