Giter Club home page Giter Club logo

geometry's Introduction

Hello there 🦀🕹️🍩🌴🌳

I am a french graphics programmer working in the video game industry who loves 3D.

Rust, Blender, trees & alpha test !

Check this out ! (Webassembly compatible browser required)

geometry's People

Contributors

antaalt avatar porkbytes avatar

Stargazers

 avatar

Watchers

 avatar

geometry's Issues

GCC doesn't like parenthesis around vec2's min and max functions

I created a quick test program by adding a test.cpp file to the project root with the following code:

#include <geo/geometry.h>

int main() {
    return 0;
}

I also added the following to the end of the CMakeLists.txt file:

add_executable(Geometry-Test test.cpp)
target_link_libraries(Geometry-Test Geometry)

I then ran the following bash commands:

mkdir cmake-make
cd cmake-make
cmake -S ..
make

This resulted in these errors:

vec2.inl:91:69: error: invalid use of incomplete type ‘struct geometry::vec2<T>’
   91 | inline vec2<T> (vec2<T>::min)(const vec2<T>& lhs, const vec2<T>& rhs)
vec2.inl:100:68: error: invalid use of incomplete type ‘struct geometry::vec2<T>’
  100 | inline vec2<T>(vec2<T>::max)(const vec2<T>& lhs, const vec2<T>& rhs)

Removing the parenthesis around (vec2<T>::min) and (vec2<T>::max) seems to resolve the errors. This is with gcc 13.0.1

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.