Skip to content

raylib-cpp causes errors after i freshly compiled it #422

Description

@FunkyPotao

hi, i recently compiled raylib-cpp and i wanted to use the lil example without the texture

#include <iostream>
#include <raylib-cpp.hpp>

#define cout std::cout
#define endl std::endl


int main() {


    return 0;
}

and i

c++ main.cpp -lraylib-cpp

wich gave me

In file included from /usr/include/TextureUnmanaged.hpp:6,
from /usr/include/FontUnmanaged.hpp:7,
from /usr/include/Font.hpp:4,
from /usr/include/raylib-cpp.hpp:44,
from main.cpp:2:
/usr/include/Image.hpp: In member function ‘void raylib::Image::DrawTriangleGradient(Vector2, Vector2, Vector2, Color, Color, Color)’:
/usr/include/Image.hpp:665:11: error: ‘::ImageDrawTriangleGradient’ has not been declared; did you mean ‘DrawTriangleGradient’?
665 | ::ImageDrawTriangleGradient(this, v1, v2, v3, c1, c2, c3);
| ^~~~~~~~~~~~~~~~~~~~~~~~~
| DrawTriangleGradient

and oh yeah
and raylib-cpp is
raylib-cpp-git 1:r738.d502e0d-1.x86_64

according to pgkcli and i used the aur install script there

thanks :P

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions