Can you try replacing all references to “round” in the file with "MISCMATHS::round” and then recompile?
Dr Matthew Webster
John Radcliffe Hospital
University of Oxford
> On 8 May 2018, at 14:06, Erika Molteni <[log in to unmask]> wrote:
> Thank you, Matthew, for your kind reply.
> Here is the output:
> clang: warning: optimization flag '-fexpensive-optimizations' is not supported
> Though, afterwards, I get a long list of errors on the "round" function.
> Here one example of many (12, all related to "round"):
> /Applications/fsl/include/miscmaths/miscmaths.h:143:7: note: candidate function
> int round(int x);
> gifbased_siena.cc:403:27: error: call to 'round' is ambiguous
> d=1; X=round(x+d*ex); Y=round(y+d*ey); Z=round(z+d*ez);
> Kind Regards,
> On Tue, May 8, 2018 at 1:39 PM, Matthew Webster <[log in to unmask]> wrote:
> Can you let me know the full output of the c++ command?
> Kind Regards
> Dr Matthew Webster
> FMRIB Centre
> John Radcliffe Hospital
> University of Oxford
>> On 4 May 2018, at 11:39, Erika Molteni <[log in to unmask]> wrote:
>> I need to compile SIENA on a OS X Yosemite version 10.10.5 MacBookPro.
>> I was given this line of code by a linux user
>> c++ -Wall -ansi -pedantic -O3 -fexpensive-optimizations -I/Applications/fsl/extras/include/newmat -I/Applications/fsl/extras/include -I. -I/Applications/fsl/include -I/Applications/fsl/include -L/Applications/fsl/extras/lib -L/Applications/fsl/extras/lib -L. -L/Applications/fsl/lib -L/Applications/fsl/lib -O0 -o gifbased_siena gifbased_siena.cc -lnewimage -lmiscmaths -lfslio -lniftiio -lznz -lnewmat -lutils -lm -lz
>> where the path to fsl is obviously the one set on my Mac.
>> Unfortunately, though, while compiling I get errors on the "round" command, and the procedure aborts. This seems to be rather "Mac" specific.
>> Any suggestion about how to proceed? I would be grateful for any hint.