You can call system("which g++") or getenv("PATH"), split it with colons and check whether a g++ file exists in any of the path components. I think you could also call QProcess with "g++ -v" and see what result you get.
You can call system("which g++") or getenv("PATH"), split it with colons and check whether a g++ file exists in any of the path components. I think you could also call QProcess with "g++ -v" and see what result you get.
Bookmarks