cultrarius / swarmz Goto Github PK
View Code? Open in Web Editor NEWA free, header-only C++ swarming (flocking) library for real-time applications
License: The Unlicense
A free, header-only C++ swarming (flocking) library for real-time applications
License: The Unlicense
It is interesting! Thanks! :-)
Unfortunately I am unable to build the library with Visual Studio 2015.
1>------ Build started: Project: enjambre_msvc2015, Configuration: Debug x64 ------
1> Principal.cpp
1>p:\mis-proyectos\personal\enjambre\inc\swarmz\swarmz.h(121): warning C4305: 'argument': truncation from 'double' to 'float'
1>p:\mis-proyectos\personal\enjambre\inc\swarmz\swarmz.h(194): warning C4305: 'initializing': truncation from 'double' to 'float'
1>p:\mis-proyectos\personal\enjambre\inc\swarmz\swarmz.h(262): warning C4244: 'argument': conversion from 'unsigned __int64' to 'float', possible loss of data
1>p:\mis-proyectos\personal\enjambre\inc\swarmz\swarmz.h(265): warning C4244: 'argument': conversion from 'unsigned __int64' to 'float', possible loss of data
1>p:\mis-proyectos\personal\enjambre\inc\swarmz\swarmz.h(268): warning C4244: 'argument': conversion from 'unsigned __int64' to 'float', possible loss of data
1>p:\mis-proyectos\personal\enjambre\inc\swarmz\swarmz.h(337): warning C4244: '=': conversion from 'int' to 'float', possible loss of data
1>p:\mis-proyectos\personal\enjambre\inc\swarmz\swarmz.h(338): warning C4244: '=': conversion from 'int' to 'float', possible loss of data
1>p:\mis-proyectos\personal\enjambre\inc\swarmz\swarmz.h(339): warning C4244: '=': conversion from 'int' to 'float', possible loss of data
1> Generating Code...
1> Compiling...
1> main.cpp
1>p:\mis-proyectos\personal\enjambre\inc\swarmz\swarmz.h(121): warning C4305: 'argument': truncation from 'double' to 'float'
1>p:\mis-proyectos\personal\enjambre\inc\swarmz\swarmz.h(194): warning C4305: 'initializing': truncation from 'double' to 'float'
1>p:\mis-proyectos\personal\enjambre\inc\swarmz\swarmz.h(262): warning C4244: 'argument': conversion from 'unsigned __int64' to 'float', possible loss of data
1>p:\mis-proyectos\personal\enjambre\inc\swarmz\swarmz.h(265): warning C4244: 'argument': conversion from 'unsigned __int64' to 'float', possible loss of data
1>p:\mis-proyectos\personal\enjambre\inc\swarmz\swarmz.h(268): warning C4244: 'argument': conversion from 'unsigned __int64' to 'float', possible loss of data
1>p:\mis-proyectos\personal\enjambre\inc\swarmz\swarmz.h(337): warning C4244: '=': conversion from 'int' to 'float', possible loss of data
1>p:\mis-proyectos\personal\enjambre\inc\swarmz\swarmz.h(338): warning C4244: '=': conversion from 'int' to 'float', possible loss of data
1>p:\mis-proyectos\personal\enjambre\inc\swarmz\swarmz.h(339): warning C4244: '=': conversion from 'int' to 'float', possible loss of data
1> Generating Code...
1>Principal.obj : error LNK2005: "bool __cdecl std::operator==(struct sw::Vec3 const &,struct sw::Vec3 const &)" (??8std@@YA_NAEBUVec3@sw@@0@Z) already defined in main.obj
1>Principal.obj : error LNK2005: "float __cdecl sw::TransformDistance(float,enum sw::DistanceType)" (?TransformDistance@sw@@YAMMW4DistanceType@1@@Z) already defined in main.obj
1>P:\Mis-Proyectos\Personal\Enjambre\prj\enjambre_msvc2015\x64\Debug\enjambre_msvc2015.exe : fatal error LNK1169: one or more multiply defined symbols found
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
Neither I can build with MinGW Builds GCC 6,1,0
-------------- Build: Debug in enjambre_cdbmingw (compiler: MinGW GNU GCC Compiler x64)---------------
g++.exe -o bin\Debug\enjambre_cdbmingw.exe obj\Debug\src\main.o obj\Debug\src\Principal.o
obj\Debug\src\Principal.o: In function `__gnu_cxx::__promote_2<float, int, __gnu_cxx::__promote<float, std::__is_integer<float>::__value>::__type, __gnu_cxx::__promote<int, std::__is_integer<int>::__value>::__type>::__type std::pow<float, int>(float, int)':
p:\Mis-Proyectos\Personal\Enjambre\prj\enjambre_cdbmingw/../../inc/Swarmz/swarmz.h:130: multiple definition of `sw::TransformDistance(float, sw::DistanceType)'
obj\Debug\src\main.o:p:\Mis-Proyectos\Personal\Enjambre\prj\enjambre_cdbmingw/../../inc/Swarmz/swarmz.h:130: first defined here
obj\Debug\src\Principal.o: In function `std::operator==(sw::Vec3 const&, sw::Vec3 const&)':
p:\Mis-Proyectos\Personal\Enjambre\prj\enjambre_cdbmingw/../../inc/Swarmz/swarmz.h:163: multiple definition of `std::operator==(sw::Vec3 const&, sw::Vec3 const&)'
obj\Debug\src\main.o:p:\Mis-Proyectos\Personal\Enjambre\prj\enjambre_cdbmingw/../../inc/Swarmz/swarmz.h:163: first defined here
collect2.exe: error: ld returned 1 exit status
Process terminated with status 1 (0 minute(s), 0 second(s))
5 error(s), 0 warning(s) (0 minute(s), 0 second(s))
The problem seems to be the same (multiple definition) . Any idea? ;-)
DJuego
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.