-
Notifications
You must be signed in to change notification settings - Fork 38
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Problem with pthread_xxx code (version GLIBCXX_3.4.21 not found) #55
Comments
Have you looked at #17, #28, #37? Usually, you get I'd like to be able to tell you more, but I have not tried to compile and run anything on the brick for quite some time. |
Like it is said in the stackoverflow discussion about static compilation (from issue #17), it works now when compiling from the docker image with the -static-libstdc++ option. As I understand, it compile statically only the libstdc++. The final working compilation command is now : Thank you very much @ddemidov for your help. |
I have this exact same issue, but when I try to use Build commands: Here is the test.cpp #include "iostream"
int main(int argc, char *argv[]) {
std::cout << "Hello C++" << std::endl;
return 0;
} Here is the full output in verbose mode: https://pastebin.com/9q66Nc76 Compiler was made by build and installing all these aur packages in order. Then changing the applicable ones from https://aur.archlinux.org/packages/arm-linux-gnueabihf-binutils That took four hours and compiling gcc three separate times. Great fun. That works for things that don't pull in So I came here and tried to use the gcc options and then it can't find |
For some reason the https://aur.archlinux.org/packages/arm-linux-gnueabihf-gcc package was stripping the static libraries so adding The produced binary with This was done by setting the rpath ( |
While playing with pthread_create() and pthread_join() in a C++ source code, I get this strange error :
After googling it, I have read some solution from issue #27
I installed docker image and compiled the same source code with :
arm-linux-gnueabi-g++ -o test_threads -std=c++11 -static test_threads.cpp ev3dev.cpp -lpthread
I quess these error is strongly linked to the static compilation.
From the docker image, I compiled with :
arm-linux-gnueabi-g++ -o test_threads -std=c++11 test_threads.cpp ev3dev.cpp -lpthread
Now, I get an error dealing with the libstdc++ version :
I have no clue how to fix all these errors...
ev3dev version installed on the robot is :
The text was updated successfully, but these errors were encountered: