I want to make a tool that helps to solve c++ object-oriented exercises, so I want the user to write a solution to the exercise and my snap will compile his solution and using a tester it will verify his solution. my problem is I want g++ compiler to be a part of my snap so when my snap is built I can access it inside my snap to compile user’s solution, I don’t want to use the system compiler.
any help would be appreciated.
Isn’t adding the
g++ and the
gcc package to the
stage-packages property enough?
Thank you that was very helpful!
This is very geek answer to me how. Does it select which compiler to use and if that compiler fails then it should selects an alternative compiler or a fall-back one? I added both g++(ver7) & c++(ver9) to my IDE, but still got dependency errors until I added ‘Clang-tools’ for ubuntu18.04 to my IDE. I was doing a simple make on clamAV. Nothing worked until I forced ‘openSSL’ package to be added to configuration using ./configure. I don’t know if that’s a solution but it worked for me.