Skip to main content
Visitor II
June 12, 2019
Question

Has anyone implemented code using Numerical Recipes in C++?

  • June 12, 2019
  • 2 replies
  • 903 views

 I've been using some of the routines (numerical integration of ODEs using B-S routine with polynomial extrapolation) for years on Microsoft C++, with great success. However, when I even include the nr.h file, I get errors saying that "template" is an unknown type. Suggestions?

    This topic has been closed for replies.

    2 replies

    Visitor II
    June 13, 2019

    You haven't said what development environment/compiler you're using, but it's pretty obvious that either it's only a C and not a C++ compiler, or it does both but doesn't know that you're giving it C++ source. I use the GNU compilers, standalone without an integrated development environment, and for that you'd need to invoke arm-none-eabi-g++ instead of arm-none-eabi-gcc (assuming because you're here that you're compiling for ARM chips) but I'm guessing that information isn't going to help you much.

    Technical Moderator
    June 18, 2019

    ​Hi @LHaze​ 

    In order your post reach relevant people, could you please specify on which MCU platform you are working ?

    Thx

    Olivier