How to build C++ code using scons for solaris compatible OS using jenkins?
问题 Here is my C++ code: #include<iostream> int main() { std::cout<<"Starting Program"<<std::endl; int a = 10; int b = 20; int c = a + b; std::cout<<"Sum of A and B is "<<c<<std::endl; std::cout<<"Ending Program"<<std::endl; return 0; } Here is my SConstruct script file: env = Environment(platform='sunos') env.Program('hello.C') Does above SConstruct file is correct to build hello.C for solaris ? Will this work. Any suggestions. 回答1: This is how I would do it: Setup a Solaris machine x86/SPARC