This is the mail archive of the crossgcc@sources.redhat.com mailing list for the crossgcc project.
See the CrossGCC FAQ for lots more information.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
Hi, > Error: > -------------------------------------------------------------- > -------------------- > Administrator@VVISWANA-W2K /cygdrive/c/User/Ram/Code/gcctest > $ arm-elf-gcc -v -g Hello.c -o Hello.exe <snip> >/cygdrive/c/DOCUME~1/rram/LOCALS~1/Temp/ccUX6iCB.o: In function > `main': >/cygdrive/c/User/Ram/Code/gcctest/Hello.c:14: undefined reference > to `pow' >collect2: ld returned 1 exit status Try this $ arm-elf-gcc -v -g Hello.c -o Hello.exe -lm (if you use math functions, you need to link to the math library) Jan ------ Want more information? See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/ Want to unsubscribe? Send a note to crossgcc-unsubscribe@sources.redhat.com
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |