|
From: JV <ver...@ya...> - 2003-10-28 23:35:05
|
Hi,
I am writing a small code that can set and unset the
different output pins of the serial port. I have write
a small test code in dev-c++ 4.0 but I get:
test.cpp:15: implicit declaration of function `int
outport(...)'
However, I have compile it in Borland C++ it works
well. What is the problem.
The test.cpp code:
#include <iostream.h>
#include <conio.h>
#include <dos.h>
#define PORT 0x3F8
#define TXDOFFSET 3
#define TXDHIGH 64
#define TXDLOW 0
int main(){
outport(PORT+TXDOFFSET,TXDHIGH);
return 0;
}
Thanks,
Joeri
__________________________________
Do you Yahoo!?
Exclusive Video Premiere - Britney Spears
http://launch.yahoo.com/promos/britneyspears/
|