diff --git a/appendix/whats_new/2024.xrst b/appendix/whats_new/2024.xrst index f49a36478..fd3538e53 100644 --- a/appendix/whats_new/2024.xrst +++ b/appendix/whats_new/2024.xrst @@ -33,6 +33,13 @@ Release Notes for 2024 mm-dd ***** +10-04 +===== +The :ref:`jit_compile.cpp-name` example line was missing +CPPAD_C_COMPILER_CMD in the line (this has been fixed):: + + const char* cmd = CPPAD_C_COMPILER_CMD " --version > temp"; + 10-02 ===== #. The *include_eigen* argument was removed from the :ref:`cmake-name` command diff --git a/example/jit/compile.cpp b/example/jit/compile.cpp index d9c183fcd..daea0a4bd 100644 --- a/example/jit/compile.cpp +++ b/example/jit/compile.cpp @@ -55,7 +55,7 @@ bool compile(void) compile = CPPAD_C_COMPILER_CMD " /EHs /EHc /c /TC /O2"; # endif # if CPPAD_C_COMPILER_GNU_FLAGS - const char* cmd = " --version > temp"; + const char* cmd = CPPAD_C_COMPILER_CMD " --version > temp"; if( std::system(cmd) == 0 ) compile = CPPAD_C_COMPILER_CMD " -c -fPIC -O2"; # endif