Hi Kody, What is the full g++ command that is failing? Cheers, Paul On 22 August 2018 at 01:11, Kody Zalewski <[log in to unmask]> wrote: > Hello FSL team, > > I've been wanting to write some code using your newimage library, only > when I attempt to compile it I receive the following error repeated several > times: > > /usr/share/fsl/4.1/include/newimage/newimage.h:86:17: error: ‘NEWMAT’ is > not a namespace-name > using namespace NEWMAT; > ^ > /usr/share/fsl/4.1/include/newimage/newimage.h:86:23: error: expected > namespace-name before ‘;’ token > using namespace NEWMAT; > > I've tested out the skeleton code provided (skeletonapp.cc) on the FSL > newimage page (https://users.fmrib.ox.ac.uk/~mark/newimage/skeletonapp.cc) > and receive the same error. > I checked the newmat.h file and the namespace is indeed defined in the > $FSLDIR/extras/include/newmat folder. > I've also tried compiling the newmat static library myself and ensuring > the libnewmat.a library was in the $FSLDIR/lib folder, in addition to > running g++ with the -L/usr/share/fsl/4.1/lib -lnewmat options. > just to ensure that the compiler can indeed find the newmat.h libraries to > use in conjunction with newimage.h. > > I'm not having much luck here. Any ideas as to what the problem might be? > > Best, > Kody Zalewski > > ######################################################################## > > To unsubscribe from the FSL list, click the following link: > https://www.jiscmail.ac.uk/cgi-bin/webadmin?SUBED1=FSL&A=1 > ######################################################################## To unsubscribe from the FSL list, click the following link: https://www.jiscmail.ac.uk/cgi-bin/webadmin?SUBED1=FSL&A=1