Linking Error /outportb
-
Hello, I received an error message when i tried to send serial port the datas with outportb. %Starting with dos.h library ... int port=0x378; outportb(int port, unsigned int); ... ... for ( i=0 ; i<8 ; i++) { outportb(port,member.u8value[i]); } ... Error Message ==> [Linker Error] Unresolved external '_outportb' referenced from H:\INTERFACE\INTERFACE.OBJ (Interface is the file in which all datas are saved) What could be the problem? Thanks for your tricks in advance. Regards, Cahit
-
Hello, I received an error message when i tried to send serial port the datas with outportb. %Starting with dos.h library ... int port=0x378; outportb(int port, unsigned int); ... ... for ( i=0 ; i<8 ; i++) { outportb(port,member.u8value[i]); } ... Error Message ==> [Linker Error] Unresolved external '_outportb' referenced from H:\INTERFACE\INTERFACE.OBJ (Interface is the file in which all datas are saved) What could be the problem? Thanks for your tricks in advance. Regards, Cahit
In Windows NT and later, you cannot directly access serial ports. But check this article[^] See Part 5 for a link to the source to inpout32.dll, which can be used in NT +
Alcohol. The cause of, and the solution to, all of life's problems - Homer Simpson