[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: C++ help needed with new version of phyml



Hi.

Andreas Tille wrote:
> lk.c:2264:31: error: invalid initializer
>       double branch_lens[1] = len;

I guess the compiler wants {}-brackets around the scalar value
when it shall initialize a vector.
  https://anonscm.debian.org/cgit/debian-med/phyml.git/tree/src/lk.c
has

    phydbl len;
    ...
    len = -1.0;
    ...
      double branch_lens[1] = { len };


> lk.c:2263:31: error: invalid initializer
>    int p_matrices[1]     = b_fcus->Pij_rr_idx;

A thing named Pij_rr_idx could well be a scalar, too, and thus need
brackets.


Have a nice day :)

Thomas


Reply to: