Author Topic: Load and Propagate Example  (Read 19276 times)

Offline noel

  • Newbie
  • *
  • Posts: 10
    • View Profile
Load and Propagate Example
« on: March 03, 2011, 14:38:08 »
I am trying to run example 1 of the Hugin Api manual in C++;

I get the following error:

 error: ‘H_TM_BEST_GREEDY’ was not declared in this scope

Any help, please.


Noel

Offline Frank Jensen

  • HUGIN Expert
  • Hero Member
  • *****
  • Posts: 576
    • View Profile
Re: Load and Propagate Example
« Reply #1 on: March 03, 2011, 15:27:14 »
H_TM_BEST_GREEDY is defined in the HAPI namespace.  The statement "using namespace HAPI;" at the top of the example should make the symbol visible.

The complete example is also provided as a C++ file (called LoadAndPropagate.cpp) in the "test" subdirectory.  This  program is known to compile.

I hope this helps.

Offline noel

  • Newbie
  • *
  • Posts: 10
    • View Profile
Re: Load and Propagate Example
« Reply #2 on: March 03, 2011, 20:49:55 »
Thank you very much for the help. I have tried it and I am not sure how to specify a case file.


Offline Frank Jensen

  • HUGIN Expert
  • Hero Member
  • *****
  • Posts: 576
    • View Profile
Re: Load and Propagate Example
« Reply #3 on: March 04, 2011, 16:10:20 »
The "test" directory contains some examples of case files.  These files have the extension ".hcs".

When you run the "LoadAndPropagate" program from the command line, you specify the name of the NET file as the first argument and (optionally) the name of a case file as the second argument.

Offline noel

  • Newbie
  • *
  • Posts: 10
    • View Profile
Re: Load and Propagate Example
« Reply #4 on: March 07, 2011, 20:59:02 »
Thank you very much; it has worked indeed.