I am trying to use the "libxd" library for C++ which is similar to Processing or p5.js (https://bernhardfritz.github.io/libxd/#/?id=libxd-032)
I followed everything correctly from this site: https://bernhardfritz.github.io/libxd/#/quickstart
This is the example I am trying to run:
#include <xd/xd.hpp>
using namespace xd;
void setup()
{
size(640, 480);
}
void draw()
{
rect(50, 50, 100, 100);
}
void destroy()
{
}
Upon trying to run their "Hello rectangle" example (also https://bernhardfritz.github.io/libxd/#/quickstart) using this compiling options:
g++ -std=c++11 sketch.cpp -o sketch -Iinclude -Llib -lxd -lglad -lglfw3 -lkernel32 -luser32 -lgdi32 -lwinspool -lshell32 -lole32 -loleaut32 -luuid -lcomdlg32 -ladvapi32
I get this error:
c:/mingw/bin/../lib/gcc/mingw32/8.2.0/../../../../mingw32/bin/ld.exe: lib/libglfw3.a(init.c.obj):init.c:(.text+0x22): undefined reference to `__ms_vsnprintf'
collect2.exe: error: ld returned 1 exit status
Here is also the picture:
I tried changing #include option, switching directories, similar stuff like that.
I really have no clue what could be the issue.