Hi I'm trying to test control a canon camera via usb in c++ (eventually I want to use it on labview). I'm trying to initialise the camera before I use any other functions, firstly I have the lib and dll files provided with the canon SDK but I don't think I've included them correctly since I get an unresolved external error
1>EDSDK.obj : error LNK2019: unresolved external symbol __imp__EdsInitializeSDK@0 referenced in function _main
I'm pretty much new to c++ so I don't have the best idea of what I'm doing, would anyone have any suggestions on how I could get this initialization to work? Also on how to include the lib and dll files correctly? Below is the code I've written.
#include "EDSDK.h"
#include "EDSDKErrors.h"
#include "EDSDKTypes.h"
#include <stdio.h>
void main(int argc, char **argv)
{
EdsError err = EDS_ERR_OK;
EdsCameraRef camera = NULL;
EdsCameraListRef cameraList = NULL;
EdsUInt32 count = 0;
bool isSDKLoaded = false;
// Initialize SDK
err = EdsInitializeSDK(); // If camera is initialised, err = EDS_ERR_OK
if(err == EDS_ERR_OK)
{
isSDKLoaded = true; // isSDKLoaded is true if initialised
printf("SDK initialised");
}
printf("SDK not-initialised\n");
}