-
-
Notifications
You must be signed in to change notification settings - Fork 474
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
Can't not build in linking parse cause multiple definition.
linker log :
1>Linking objects
1>D:\dev\office_work\TestProject_App_Linux\TestProject_Linux\obj\x64\Debug\WebService.o : error : In function `crow::CORSRules::prefix(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)':
1>D:\dev\office_work\TestProject_App_Linux\TestProject_Linux\crow_all.h(11053): error : multiple definition of `crow::CORSRules::prefix(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
1>D:\dev\office_work\TestProject_App_Linux\TestProject_Linux\obj\x64\Debug\main.o : error : /home/kai/projects/TestProject_App/crow_all.h:11053: first defined here
1>D:\dev\office_work\TestProject_App_Linux\TestProject_Linux\obj\x64\Debug\WebService.o : error : In function `crow::CORSRules::blueprint(crow::Blueprint const&)':
1>D:\dev\office_work\TestProject_App_Linux\TestProject_Linux\crow_all.h(11058): error : multiple definition of `crow::CORSRules::blueprint(crow::Blueprint const&)'
1>D:\dev\office_work\TestProject_App_Linux\TestProject_Linux\obj\x64\Debug\main.o : error : /home/kai/projects/TestProject_App/crow_all.h:11058: first defined here
1>D:\dev\office_work\TestProject_App_Linux\TestProject_Linux\obj\x64\Debug\WebService.o : error : In function `crow::CORSRules::global()':
1>D:\dev\office_work\TestProject_App_Linux\TestProject_Linux\crow_all.h(11063): error : multiple definition of `crow::CORSRules::global()'
1>D:\dev\office_work\TestProject_App_Linux\TestProject_Linux\obj\x64\Debug\main.o : error : /home/kai/projects/TestProject_App/crow_all.h:11063: first defined here
1>collect2 : error : ld returned 1 exit status
1>Done building project "TestProject_Linux.vcxproj" -- FAILED.
It was build in gcc (Ubuntu 7.5.0-3ubuntu1~18.04) 7.5.0
I use MSBuild c++ cross platform compile.
crow version is v1.0+1 Hotfix
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working