1. At first, I have downloaded the last version of Inpout32 from here http://www.highrez.co.uk/Downloads/InpOut32/default.htm
2. Installed the "Installdriver.exe" file as admin, it returned "Succesfuly installed and opened 64bit inpout driver Inpout64.sys"
3. Then I have created a new proyect on Dev-Cpp, with inpout32.lib on the same folder.
May should use inpoutx64.lib? My pc is an AMD Atholon II runing a 64bit version of Windows 7 ultimate
Well, I have created a really easy try program on Dev-Cpp, here the code:
Code: Select all
#include <stdio.h>
#include <stdlib.h>
void _stdcall Out32(short PortAddress, short data);
short _stdcall Inp32(short PortAddress);
int main(){
Out32(0xCD00,255); // yes! my LPT is on 0xCD00
return 0;
}
When I try to compile it gives an error "[Linker Error] undefined reference to `Out32(short, short)@8'"
I try to link on Proyect Options/Additional options on comand line/Linker -> Add Library or object. adding the inpout32.lib but it doesn´t work, the same error... and the same on CodeBloks compiler.
May I should link not adding the inpout32.lib but with some like -lxxx linker comand?
I have been looking for a solution for a long time, hope you can help me, and sorry again about my bad english...