[ADMB Users] problem with gcc on arm processor
Johnoel Ancheta
johnoel at hawaii.edu
Fri Nov 28 15:14:17 PST 2014
The intel also complains. Let me know if you have a solution.
On Friday, November 28, 2014, dave fournier <davef at otter-rsch.com> wrote:
> I built admb on a quad core arm processor in a TV dongle. Wanted to
> compare the power to my old 486.
>
> The 486 took 38 seconds to run the catage example. The TV dongle runs it
> in less than a second. Neat.
>
> However the version of gcc chokes on the code in lbfgs.cpp. Around line
> 250 it seems to prefer a more pedestrian way of
> declaring and initializing a struct.
>
> /* Common Block Declarations */
>
> #if !defined(__SUNPRO_CC) && !defined(__OPEN64__) && !defined(_MSC_VER)
>
> struct kkkludge{
> integer mp, lp;
> doublereal gtol, stpmin, stpmax;
> };
> struct kkkludge lb3_1 = { 6, 6, 0.9, 1e-20, 1e20};
>
> // comment out
> /*
> struct {
> integer mp, lp;
> doublereal gtol, stpmin, stpmax;
> } lb3_1 = { .mp = 6, .lp = 6, .gtol = .9, .stpmin = 1e-20, .stpmax = 1e20};
> */
>
> there appears to be a problem with "."
>
> Changin the line
>
> struct kkkludge lb3_1 = { 6, 6, 0.9, 1e-20, 1e20};
>
> to
>
> struct kkkludge lb3_1 = { 6, 6, .9, 1e-20, 1e20};
>
> produces an error.
> _______________________________________________
> Users mailing list
> Users at admb-project.org
> http://lists.admb-project.org/mailman/listinfo/users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.admb-project.org/pipermail/users/attachments/20141128/34cd1005/attachment.html>
More information about the Users
mailing list