Forum Discussion
Altera_Forum
Honored Contributor
22 years agoProblem with libc.a
Hi All, I've got my Linux v1.1 up and running beautifully, but as soon as I try to compile ANYTHING that was not supplied by either ALTERA or MICROTRINIX I run into the same snag over and o...
Altera_Forum
Honored Contributor
22 years agoHi wentao,
That is exactly what I thought, but now for the golden question. How do I link to the uClibc libraries? Where do I set what? The problem is that I did not write the Makefile http://forum.niosforum.com/work2/style_emoticons/<#EMO_DIR#>/sad.gif It is auto generated by automake and a bunch of other auto tools. Now I don’t know which arguments to pass to any of the auto tools to get it to generate a Makefile for the NIOS II. I don’t even know how to use the auto tools out of the IDE. From the SDK shell you just run ./autogen.sh and of it goes, BUT it generates a Makefile for the cygwin “sub”system. If I then change the compiler tools manually to the NIOS II toolchain I get the above mentioned errors. I have a suspicion that if you don’t pass library arguments to nios2-elf-gcc or nios2-build that it uses the newlib libraries by default, but I haven’t been able to test it since I don’t know the args to pass http://forum.niosforum.com/work2/style_emoticons/<#EMO_DIR#>/smile.gif Any suggestions and more info would help a heap Thanks everyone.