Forum Discussion
Altera_Forum
Honored Contributor
20 years agoHELP!!
This is my program: # include <stdio.h># include <sys/types.h># include <fcntl.h> int main() { int p_button=NULL; unsigned int x=0; p_button=open("/dev/ttyS0",O_RDWR); if(p_...
Altera_Forum
Honored Contributor
20 years agohi,
I think the problem is with a missing include library; because when it says : "implicite declaration of function read()" it means that the compiler can't find definition of the function. so u must : 1) be shure that all required libraries are included 2) specify the whole path for types.h in :# include <sys/types.h> best regards http://forum.niosforum.com/work2/style_emoticons/<#EMO_DIR#>/biggrin.gif