]> www.ginac.de Git - ginac.git/blobdiff - doc/examples/compile2.cpp
Make compile_ex() work with CMake.
[ginac.git] / doc / examples / compile2.cpp
index 1d344dd4d49b8cc857424625caf6305d73292326..fb0813cb6f0f33e4fbecfd88044c5363abecddd6 100644 (file)
@@ -43,6 +43,9 @@ int main()
 
        // Our function pointer that points to the compiled ex
        FUNCP_CUBA 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