This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
gcc -fprofile-arcs
- To: bug-gcc at gnu dot org
- Subject: gcc -fprofile-arcs
- From: Daire McNamara <Daire dot McNamara at ul dot ie>
- Date: Fri, 03 Sep 1999 13:42:56 +0100
- Organization: University of Limerick
- Reply-To: Daire dot McNamara at ul dot ie
Hi folks,
I cannot get even a simple source file (see below) to link
when using the following command-line
gcc -fprofile-arcs foo.c
GCC Version
gcc version egcs-2.91.57 19980901 (egcs-1.1 release)
System Type
Windows NT4.0 (Service Pack 3 -- I think) + cygwin (Can't find
a version number).
Compiler Options
gcc -fprofile-arcs foo.c
Exception Log
C:\TEMP\ccgvRZUU.o(.text+0x80):bill.c: undefined reference to
`__bb_init_func'
collect2: ld returned 1 exit status
Source file is as follows:
#include <stdio.h>
int main(void) {
if(1) {
printf("foo\n") ;
}
else {
printf("bar\n") ;
}
return 0 ;
}
Preprocessed output of the source file is attached
regards,
daire.
--
Daire McNamara, Research Fellow, ECE, Foundation Building,
University of Limerick, Ireland.
Ph: +353 61 202703, Fax: +353 61 202572
E-mail Daire.McNamara@ul.ie, http://oak.ece.ul.ie/~namarad
foo.s