B
Bill Cunningham
Upon typing this source code and redirecting stderr to bash I received
these errors. The compiled compiled cleanly and the resulting binary typed
this to the screen.
4
4
8
4
#include <stdio.h>
main() {
printf("%i\n",sizeof(int));
printf("%i\n",sizeof(long));
printf("%i\n",sizeof(long long));
printf("%u\n",sizeof(unsigned int ));
return 0;
}
No errors. Using 2>err I received this:
a: In function `_start':
(.text+0x0): multiple definition of `_start'
/usr/bin/../lib/gcc/i686-pc-linux-gnu/3.4.6/../../../crt1.o.text+0x0):
first defined here
a.rodata+0x0): multiple definition of `_fp_hw'
/usr/bin/../lib/gcc/i686-pc-linux-gnu/3.4.6/../../../crt1.o.rodata+0x0):
first defined here
a: In function `_fini':
/usr/src/build/229343-i386/BUILD/glibc-2.3.2-20030227/build-i386-linux/csu/crti.S:51:
multiple definition of `_fini'
/usr/bin/../lib/gcc/i686-pc-linux-gnu/3.4.6/../../../crti.o:/usr/src/build/229343-i386/BUILD/glibc-2.3.2-20030227/build-i386-linux/csu/crti.S:51:
first defined here
a.rodata+0x4): multiple definition of `_IO_stdin_used'
/usr/bin/../lib/gcc/i686-pc-linux-gnu/3.4.6/../../../crt1.o.rodata+0x4):
first defined here
a: In function `__data_start':
(.data+0x0): multiple definition of `__data_start'
/usr/bin/../lib/gcc/i686-pc-linux-gnu/3.4.6/../../../crt1.o.data+0x0):
first defined here
a: In function `__data_start':
(.data+0x4): multiple definition of `__dso_handle'
/usr/bin/../lib/gcc/i686-pc-linux-gnu/3.4.6/crtbegin.o.data+0x0): first
defined here
a: In function `_init':
/usr/src/build/229343-i386/BUILD/glibc-2.3.2-20030227/build-i386-linux/csu/crti.S:35:
multiple definition of `_init'
/usr/bin/../lib/gcc/i686-pc-linux-gnu/3.4.6/../../../crti.o:/usr/src/build/229343-i386/BUILD/glibc-2.3.2-20030227/build-i386-linux/csu/crti.S:35:
first defined here
collect2: ld returned 1 exit status
eh? What's up here?
Bill
these errors. The compiled compiled cleanly and the resulting binary typed
this to the screen.
4
4
8
4
#include <stdio.h>
main() {
printf("%i\n",sizeof(int));
printf("%i\n",sizeof(long));
printf("%i\n",sizeof(long long));
printf("%u\n",sizeof(unsigned int ));
return 0;
}
No errors. Using 2>err I received this:
a: In function `_start':
(.text+0x0): multiple definition of `_start'
/usr/bin/../lib/gcc/i686-pc-linux-gnu/3.4.6/../../../crt1.o.text+0x0):
first defined here
a.rodata+0x0): multiple definition of `_fp_hw'
/usr/bin/../lib/gcc/i686-pc-linux-gnu/3.4.6/../../../crt1.o.rodata+0x0):
first defined here
a: In function `_fini':
/usr/src/build/229343-i386/BUILD/glibc-2.3.2-20030227/build-i386-linux/csu/crti.S:51:
multiple definition of `_fini'
/usr/bin/../lib/gcc/i686-pc-linux-gnu/3.4.6/../../../crti.o:/usr/src/build/229343-i386/BUILD/glibc-2.3.2-20030227/build-i386-linux/csu/crti.S:51:
first defined here
a.rodata+0x4): multiple definition of `_IO_stdin_used'
/usr/bin/../lib/gcc/i686-pc-linux-gnu/3.4.6/../../../crt1.o.rodata+0x4):
first defined here
a: In function `__data_start':
(.data+0x0): multiple definition of `__data_start'
/usr/bin/../lib/gcc/i686-pc-linux-gnu/3.4.6/../../../crt1.o.data+0x0):
first defined here
a: In function `__data_start':
(.data+0x4): multiple definition of `__dso_handle'
/usr/bin/../lib/gcc/i686-pc-linux-gnu/3.4.6/crtbegin.o.data+0x0): first
defined here
a: In function `_init':
/usr/src/build/229343-i386/BUILD/glibc-2.3.2-20030227/build-i386-linux/csu/crti.S:35:
multiple definition of `_init'
/usr/bin/../lib/gcc/i686-pc-linux-gnu/3.4.6/../../../crti.o:/usr/src/build/229343-i386/BUILD/glibc-2.3.2-20030227/build-i386-linux/csu/crti.S:35:
first defined here
collect2: ld returned 1 exit status
eh? What's up here?
Bill