X-Git-Url: https://ginac.de/ginac.git//ginac.git?a=blobdiff_plain;f=doc%2Fexamples%2Fcompile2.cpp;h=faff99cc9033b6c4379b1aef178d662fe459f921;hb=48619ed77871a6bcae23df460f426fc34698cd1e;hp=1d344dd4d49b8cc857424625caf6305d73292326;hpb=ad20142163050e233056a9a7842695a77098e5c3;p=ginac.git diff --git a/doc/examples/compile2.cpp b/doc/examples/compile2.cpp index 1d344dd4..faff99cc 100644 --- a/doc/examples/compile2.cpp +++ b/doc/examples/compile2.cpp @@ -22,7 +22,7 @@ int main() cout << "Enter an expression containing 'x' and/or 'y': "; cin >> s; // Expression now in expr - ex expr(s, lst(x,y)); + ex expr(s, lst{x,y}); cout << "start integration of " << expr << " ..." << endl; @@ -43,7 +43,10 @@ int main() // Our function pointer that points to the compiled ex FUNCP_CUBA fp; - compile_ex(lst(expr), lst(x,y), fp); + + // Optionally, compile with custom compiler flags: + // setenv("CXXFLAGS", "-O3 -fomit-frame-pointer -ffast-math", 1); + compile_ex(lst{expr}, lst{x,y}, fp); // Starting VEGAS // By invocation of compile() the expression in expr is converted into the