I am trying to compile C++ code for FIR filter design using Parks-McClellan algorithm from http://www.iowahills.com/Example%20Code/NewParksMcClellan.txt . However, I cannot find the following header files: "FIRFilterCode.h" and "Main.h" referenced in "NewParksMcClellan.cpp". Does anyone have experience compiling this code? Thank you.

  • $\begingroup$ This is just a programming question and should have been asked on SO itself. $\endgroup$ – Peter K. May 6 '15 at 17:08

You need to back track on that site.
There is a complete set of source code and header files available that you will need.

This is all about the FIR-Filters.

It links to this page with examples. You need the "Code Kit Download."
This will get you the FIRFilterCode.h.
Main.h will be missing because that belongs to the GUI - which they don't seem to provide code for.
However, it should be fairly simple to fix.
Remove the include Main.h, then remove all references to TopForm.
You'll probably want to replace them with some kind of logging since all they do is provide feedback to the user.
The involved lines are 273+274 and 278+279.
Notes to that effect are included in the comments in NewParksMcClellan.cpp

|improve this answer|||||
  • $\begingroup$ I have found "FIRFilterCode.h" but still looking for "Main.h". $\endgroup$ – Nebojsa May 5 '15 at 14:42

Not the answer you're looking for? Browse other questions tagged or ask your own question.