I just upgraded to new crosscompiler toolchain for raspberry pi.
When I link my code, linker complaints:
c:/sysgcc/raspberry/bin/../lib/gcc/arm-linux-gnueabihf/4.9/../../../../arm-linux-gnueabihf/lib/libstdc++.so: undefined reference to `clock_gettime@GLIBC_2.17′
The toolchain does work by default. In this case it looks like there is a mismatch between different library versions on your Raspberry Pi and resynchronizing the toolchain’s sysroot with your device downloaded those incompatible libraries to the toolchain. Please re-check if it can be reproduced with the default toolchain. If yes, please provide a simple repro project so that we could fix it. If no, please revert to the default Raspberry Pi image to ensure that your libraries are in sync.
we just had the same problem and the reason and solution is quiet simple. VisualGDB offer you 2 toolchains to download for the raspberry…the older one seems to be for the standard Wheezy image from the raspberry pi homepage. the second and newer toolchain seems to be for the new ‘Jessie’-upgrade.
so you either use the old toolchain or you upgrade your pi to Jessie (that’s what we did)…here is how it’s done