]> www.ginac.de Git - ginac.git/blobdiff - doc/examples/compile3.cpp
Make compile_ex() work with CMake.
[ginac.git] / doc / examples / compile3.cpp
index 11a5a17070254b2251b12e5ae7f8c2aa61f0029d..993c3b9ff12aaa369e53376c293b0c228081dca3 100644 (file)
@@ -27,6 +27,9 @@ int main()
                cout << "Building new 'compile3_testprg.so'." << endl;
                symbol a, b;
                ex expr = a*b;
+
+               // Optionally, compile with custom compiler flags:
+               // setenv("CXXFLAGS", "-O3 -fomit-frame-pointer -ffast-math", 1);
                compile_ex(expr, a, b, fp, "compile3_testprg");
        }