i am experiencing the same problem with the "Coding Games with C++" - Tutorial. In fact i am reading the german version of the MagPi but the Articles are quite similar and they include the same instructions.
I am not able to compile the Code from the second Part and i get error messages. (i am using raspbian stretch / rpi 3B+)
Here is my build messages from codeblocks.
Code: Select all
Build: Debug in MagPiHelloTriangle (compiler: GNU GCC Compiler)
/usr/bin/ld: ../../../../../../opt/vc/lib/libEGL_static.a(khrn_client_platform_linux.c.o)||undefined reference to symbol 'pthread_getspecific@@GLIBC_2.4'|
error: ld returned 1 exit status|
Build failed: 2 error(s), 0 warning(s) (0 minute(s), 0 second(s))
i am quite disappointed bc i really want to go through the whole tutorial in order to learn coding c++. But i have no clue, what i can adjust anymore. I hoped this tutorial would work out of the box. :/
Can anyone help? I bet there must be someone out there, who could solve this problem bc i dont believe i am the only one who tried this Tutorial
Greetings and thanks in advance!
Post scriptum, my system is out of the box, i didnt changed anything, and the code of the first article can be compiled without errors.
after constantly trying i solved at least my problem. It was constantly reporting about that problem in this libEGL_static.a - Library. So i removed this line from the Linker settings and then it worked fine! Jeah i am happy