Skip to content

Hello, I cant build; non-trivial designated initializers not supported #1

@japrogramer

Description

@japrogramer

I tried building on an arch linux

> archangel@The_Black_Knight:git/Terminals/stgl  opengl ✔                                                                                                                                                      3h6m  
> ▶ make
> st build options:
> CFLAGS  = -I/usr/X11R6/include  -isystem ./include  -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include  -I/usr/include/libdrm  -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DVERSION="0.7" -D_XOPEN_SOURCE=600 -O
> CXXFLAGS= 
> LDFLAGS = -L/usr/X11R6/lib -lm -lrt -lX11 -lutil -lXft -ldl  -lfontconfig -lfreetype  -lGL  -lfreetype 
> CC      = c99
> c99 -I/usr/X11R6/include  -isystem ./include  `pkg-config --cflags fontconfig`  `pkg-config --cflags gl`  `pkg-config --cflags freetype2` -DVERSION=\"0.7\" -D_XOPEN_SOURCE=600 -O -c st.c -o st.o
> c99 -I/usr/X11R6/include  -isystem ./include  `pkg-config --cflags fontconfig`  `pkg-config --cflags gl`  `pkg-config --cflags freetype2` -DVERSION=\"0.7\" -D_XOPEN_SOURCE=600 -O -c x.c -o x.o
> c99 -I/usr/X11R6/include  -isystem ./include  `pkg-config --cflags fontconfig`  `pkg-config --cflags gl`  `pkg-config --cflags freetype2` -DVERSION=\"0.7\" -D_XOPEN_SOURCE=600 -O -c src/glad.c -o src/glad.o
> c99 -I/usr/X11R6/include  -isystem ./include  `pkg-config --cflags fontconfig`  `pkg-config --cflags gl`  `pkg-config --cflags freetype2` -DVERSION=\"0.7\" -D_XOPEN_SOURCE=600 -O -c src/glad_glx.c -o src/glad_glx.o
> g++  -I/usr/X11R6/include  -isystem ./include  `pkg-config --cflags fontconfig`  `pkg-config --cflags gl`  `pkg-config --cflags freetype2` -DVERSION=\"0.7\" -D_XOPEN_SOURCE=600 -std=c++17 -c rendering.cpp -o rendering.o
> rendering.cpp: In instantiation of ‘void ParticleSystem<Updatefunc>::add_particle(float, float, float, float, float, const color&) [with UpdateFunc = std::function<void(particle&, float)>]’:
> rendering.cpp:1069:115:   required from here
> rendering.cpp:540:12: sorry, unimplemented: non-trivial designated initializers not supported
>    particle np = {
>             ^~
> rendering.cpp:540:12: sorry, unimplemented: non-trivial designated initializers not supported
> make: *** [Makefile:24: rendering.o] Error 1
> 
> archangel@The_Black_Knight:git/Terminals/stgl  opengl ✔                                                                                                                                                     3h7m  ⍉
> ▶ pacman -Ss gcc | ack install
> core/gcc 7.2.0-3 (base-devel) [installed]
> core/gcc-libs 7.2.0-3 (base) [installed]
> community/gcc6 6.4.1-4 [installed]
> community/gcc6-libs 6.4.1-4 [installed]
> multilib/lib32-gcc-libs 7.2.0-3 [installed]

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