I get the error LNK2001 when I try to compile the following code, although I have configured the compiler's additional include directory, and the linker's additional library directory.
#include "stdafx.h"
#include <QCamApi.h>
int _tmain(int argc, _TCHAR* argv[])
{
QCam_Err errcode = qerrSuccess ;
errcode = QCam_LoadDriver();
if(errcode == qerrSuccess){QCam_ReleaseDriver();}
return 0;
}
I also have an example that does work with the same compiler/linker settings
#include <stdio.h>
#include <stdlib.h>
#include <QCamApi.h>
//===== Main ==============================================================
int main(int argc, char* argv[])
{
QCam_Err errcode = qerrSuccess ;
errcode = QCam_LoadDriver();
if(errcode == qerrSuccess) {QCam_ReleaseDriver();}
return 0;
}
yet somehow I can't seem to be able to start this from scratch. Why does it not work if I start an empty project and just paste this code in the .cpp? Sorry if that's a trivial question, and many thanks for your time!