Andrew Otwell wrote:
>
> same problem. I'm trying though
>
> bash-2.03$ gcc -static -nostdlib -L/usr/lib \
> > -lalias -lalias_p -lc -lc_p -lc_pic -lcalendar -lcalendar_p -lcom_err -lcom_err_p \
> > -lcompat -lcompat_p -lcrypt -lcrypt_p -lcurses -lcurses_p \
> > -ldialog -ldialog_p -ldisk -l
Andrew Otwell wrote:
> same problem. I'm trying though
>
> bash-2.03$ gcc -static -nostdlib -L/usr/lib \
> > -lalias -lalias_p -lc -lc_p -lc_pic -lcalendar -lcalendar_p -lcom_err -lcom_err_p \
> > -lcompat -lcompat_p -lcrypt -lcrypt_p -lcurses -lcurses_p \
> > -ldialog -ldialog_p -ldisk -le
when I specify "-bloadmap" I get the following output
int main() {
printf("Hello World!!!\n");
}
*Initialization*:1: warning: `__FreeBSD__' redefined
*Initialization*:1: warning: this is the location of the previous definition
# 1 "/var/tmp/ccWwDByf.i"
gcc: installation problem, c
same problem. I'm trying though
bash-2.03$ gcc -static -nostdlib -L/usr/lib \
> -lalias -lalias_p -lc -lc_p -lc_pic -lcalendar -lcalendar_p -lcom_err -lcom_err_p \
> -lcompat -lcompat_p -lcrypt -lcrypt_p -lcurses -lcurses_p \
> -ldialog -ldialog_p -ldisk -ledit -ledit_p -lf2c -lf2c_p -lfl -lf
Andrew Otwell wrote:
>
> source.c
> -
> #include
> int main () {
>printf ("Hello world\n");
> }
> -
>
> A couple of you answered my first query which gave me
>
> gcc -nostdinc -I/includedir -nostdlib -L/libdir source.c
>
> This always fa
Andrew Otwell wrote:
>
> A couple of you answered my first query which gave me
>
> gcc -nostdinc -I/includedir -nostdlib -L/libdir source.c
>
> This always failed with either
>
> ld: No reference to __DYNAMIC
> collect2: ld returned 1 exit status
>
info gcc
gcc -v -static -nostdinc
source.c
-
#include
int main () {
printf ("Hello world\n");
}
-
A couple of you answered my first query which gave me
gcc -nostdinc -I/includedir -nostdlib -L/libdir source.c
This always failed with either
ld: No reference to __DYNAM
7 matches
Mail list logo