On Fri, 5 Oct 2012, Musharaf Hussain wrote:
Hello Nilay,
Thank you very much for your response.
Please see this? Here is another program but same message. Those program from
benchmarks2 that means multiprogram. What is happening here?
back trace is below:
cubic.c lmssim.txt
duff loop3
hise@ubuntu:~/Work$ arm-linux-gnueabi-gcc cubic.c -o cubic -static
/usr/lib/gcc/arm-linux-gnueabi/4.6/../../../../arm-linux-gnueabi/lib/../lib/crt1.o:
In function `_start':
(.text+0x30): undefined reference to `main'
/tmp/ccFsS665.o: In function `SolveCubic':
cubic.c:(.text+0x126): undefined reference to
`sqrt'
cubic.c:(.text+0x13a): undefined reference to `acos'
cubic.c:(.text+0x146): undefined reference to `sqrt'
cubic.c:(.text+0x166): undefined reference to `cos'
cubic.c:(.text+0x192): undefined reference to `sqrt'
cubic.c:(.text+0x1ba): undefined reference to `cos'
cubic.c:(.text+0x1e4): undefined reference to `sqrt'
cubic.c:(.text+0x20c): undefined reference to `cos'
cubic.c:(.text+0x23a): undefined reference to `sqrt'
cubic.c:(.text+0x258): undefined reference to `pow'
collect2: ld returned 1 exit status
Let me ask you a question. Have you ever compiled a C/C++ program before?
--
Nilay
_______________________________________________
gem5-users mailing list
gem5-users@gem5.org
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users