Forum Discussion
Altera_Forum
Honored Contributor
21 years agoAfter compiling them statically, I just get a "cannot execute" error.
I get this same error if I try to run the program on my development machine. So, it wasn't compiled natively and the nios2-elf-gcc cross-compiler didn't seem build it for the nios2 architecture either. Am I missing something here? Shouldn't I just be able to use "nios2-elf-gcc" to compile a program and have it run on the nios2? I can understand if there are library issues. Perhaps the libraries on my target don't match the libraries for my development environment. But, if I compile the programs statically, it should just come down to a compiler issue.