Skip to content

compilation failed : G_APPLICATION_DEFAULT_FLAGS not declared #10

@tissatussa

Description

@tissatussa

that variable is at the end of the Makefile : it's not declared and i get an error :

$ make
g++ -Wall -Ofast -c main.cpp
g++ -Wall -Ofast -c board.cpp
g++ -Wall -Ofast -c movegen.cpp
g++ -Wall -Ofast -c search.cpp
g++ -Wall -Ofast -o main main.o board.o movegen.o search.o
g++ -Wall -Ofast -c runtest.cpp -o runtest.o 
g++ -Wall -Ofast -o runtest runtest.o board.o movegen.o search.o
g++ -Wall -Ofast -c gui.cpp `pkg-config --cflags --libs gtk4`
gui.cpp: In function ‘int main(int, char**)’:
gui.cpp:481:46: error: ‘G_APPLICATION_DEFAULT_FLAGS’ was not declared in this scope; did you mean ‘G_APPLICATION_GET_CLASS’?
  481 |       gtk_application_new("org.soham.chess", G_APPLICATION_DEFAULT_FLAGS);
      |                                              ^~~~~~~~~~~~~~~~~~~~~~~~~~~
      |                                              G_APPLICATION_GET_CLASS
make: *** [Makefile:47: gui.o] Error 1

i hope you can solve this, i'm curious how your engine plays ..
btw. what's the name of the engine ? "Yonder" ?

greetings from Holland !

[ i'm on Xubuntu 22.04 ]

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions