[ADMB Users] problem with gcc on arm processor

dave fournier davef at otter-rsch.com
Fri Nov 28 09:34:37 PST 2014


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.


More information about the Users mailing list