Results 1 to 2 of 2

Thread: GeographicLib and Qt

  1. #1
    Join Date
    Jan 2010
    Location
    Dhaka, Bangladesh
    Posts
    7
    Qt products
    Qt4
    Platforms
    Windows Symbian S60
    Thanks
    1

    Default GeographicLib and Qt

    Hi all...
    i am trying to use GeographicLib library for my application.
    i have linked this library and i added typedef eg-

    using namespace GeographicLib;
    typedef Math::real real;
    ///

    real a, r, k0;
    GeographicLib::TransverseMercator TMS = TransverseMercator( a, r, k0);

    and i have got error like this-
    undefined reference to `GeographicLib::TransverseMercator::TransverseMerc ator(double, double, double)'


    plz help...
    thanks

  2. #2
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,729
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Thanks
    13
    Thanked 1,610 Times in 1,537 Posts
    Wiki edits
    17

    Default Re: GeographicLib and Qt

    I assume that error message is coming from the linker. Looks like the library is not being found by the linker. If you are using qmake then check that you have the LIBS variable set correctly with
    Qt Code:
    1. LIBS += -L/path/to/library_directory -lname
    To copy to clipboard, switch view to plain text mode 

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Qt is a trademark of The Qt Company.