Hi guys!!
I'm trying to develop a program that communicates with a USB device. I've just started playing around with some functions and I need some help.
I wrote the code bellow and when I compile it, I have no errors but when i run it i get the following errors:
1>Rev 4.obj : error LNK2001: unresolved external symbol __RTC_Shutdown
1>Rev 4.obj : error LNK2001: unresolved external symbol __RTC_InitBase
I know that the above errors are to do with not linking some libraries but I have no clue what ones are missing and so i'm thinking it's something to do with the type of project i set up...!?
I set up a Win32 Console application but i'm not sure this is right.
I'm reading Jan Axelson's books but I think I need help setting up the environment, any help would be greatly appreciated.
#include <iostream>
#include <fstream>
#include <string>
#include <Windows.h>
extern "C"
{
#include <hidclass.h>
#include "hidsdi.h"
#include <setupapi.h>
}
int main()
{
return 0;
}
I also read stuff on drivers and that i need to build the environment using "free build environment" or "checked build environment", but do I need to do this when I just want to communicate with a device through another driver. I mean I don't want to build a driver i just want to communicate with the device.
anyway, hope i'm not being to confusing.
Kind regards,
Clio