Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Problems linking gsl 2.1
Forum Updated to NodeBB v4.3 + New Features

Problems linking gsl 2.1

Scheduled Pinned Locked Moved Solved General and Desktop
6 Posts 2 Posters 1.5k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    avillaj88
    wrote on last edited by
    #1

    I'm using Qt 5.8 and gsl 2.1 (compiled with cygwin64), this is what i use in the .pro file to link gsl:

    INCLUDEPATH+=C:/gsl/include/
    INCLUDEPATH += C:/gsl/LIBS
    LIBS += -LC:/gsl/lib -lgsl -lgslcblas -lm

    when i include the headers and compile i don't have any problem even when i declare and object, but when i tray to use any function i got this error:

    C:\Users\CIFAS-1\untitled4\mainwindow.cpp:9: error: undefined reference to `gsl_matrix_alloc'.

    Please any one has some idea?

    jsulmJ 1 Reply Last reply
    0
    • A Offline
      A Offline
      avillaj88
      wrote on last edited by avillaj88
      #6

      I already solve the problem, I found a compiled version of gsl for mingw32 here https://code.google.com/archive/p/gsl-w32/downloads , it is another version but works great.

      1 Reply Last reply
      0
      • A avillaj88

        I'm using Qt 5.8 and gsl 2.1 (compiled with cygwin64), this is what i use in the .pro file to link gsl:

        INCLUDEPATH+=C:/gsl/include/
        INCLUDEPATH += C:/gsl/LIBS
        LIBS += -LC:/gsl/lib -lgsl -lgslcblas -lm

        when i include the headers and compile i don't have any problem even when i declare and object, but when i tray to use any function i got this error:

        C:\Users\CIFAS-1\untitled4\mainwindow.cpp:9: error: undefined reference to `gsl_matrix_alloc'.

        Please any one has some idea?

        jsulmJ Offline
        jsulmJ Offline
        jsulm
        Lifetime Qt Champion
        wrote on last edited by
        #2

        @avillaj88 said in Problems linking gsl 2.1:

        compiled with cygwin64

        Do you use exactly the same compiler you used to build gsl?
        On Windows you cannot mix different compilers.

        https://forum.qt.io/topic/113070/qt-code-of-conduct

        1 Reply Last reply
        2
        • A Offline
          A Offline
          avillaj88
          wrote on last edited by avillaj88
          #3

          I use to compile gsl cygwin64 and to run the example the Qt creator default compiler

          jsulmJ 1 Reply Last reply
          0
          • A avillaj88

            I use to compile gsl cygwin64 and to run the example the Qt creator default compiler

            jsulmJ Offline
            jsulmJ Offline
            jsulm
            Lifetime Qt Champion
            wrote on last edited by
            #4

            @avillaj88 There is no default compiler in QtCreator.
            Which compiler do you use in QtCreator?
            What exact Qt version did you install?
            Use same compiler for both, Qt and gsl.

            https://forum.qt.io/topic/113070/qt-code-of-conduct

            1 Reply Last reply
            0
            • A Offline
              A Offline
              avillaj88
              wrote on last edited by
              #5
              This post is deleted!
              1 Reply Last reply
              0
              • A Offline
                A Offline
                avillaj88
                wrote on last edited by avillaj88
                #6

                I already solve the problem, I found a compiled version of gsl for mingw32 here https://code.google.com/archive/p/gsl-w32/downloads , it is another version but works great.

                1 Reply Last reply
                0

                • Login

                • Login or register to search.
                • First post
                  Last post
                0
                • Categories
                • Recent
                • Tags
                • Popular
                • Users
                • Groups
                • Search
                • Get Qt Extensions
                • Unsolved