From: nicw <nic...@vu...> - 2009-02-11 01:14:40
|
Hi I am new to C++ and am having trouble linking a canon sdk library (this probably has a very simple solution). I am using the windows gcc complier and a text editor. The code below is basically just trying to initialise and terminate the SDK. #include "EDSDK.h" #include "EDSDKTypes.h" #include "EDSDKErrors.h" #include "EDSDK.lib" void applicationRun() { // Initialise SDK err=EdsInitializeSDK(); if(err==EDS_ERR_OK) { (isSDKLoaded)=true; } // Terminate SDL if(isSDKLoaded) { EdsTerminateSDK(); } } The problem I am having is the complier doesnt seem to be recognising the lib file and I am getting errors as below (which continue right to the end of the lib file): In file included from test2.cpp:4: EDSDK.lib:1: error: expected unqualified-id before '!' token EDSDK.lib:2: error: stray '`' in program In file included from test2.cpp:4: EDSDK.lib:3:1: warning: null character(s) ignored EDSDK.lib:3:5: warning: null character(s) ignored EDSDK.lib:3: error: stray '\25' in program Any help would be appreciated. Thanks Nicola -- View this message in context: http://www.nabble.com/linking-library-tp21946485p21946485.html Sent from the MinGW - User mailing list archive at Nabble.com. |