Forum Discussion
Altera_Forum
Honored Contributor
19 years agoThanks for the tip, that worked out for me. At first I was confused because the linker was already pulling in libc.a, just not the right libc.a. I had to update my link line as so:
nios2-elf-gcc -o <some executable> {object files} -v -l/cygdrive/c/altera/kits/nios2_51/bin/eclipse/plugins/com.microtronix.nios2linux.uclibc_1.4.0/lib -lc When I search for all the libc.a files under the nios2_51, I end up with many different copies, presumably for different configurations. Is there a document somewhere that describes the differences between ...\nios2_51\bin\nios2-gnutools\H-i686-pc-cygwin\nios2-elf\lib\mhw-mulx, ...\nios2_51\bin\nios2-gnutools\H-i686-pc-cygwin\nios2-elf\lib\mno-hw-mul, and so on? Thx, -SQ --- Quote Start --- originally posted by hippo@May 24 2006, 10:21 PM hi squreshi,welcome.
you need to link with libc for nios ii uclinux.
there is a nios wiki now, http://nioswiki.jot.com/wikihome (http://nioswiki.jot.com/wikihome) .
you can work on linux. there is a nios ii cross compiler built with uclibc for uclinux.
you can install binary toolchain, http://nioswiki.jot.com/wikihome/operating...binarytoolchain (http://nioswiki.jot.com/wikihome/operatingsystems/binarytoolchain) .
use uclinux-dsit to build your kernel,
http://nioswiki.jot.com/wikihome/operating...ems/uclinuxdist (http://nioswiki.jot.com/wikihome/operatingsystems/uclinuxdist)
and compile your app,
http://nioswiki.jot.com/wikihome/operating...ms/compilehello (http://nioswiki.jot.com/wikihome/operatingsystems/compilehello)
<div align='right'><{post_snapback}> (index.php?act=findpost&pid=15566)
--- quote end ---
--- Quote End ---