@@ -8,10 +8,16 @@
 
 #include "network/linkers.h"
 
-int main(int argc, char** argv) {
+int main(int /*argc*/, char** /*argv*/) {
   bool success = false;
+  std::string config_str = std::string("config=train.conf");
+  char* argv = new char[config_str.size() + 1];
+  for (size_t i = 0; i < config_str.size(); ++i) {
+    argv[i] = config_str[i];
+  }
+  argv[config_str.size()] = '\0';
   try {
-    LightGBM::Application app(argc, argv);
+    LightGBM::Application app(2, &argv - 1);
     app.Run();
 
 #ifdef USE_MPI
/*!
 * Copyright (c) 2016 Microsoft Corporation. All rights reserved.
 * Licensed under the MIT License. See LICENSE file in the project root for license information.
 */
#include <LightGBM/application.h>

#include <iostream>

#include "network/linkers.h"

int main(int argc, char** argv) {
  bool success = false;
  try {
    LightGBM::Application app(argc, argv);
    app.Run();

#ifdef USE_MPI
    LightGBM::Linkers::MpiFinalizeIfIsParallel();
#endif

    success = true;
  }
  catch (const std::exception& ex) {
    std::cerr << "Met Exceptions:" << std::endl;
    std::cerr << ex.what() << std::endl;
  }
  catch (const std::string& ex) {
    std::cerr << "Met Exceptions:" << std::endl;
    std::cerr << ex << std::endl;
  }
  catch (...) {
    std::cerr << "Unknown Exceptions" << std::endl;
  }

  if (!success) {
#ifdef USE_MPI
    LightGBM::Linkers::MpiAbortIfIsParallel();
#endif

    exit(-1);
  }
}

these codes are for debugging?