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!\"<