Git Product home page Git Product logo

particle-life's People

Contributors

hackerpoet avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

particle-life's Issues

Does not compile

Hi, I'm trying to run this on Linux but I'm getting an error when I try to compile it:

/usr/bin/ld: /tmp/ccAVgtoO.o: in function `main':
Main.cpp:(.text+0x507): undefined reference to `Universe::Universe(unsigned long, unsigned long, int, int)'
/usr/bin/ld: Main.cpp:(.text+0x551): undefined reference to `Universe::ReSeed(float, float, float, float, float, float, float, bool)'
/usr/bin/ld: Main.cpp:(.text+0x651): undefined reference to `sf::VideoMode::VideoMode(unsigned int, unsigned int, unsigned int)'
/usr/bin/ld: Main.cpp:(.text+0x680): undefined reference to `sf::String::String(char const*, std::locale const&)'
/usr/bin/ld: Main.cpp:(.text+0x6b3): undefined reference to `sf::RenderWindow::RenderWindow(sf::VideoMode, sf::String const&, unsigned int, sf::ContextSettings const&)'
/usr/bin/ld: Main.cpp:(.text+0x6e5): undefined reference to `sf::Window::setFramerateLimit(unsigned int)'
/usr/bin/ld: Main.cpp:(.text+0x6f9): undefined reference to `sf::Window::setVerticalSyncEnabled(bool)'
/usr/bin/ld: Main.cpp:(.text+0x70d): undefined reference to `sf::RenderWindow::setActive(bool)'
/usr/bin/ld: Main.cpp:(.text+0x71c): undefined reference to `sf::Window::requestFocus()'
/usr/bin/ld: Main.cpp:(.text+0x72b): undefined reference to `sf::Clock::Clock()'
/usr/bin/ld: Main.cpp:(.text+0x749): undefined reference to `sf::Window::close()'
/usr/bin/ld: Main.cpp:(.text+0x781): undefined reference to `sf::Window::close()'
/usr/bin/ld: Main.cpp:(.text+0x7a8): undefined reference to `Universe::SetPopulation(unsigned long, unsigned long)'
/usr/bin/ld: Main.cpp:(.text+0x7f2): undefined reference to `Universe::ReSeed(float, float, float, float, float, float, float, bool)'
/usr/bin/ld: Main.cpp:(.text+0x819): undefined reference to `Universe::SetPopulation(unsigned long, unsigned long)'
/usr/bin/ld: Main.cpp:(.text+0x863): undefined reference to `Universe::ReSeed(float, float, float, float, float, float, float, bool)'
/usr/bin/ld: Main.cpp:(.text+0x88a): undefined reference to `Universe::SetPopulation(unsigned long, unsigned long)'
/usr/bin/ld: Main.cpp:(.text+0x8d4): undefined reference to `Universe::ReSeed(float, float, float, float, float, float, float, bool)'
/usr/bin/ld: Main.cpp:(.text+0x8fb): undefined reference to `Universe::SetPopulation(unsigned long, unsigned long)'
/usr/bin/ld: Main.cpp:(.text+0x945): undefined reference to `Universe::ReSeed(float, float, float, float, float, float, float, bool)'
/usr/bin/ld: Main.cpp:(.text+0x96c): undefined reference to `Universe::SetPopulation(unsigned long, unsigned long)'
/usr/bin/ld: Main.cpp:(.text+0x9b6): undefined reference to `Universe::ReSeed(float, float, float, float, float, float, float, bool)'
/usr/bin/ld: Main.cpp:(.text+0x9dd): undefined reference to `Universe::SetPopulation(unsigned long, unsigned long)'
/usr/bin/ld: Main.cpp:(.text+0xa2b): undefined reference to `Universe::ReSeed(float, float, float, float, float, float, float, bool)'
/usr/bin/ld: Main.cpp:(.text+0xa52): undefined reference to `Universe::SetPopulation(unsigned long, unsigned long)'
/usr/bin/ld: Main.cpp:(.text+0xa9c): undefined reference to `Universe::ReSeed(float, float, float, float, float, float, float, bool)'
/usr/bin/ld: Main.cpp:(.text+0xac3): undefined reference to `Universe::SetPopulation(unsigned long, unsigned long)'
/usr/bin/ld: Main.cpp:(.text+0xb0d): undefined reference to `Universe::ReSeed(float, float, float, float, float, float, float, bool)'
/usr/bin/ld: Main.cpp:(.text+0xb34): undefined reference to `Universe::SetPopulation(unsigned long, unsigned long)'
/usr/bin/ld: Main.cpp:(.text+0xb82): undefined reference to `Universe::ReSeed(float, float, float, float, float, float, float, bool)'
/usr/bin/ld: Main.cpp:(.text+0xba9): undefined reference to `Universe::SetPopulation(unsigned long, unsigned long)'
/usr/bin/ld: Main.cpp:(.text+0xbf7): undefined reference to `Universe::ReSeed(float, float, float, float, float, float, float, bool)'
/usr/bin/ld: Main.cpp:(.text+0xc31): undefined reference to `Universe::SetRandomParticles()'
/usr/bin/ld: Main.cpp:(.text+0xc4e): undefined reference to `Universe::PrintParams() const'
/usr/bin/ld: Main.cpp:(.text+0xd4d): undefined reference to `sf::Clock::getElapsedTime() const'
/usr/bin/ld: Main.cpp:(.text+0xd63): undefined reference to `sf::Time::asMilliseconds() const'
/usr/bin/ld: Main.cpp:(.text+0xd8b): undefined reference to `sf::Mouse::getPosition(sf::Window const&)'
/usr/bin/ld: Main.cpp:(.text+0xdbe): undefined reference to `Universe::ToCenter(int, int, float&, float&) const'
/usr/bin/ld: Main.cpp:(.text+0xdfe): undefined reference to `Universe::GetIndex(int, int) const'
/usr/bin/ld: Main.cpp:(.text+0xe34): undefined reference to `sf::Window::pollEvent(sf::Event&)'
/usr/bin/ld: Main.cpp:(.text+0xe5c): undefined reference to `Universe::GetParticleX(int) const'
/usr/bin/ld: Main.cpp:(.text+0xe7d): undefined reference to `Universe::GetParticleY(int) const'
/usr/bin/ld: Main.cpp:(.text+0xf52): undefined reference to `Universe::Zoom(float, float, float)'
/usr/bin/ld: Main.cpp:(.text+0xf76): undefined reference to `sf::Color::Color(unsigned char, unsigned char, unsigned char, unsigned char)'
/usr/bin/ld: Main.cpp:(.text+0xf93): undefined reference to `sf::RenderTarget::clear(sf::Color const&)'
/usr/bin/ld: Main.cpp:(.text+0xfd7): undefined reference to `Universe::Step()'
/usr/bin/ld: Main.cpp:(.text+0xffa): undefined reference to `Universe::Draw(sf::RenderWindow&, float) const'
/usr/bin/ld: Main.cpp:(.text+0x101e): undefined reference to `sf::Window::display()'
/usr/bin/ld: Main.cpp:(.text+0x102d): undefined reference to `sf::Window::isOpen() const'
/usr/bin/ld: Main.cpp:(.text+0x1049): undefined reference to `sf::RenderWindow::~RenderWindow()'
/usr/bin/ld: Main.cpp:(.text+0x10a5): undefined reference to `sf::RenderWindow::~RenderWindow()'
collect2: error: ld returned 1 exit status```

about the interaction rules

Dear HackerPoet:
I would like to know where can I find a text description of the interaction rules (formulas) among particles.

All the best and thanks for sharing

David

Hi Hacker Poet

Hi HP,
I'm fairly new to C++ and am no doubt doint something wrong. Sorry about this. I can't seem to get this working in VS. I've set it up as a Console Application. I've added the Header files (HSV.h, Particles.h and Universe.h) and the Source files (Main.cpp and Universe.cpp). I've also referenced SFML in the Project Properties. But when I run the Local Windows Debugger I receive the following errors. Please see screenshot below.
image
Best wishes,
Taps

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.