]> www.ginac.de Git - ginac.git/blobdiff - doc/examples/compile1.cpp
Make compile_ex() work with CMake.
[ginac.git] / doc / examples / compile1.cpp
index cc81229e84c2ac721613696552253337f85b0c31..c63b9ca022bd2f6bf5dfae75f1c5dc25ef58e376 100644 (file)
@@ -25,6 +25,9 @@ int main()
 
        // Our function pointer that points to the compiled ex
        FUNCP_1P fp;
+
+       // Optionally, compile with custom compiler flags:
+       // setenv("CXXFLAGS", "-O3 -fomit-frame-pointer -ffast-math", 1);
        compile_ex(expr, x, fp);
 
        // Do some (not necessarily meaningful ;-)) numerical stuff ...