I've been trying to get Etrade's API to work. They provide a SDK for c++, and I have been trying to write a basic program in code::blocks using these libraries, but I have been running into a problem. Here is the basic program below:
#include <iostream>
#include <OAuthSDK.h>
using namespace std;
int main()
{
cout<<"here"<<endl;
return 0;
}
The program is giving me an error stating that it can't find SDKDDVer.h. I'm not sure how to fix this error or what this header file actually is. How do I fix this problem so that the program runs?
I am running Code::Blocks version 1.1 on Windows 7. The compiler I use is GNU GCC Compiler.
Description of problem.
I downloaded the ETrade C++ SDK from https://developer.etrade.com/ctnt/dev-portal/getContent?contentUri=Downloads-DocumentationSDKDownloads and I was trying to get it to work. I added the link libraries with the .lib files to the project and the compiler directories containing the .h files. I then built and ran the program shown and getting the errors. I am assuming that the SDKDDVer.h is some header file associated with the visual c++ sdk so I downloaded the redistributable, but I can't find this header file on my pc anywhere so I don't know how to tell codeblocks where it is so it can use it.
Build log:
-------------- Build: Debug in EtradeProject1 (compiler: GNU GCC Compiler)---------------
mingw32-g++.exe -Wall -fexceptions -g -IC:\Lib\libcurl-7.19.3-win32-ssl-msvc\include -IC:\Lib\vc_sdk\Accounts -IC:\Lib\vc_sdk\Market -IC:\Lib\vc_sdk\OAuth -IC:\Lib\vc_sdk\Order -IC:\Lib\vc_sdk\Accounts\ETCOMMON -c C:\Users\jr\Desktop\EtradeProject1\main.cpp -o obj\Debug\main.o
In file included from C:\Lib\vc_sdk\OAuth\ETCOMMON\StdAfx.h:11:0,
from C:\Lib\vc_sdk\OAuth\ETCOMMON\CommonDefs.h:6,
from C:\Lib\vc_sdk\OAuth/OAuthSDK.h:6,
from C:\Users\jr\Desktop\EtradeProject1\main.cpp:2:
C:\Lib\vc_sdk\OAuth\ETCOMMON\targetver.h:8:23: fatal error: SDKDDKVer.h: No such file or directory
compilation terminated.
Process terminated with status 1 (0 minute(s), 0 second(s))
1 error(s), 0 warning(s) (0 minute(s), 0 second(s))
It didn't crash.