Forum Discussion
Altera_Forum
Honored Contributor
20 years agoIn the header file...../bin/eclipse/plugins/com.microtronix.nios2linux.kernel_1.4.0/linux-2.6.x/include/asm-nios2nommu/io.h
There are # define writew(b,addr) ({ __asm__ __volatile__( "sthio %0, 0(%1)" : : "r"(http://forum.niosforum.com/work2/style_emoticons/<#EMO_DIR#>/cool.gif , "r" (addr)); }) and other application like this.But in my Application Project,when i use writew or other application that has defined in the io.h,there are error undefined reference to `writew',I have include the header file like this# <asm/io.h>.Can anyone tell me why. Thanks. http://forum.niosforum.com/work2/style_emoticons/<#EMO_DIR#>/sad.gif