#include #include using namespace std; #include "/home/prret/appdynamics/appdynamics-sdk-native/sdk_lib/appdynamics.h" int main() { const char APP_NAME[] = "Sample"; // this Sample Exacutabe aslready exists const char TIER_NAME[] = "SampleCTier1"; //dummy value const char NODE_NAME[] = "SampleCNode1"; //dummy value const char CONTROLLER_HOST[] = "as21p.ch3.dev.i.com"; // server name const int CONTROLLER_PORT = 8880; const char CONTROLLER_ACCOUNT[] = ""; const char CONTROLLER_ACCESS_KEY[] = ""; const int CONTROLLER_USE_SSL = 0; #ifdef _WIN32 const int PROXY_CTRL_PORT = 10101; const int PROXY_REQ_PORT = 10102; const int PROXY_REP_PORT = 10103; #endif appd_config cfg; appd_config_init(&cfg); cfg.app_name = (char*)APP_NAME; //cfg.tier_name = (char*)TIER_NAME; //cfg.node_name = (char*)NODE_NAME; cfg.controller.host = (char*)CONTROLLER_HOST; cfg.controller.port = CONTROLLER_PORT; cfg.controller.account = (char*)CONTROLLER_ACCOUNT; cfg.controller.access_key = (char*)CONTROLLER_ACCESS_KEY; cfg.controller.use_ssl = CONTROLLER_USE_SSL; #ifdef _WIN32 cfg.appd_proxy_config.tcp_control_port = PROXY_CTRL_PORT; cfg.appd_proxy_config.tcp_request_port = PROXY_REQ_PORT; cfg.appd_proxy_config.tcp_reporting_port = PROXY_REP_PORT; #endif cfg.init_timeout_ms = 0; appd_config_init(&cfg); int initRC = appd_sdk_init(&cfg); //this is giving runtime error (Error: int appd_sdk_init(const appd_config*): controller host not specified) if (initRC) { std::cerr << "Error: sdk init: " << initRC << ". Check that proxy was manually started."; return -1; } appd_bt_handle bt = appd_bt_begin("Checkout", NULL); char *str = new char[10000]; memset(str,0,10000); strcpy(str,"pawan kumar"); cout<