From: Peeter V. <Pee...@ma...> - 2002-05-01 15:53:52
|
Hi, * Inside makefile.in deleteted line 35 $ autoconf $ ./configure --enable-dbglib=yes --with-allegro=no --with-allegroprogs=no $ make clean $ make # make install * My test file (which worked on dos) $ gcc -g main.c -o seerial -ldzcom *------------------------- * Compilation now WORKS. *------------------------- I'll send You the main.c and the_port.ini file. I Have ttyS0 on my computer. This program writes out bytes with values 0..255 and if something comes in then the value will be shown. So direct feedback (pins 2 and 3 shorted on dsub9) is used to take the same bytes back in. I ran this and saw with scope that bytes are going out but program receives nothing. Under dos it worked. To compile this under dos getchar() should be replaced with getch(). I'll search the problem further. Best Regards ... Peeter Vois http://my.tele2.ee/vois |