Forum Discussion
Altera_Forum
Honored Contributor
20 years agoNir,
The crt0.o is your startup file. There are a couple of different ones on your machine. There should be one in your /usr/llib directory. This one is for your host machine and looks like it is the one your linker is complaining about. From your comment: <div class='quotetop'>QUOTE </div> --- Quote Start --- When I look under c:\Altera\quartus50\bin\cygwin\usr\lib I do find a crt0.o file there.[/b] --- Quote End --- I would say your Nios II installation is not complete, and has nothing to do with your uClinux installation. Try something simple, pick a full-featured Nios II design in one of the altera example directories. Compile a hello_world.c file against it, then go back and try your uClinux stuff. There should also be several located in your nios2 directories; however, I'm pretty sure these are all the same. Link against these when your building code to execute in a single threaded environment (no uClinux). There will also be be one in your uClibc directory. This is the one you want to link against when building your Linux applicatoins. You can link against the ones in your nios2 directories; however, your applications will bomb when you try to execute them on uClinux. Doug