楼主 编译错误 能帮忙看看什么问题么
- [ 1%] Built target fmt
- [ 2%] Built target Recast
- [ 2%] Built target Detour
- [ 5%] Built target g3dlib
- [ 5%] Built target gsoap
- [ 5%] Built target mpq
- [ 8%] Built target jemalloc
- [ 8%] Built target revision_data.h
- [ 12%] Built target common
- [ 12%] Built target vmap4assembler
- [ 13%] Built target vmap4extractor
- [ 14%] Built target mapextractor
- [ 16%] Built target database
- [ 17%] Built target mmaps_generator
- [ 18%] Built target shared
- [ 19%] Built target authserver
- [ 42%] Built target game
- Scanning dependencies of target scripts
- [ 42%] Building CXX object src/server/scripts/CMakeFiles/scripts.dir/Custom/custom_script_loader.cpp.o
- /home/wow/TrinityCore/src/server/scripts/Custom/custom_script_loader.cpp:23:1: error: C++ requires a type specifier for all declarations
- AddSC_CustomPlayerLogin();
- ^
- 1 error generated.
- src/server/scripts/CMakeFiles/scripts.dir/build.make:1127: recipe for target 'src/server/scripts/CMakeFiles/scripts.dir/Custom/custom_script_loader.cpp.o' failed
- make[2]: *** [src/server/scripts/CMakeFiles/scripts.dir/Custom/custom_script_loader.cpp.o] Error 1
- CMakeFiles/Makefile2:1499: recipe for target 'src/server/scripts/CMakeFiles/scripts.dir/all' failed
- make[1]: *** [src/server/scripts/CMakeFiles/scripts.dir/all] Error 2
- Makefile:127: recipe for target 'all' failed
- make: *** [all] Error 2
复制代码
- /*
- * Copyright (C) 2008-2019 TrinityCore <https://www.trinitycore.org/>
- *
- * This program is free software; you can redistribute it and/or modify it
- * under the terms of the GNU General Public License as published by the
- * Free Software Foundation; either version 2 of the License, or (at your
- * option) any later version.
- *
- * This program is distributed in the hope that it will be useful, but WITHOUT
- * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
- * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
- * more details.
- *
- * You should have received a copy of the GNU General Public License along
- * with this program. If not, see <http://www.gnu.org/licenses/>.
- */
-
- // This is where scripts' loading functions should be declared:
- void AddSC_CustomPlayerLogin();
-
- // The name of this function should match:
- // void Add${NameOfDirectory}Scripts()
- AddSC_CustomPlayerLogin();
- void AddCustomScripts()
- {
- }
复制代码
|