micha

Forum Replies Created

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • in reply to: Using SSH console when not in debug mode #27998
    micha
    Participant

    Wow, thanks! That’s amazing!!

    in reply to: compiler flags with cross-compiled cmake linux project #27674
    micha
    Participant

    Thank you very much for your response.

    In fact I am on 5.5 preview 4. The first library (which needed the pthread) did actually automatically get added, however -pthread did not. Might this have anything to do with the fact that clang doesn’t automatically analyze the libraries added for errors?

    Once again the tutorial is very good! It probably went wrong in my head for looking to add compiler flags, which I thought would be the way to go, while in fact it was a linker thing. This would have made me find the mentioned tutorial.

    in reply to: compiler flags with cross-compiled cmake linux project #27662
    micha
    Participant

    Fixed it some other way, for anyone else looking for this:

    As pthread is a library it should be mentioned in the target link libraries.

    In CMakeLists.txt edit the target_link_libraries(<your_project_name> “${LIBRARIES_FROM_REFERENCES}” pthread) < add the link here. Or if you want to do it via one of the many menu’s, it’s not in the VisualGDB project properties (or at least I couldn’t find it there). Go to the actual project properties, which is the 3rd from the top if you start a new one, right below the visualGDB project. Right click > project properties, then Linker > General > Additional inputs, here’s the previously mentioned “${LIBRARIES_FROM_REFERENCES}, expand it with a semicolon and then the library, like so: ${LIBRARIES_FROM_REFERENCES};pthread

    If there’s a more visualGDB-ish method please tell, I like to keep al my settings in one menu 🙂

Viewing 3 posts - 1 through 3 (of 3 total)