|
From: Jesse Ross-J. <jes...@gm...> - 2013-05-13 08:08:40
|
Hi Eli, Thanks for the help, I copied the libraries and headers. That fixed the 'could not find -lgsl and -lgslcblas' unfortunately now I get the error bellow. Is it possible to resolve this linking error without having to modify the python build script? The file vector.cpp I have uploaded: http://pastebin.com/6m9hMYKa Much appreciated, Jesse -------------------------------------------------------------------------------------------------------------------------------------------------------- C:\Users\Jesse\Documents\Work\Research\FiberTracking\Software\mrtrix\source\mrtr ix-0.2.11>python build bin\mrconvert [LD] lib\mrtrix-0_2_11.dll ERROR: [LD] lib\mrtrix-0_2_11.dll g++ -shared lib\image\format\base.o lib\math\vector.o lib\file\mmap.o lib\args.o lib\image\format\dicom.o lib\file\dicom\select_cmdline.o lib\file\key_value.o l ib\image\axis.o lib\image\format\mrtrix.o lib\image\interp.o lib\data_type.o lib \point.o lib\image\mapper.o lib\file\dicom\element.o lib\file\dicom\mapper.o lib \file\dicom\patient.o lib\file\dicom\quick_scan.o lib\image\object.o lib\mrtrix. o lib\image\format\xds.o lib\file\dicom\dict.o lib\app.o lib\math\matrix.o lib\f ile\config.o lib\image\format\mri.o lib\file\dicom\image.o lib\math\linalg.o lib \file\dicom\study.o lib\file\dicom\series.o lib\image\name_parser.o lib\image\fo rmat\list.o lib\file\dicom\tree.o lib\image\fft.o lib\image\header.o lib\image\f ormat\analyse.o lib\image\format\nifti1.o -LC:/gtkmm64/lib -lglibmm-2.4 -lgobjec t-2.0 -lsigc-2.0 -lgthread-2.0 -lglib-2.0 -lintl -lgsl -lgslcblas -lz -o lib\mrt rix-0_2_11.dll failed with output: lib\math\vector.o:vector.cpp:(.text+0x381): undefined reference to `Glib::strerr or(int)' lib\math\vector.o:vector.cpp:(.text+0x3c4): undefined reference to `Glib::ustrin g::ustring(std::string const&)' lib\math\vector.o:vector.cpp:(.text+0x419): undefined reference to `Glib::ustrin g::~ustring()' lib\math\vector.o:vector.cpp:(.text+0x422): undefined reference to `Glib::ustrin g::~ustring()' lib\math\vector.o:vector.cpp:(.text+0x437): undefined reference to `Glib::ustrin g::~ustring()' lib\math\vector.o:vector.cpp:(.text+0x4a3): undefined reference to `Glib::ustrin g::~ustring()' lib\math\vector.o:vector.cpp:(.text+0x4b2): undefined reference to `Glib::ustrin g::~ustring()' lib\math\vector.o:vector.cpp:(.text+0x4cd): more undefined references to `Glib:: ustring::~ustring()' follow lib\math\vector.o:vector.cpp:(.text+0x8fb): undefined reference to `Glib::strerr or(int)' lib\math\vector.o:vector.cpp:(.text+0x937): undefined reference to `Glib::ustrin g::ustring(std::string const&)' lib\math\vector.o:vector.cpp:(.text+0x98c): undefined reference to `Glib::ustrin g::~ustring()' lib\math\vector.o:vector.cpp:(.text+0x995): undefined reference to `Glib::ustrin g::~ustring()' lib\math\vector.o:vector.cpp:(.text+0x9aa): undefined reference to `Glib::ustrin g::~ustring()' lib\math\vector.o:vector.cpp:(.text+0x9fc): undefined reference to `Glib::ustrin g::~ustring()' lib\math\vector.o:vector.cpp:(.text+0xa0b): undefined reference to `Glib::ustrin g::~ustring()' lib\math\vector.o:vector.cpp:(.text+0xa26): more undefined references to `Glib:: ustring::~ustring()' follow c:/mingw/bin/../lib/gcc/mingw32/4.7.2/../../../../mingw32/bin/ld.exe: lib\math\v ector.o: bad reloc address 0x12 in section `.text$_ZN2MR9ExceptionD1Ev[__ZN2MR9E xceptionD1Ev]' collect2.exe: error: ld returned 1 exit status STOP -------------------------------------------------------------------------------------------------------------------------------------------------------- On Wed, May 8, 2013 at 6:47 PM, Eli Zaretskii [via MinGW] < ml-...@n7...> wrote: > > Date: Wed, 8 May 2013 01:16:42 -0700 (PDT) > > From: JesseRJ <[hidden email]<http://user/SendEmail.jtp?type=node&node=31356&i=0>> > > > > > I guess that the GSL libraries are not being found and I need to add a > -L > > pointing to the library but because the compilation is being done by the > > python script I do not really now how to do this. Is there a path that > can > > be set or other options? Currently GnuWin is installed at C:\GnuWin32\ > > Just copy everything in C:\GnuWin32\lib into c:\mingw\lib, and > everything in c:\GnuWin32\include into c:\mingw\include. You will > save yourself a lot of grief down the road. > > IOW, don't try to maintain two (or more) separate trees with header > files and libraries; instead, put them all into the same tree where > you installed MinGW, because that's where the compiler will look by > default. That way, you won't need to futz with -L switches. > > ------------------------------------------------------------------------------ > > Learn Graph Databases - Download FREE O'Reilly Book > "Graph Databases" is the definitive new guide to graph databases and > their applications. This 200-page book is written by three acclaimed > leaders in the field. The early access version is available now. > Download your free book today! http://p.sf.net/sfu/neotech_d2d_may > _______________________________________________ > MinGW-users mailing list > [hidden email] <http://user/SendEmail.jtp?type=node&node=31356&i=1> > > This list observes the Etiquette found at > http://www.mingw.org/Mailing_Lists. > We ask that you be polite and do the same. Disregard for the list > etiquette may cause your account to be moderated. > > _______________________________________________ > You may change your MinGW Account Options or unsubscribe at: > https://lists.sourceforge.net/lists/listinfo/mingw-users > Also: mailto:[hidden email]<http://user/SendEmail.jtp?type=node&node=31356&i=2>?subject=unsubscribe > > > > ------------------------------ > If you reply to this email, your message will be added to the discussion > below: > > http://mingw.5.n7.nabble.com/cannot-find-lgsl-and-lgslcblas-tp31354p31356.html > To unsubscribe from cannot find -lgsl and -lgslcblas, click here<http://mingw.5.n7.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=31354&code=amVzc2UucmpAZ21haWwuY29tfDMxMzU0fC0xMTU0MTgwMTc3> > . > NAML<http://mingw.5.n7.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml> > |