From 1cf7ef84b26ca0efda3da459d219939e92dfc990 Mon Sep 17 00:00:00 2001 From: antao Date: Fri, 7 Sep 2018 19:03:31 +0800 Subject: [PATCH] Update drogon_ctl --- drogon_ctl/create_view.cc | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/drogon_ctl/create_view.cc b/drogon_ctl/create_view.cc index 983b21d6..0a6ed920 100755 --- a/drogon_ctl/create_view.cc +++ b/drogon_ctl/create_view.cc @@ -180,14 +180,23 @@ void create_view::newViewHeaderFile(std::ofstream &file,const std::string &class void create_view::newViewSourceFile(std::ofstream &file,const std::string &className,std::ifstream &infile) { - file << "//this file is generated by program automatically,don't modify it!\n"; + file << "//this file is generated by program(drogon_ctl) automatically,don't modify it!\n"; file << "#include \"" << className << ".h\"\n"; + file <<"#include \n"; file <<"#include \n"; file <<"#include \n"; file <<"#include \n"; file <<"#include \n"; file <<"#include \n"; file <<"#include \n"; + file <<"#include \n"; + file <<"#include \n"; + file <<"#include \n"; + file <<"#include \n"; + file <<"#include \n"; + file <<"#include \n"; + + file <<"using namespace std;\n"; // file <<"void __attribute__((constructor)) startup()\n"; // file <<"{std::cout<<\"dynamic lib start to load!\"<