Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
first code won't run
#6
Oh and for future reference, the VS error list is sometimes too concise and does not give a lot of info on the errors, much better to switch your tab view to the output, which would give a more easy to follow error (well easy for some Big Grin)

1>VisualGDB: Run "make CONFIG=Debug" in directory "/tmp/VisualGDB/c/Users/beuken/Desktop/openglesprojects/GameProject1/GameProject1" on pi@192.168.0.100 (SSH)
1>g++ -ggdb -ffunction-sections -O0 -I/opt/vc/include -I/opt/vc/include/interface/vcos/pthreads -I/opt/vc/include/interface -I/opt/vc/include/interface/vmcs_host/linux -DDEBUG=1 -c GameProject1.cpp -o Debug/GameProject1.o -MD -MF Debug/GameProject1.dep
1>g++ -o Debug/GameProject1 -Wl,-gc-sections -L/opt/vc/lib -Wl,--start-group Debug/GameProject1.o -lGLESv2_static -lEGL_static -lvchiq_arm -lvcos -lkhrn_static -lbcm_host -Wl,--rpath='$ORIGIN' -Wl,--end-group
1>/usr/bin/ld: /opt/vc/lib/libEGL_static.a(khrn_client_platform_linux.c.o)(0): error : undefined reference to symbol 'pthread_getspecific@@GLIBC_2.4'
1>//lib/arm-linux-gnueabihf/libpthread.so.0: error adding symbols: DSO missing from command line
1>collect2 : error : ld returned 1 exit status
1>Makefile:138: recipe for target 'Debug/GameProject1' failed
1>make: *** [Debug/GameProject1] Error 1

here I was able to read a more complex error and noticed that pthread was at fault. The errors don't always make sense but they give more information that can lead to the cause.
Brian Beuken
Lecturer in Game Programming at Breda University of Applied Sciences.
Author of The Fundamentals of C/C++ Game Programming: Using Target-based Development on SBC's 



Reply


Messages In This Thread
first code won't run - by pahendriks - 03-14-2018, 10:32 PM
RE: first code won't run - by Brian Beuken - 03-14-2018, 10:53 PM
RE: first code won't run - by Brian Beuken - 03-14-2018, 11:36 PM
RE: first code won't run - by pahendriks - 03-15-2018, 07:39 AM
RE: first code won't run - by Brian Beuken - 03-15-2018, 08:40 AM
RE: first code won't run - by pahendriks - 03-15-2018, 03:15 PM
RE: first code won't run - by Brian Beuken - 03-15-2018, 08:44 AM
RE: first code won't run - by Brian Beuken - 03-15-2018, 03:28 PM
RE: first code won't run - by pahendriks - 03-15-2018, 03:35 PM
RE: first code won't run - by Brian Beuken - 03-15-2018, 03:49 PM
RE: first code won't run - by sephris - 04-08-2018, 11:38 PM
RE: first code won't run - by Brian Beuken - 04-09-2018, 12:35 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)