Hopson97 / Empire

A cellular automaton I made up myself, written in C++/ SFML
MIT License
147 stars 31 forks source link

GCC/Clang compile errors on Linux #12

Closed Spartan322 closed 6 years ago

Spartan322 commented 6 years ago
CMakeFiles/empire.dir/Source/Sim/World.cpp.o: In function `std::_MakeUniq<CustomColonyCreator>::__single_object std::make_unique<CustomColonyCreator, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&>(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)':
World.cpp:(.text._ZSt11make_uniqueI19CustomColonyCreatorJRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEENSt9_MakeUniqIT_E15__single_objectEDpOT0_[_ZSt11make_uniqueI19CustomColonyCreatorJRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEENSt9_MakeUniqIT_E15__single_objectEDpOT0_]+0x36): undefined reference to `CustomColonyCreator::CustomColonyCreator(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
CMakeFiles/empire.dir/Source/Sim/World.cpp.o: In function `std::_MakeUniq<RandomColonyCreator>::__single_object std::make_unique<RandomColonyCreator, int const&>(int const&)':
World.cpp:(.text._ZSt11make_uniqueI19RandomColonyCreatorJRKiEENSt9_MakeUniqIT_E15__single_objectEDpOT0_[_ZSt11make_uniqueI19RandomColonyCreatorJRKiEENSt9_MakeUniqIT_E15__single_objectEDpOT0_]+0x36): undefined reference to `RandomColonyCreator::RandomColonyCreator(int)'
CMakeFiles/empire.dir/Source/Sim/World.cpp.o: In function `CustomColonyCreator::~CustomColonyCreator()':
World.cpp:(.text._ZN19CustomColonyCreatorD2Ev[_ZN19CustomColonyCreatorD5Ev]+0xf): undefined reference to `vtable for CustomColonyCreator'
CMakeFiles/empire.dir/Source/Sim/World.cpp.o: In function `RandomColonyCreator::~RandomColonyCreator()':
World.cpp:(.text._ZN19RandomColonyCreatorD2Ev[_ZN19RandomColonyCreatorD5Ev]+0xf): undefined reference to `vtable for RandomColonyCreator'

when compiled with Clang 4.0.1 and GCC 7.1.1 20170630 ensuring the C++14 standard

Hopson97 commented 6 years ago

Forgot to add some new files to the CMake

This might be fixed now, but I am not sure :P

Spartan322 commented 6 years ago

You forgot to add RandomColonyCreatoy.cpp to the CMakeLists.txt still.

Hopson97 commented 6 years ago

ok 2 secs

Hopson97 commented 6 years ago

done

Spartan322 commented 6 years ago

thanks, its good now.