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. Armadillo QT Editor Windows 7
Forum Updated to NodeBB v4.3 + New Features

Armadillo QT Editor Windows 7

Scheduled Pinned Locked Moved Unsolved General and Desktop
14 Posts 4 Posters 1.4k Views 1 Watching
  • 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.
  • H Offline
    H Offline
    helpPls
    wrote on last edited by
    #1

    Hi everyone,

    I keep getting the following error, among others:

    C:\Users\Phil\Desktop\TITO\Armadillo\armadillo-9.400.3\include\armadillo_bits\wrapper_blas.hpp:189: error: undefined reference to `ddot'

    I have my pro file as follows:

    TEMPLATE = app
    CONFIG += console c++11
    CONFIG -= app_bundle
    CONFIG -= qt

    SOURCES +=
    main.cpp

    #INCLUDEPATH += C:\armadillo-9.400.3\include \

    #LIBS += \

    -LC:\armadillo-9.400.3\lib_win64\

    -llibblas32 \

    -lliblapack32

    INCLUDEPATH += C:\Users\Phil\Desktop\TITO\Armadillo\armadillo-9.400.3\include \

    LIBS +=
    -LC:\Users\Phil\Desktop\TITO\Armadillo\armadillo-9.400.3\examples\lib_win64
    -llapack_win64_MT
    -lblas_win64_MT

    How do I fix this error? Thank you so much!

    aha_1980A 1 Reply Last reply
    0
    • H helpPls

      Hi everyone,

      I keep getting the following error, among others:

      C:\Users\Phil\Desktop\TITO\Armadillo\armadillo-9.400.3\include\armadillo_bits\wrapper_blas.hpp:189: error: undefined reference to `ddot'

      I have my pro file as follows:

      TEMPLATE = app
      CONFIG += console c++11
      CONFIG -= app_bundle
      CONFIG -= qt

      SOURCES +=
      main.cpp

      #INCLUDEPATH += C:\armadillo-9.400.3\include \

      #LIBS += \

      -LC:\armadillo-9.400.3\lib_win64\

      -llibblas32 \

      -lliblapack32

      INCLUDEPATH += C:\Users\Phil\Desktop\TITO\Armadillo\armadillo-9.400.3\include \

      LIBS +=
      -LC:\Users\Phil\Desktop\TITO\Armadillo\armadillo-9.400.3\examples\lib_win64
      -llapack_win64_MT
      -lblas_win64_MT

      How do I fix this error? Thank you so much!

      aha_1980A Offline
      aha_1980A Offline
      aha_1980
      Lifetime Qt Champion
      wrote on last edited by
      #2

      @helpPls

      I'm not sure this is the actual problem, but I had such a problem before:

      -LC:\armadillo-9.400.3\lib_win64\

      1. prefer forward slash / over backslash \ (also in C++ source code)
      2. Remove the trailing slash. It can be interpreted as line continuation

      To further debug your problem, please find out which library is defining your missing symbol.

      Regards

      Qt has to stay free or it will die.

      H 1 Reply Last reply
      1
      • aha_1980A aha_1980

        @helpPls

        I'm not sure this is the actual problem, but I had such a problem before:

        -LC:\armadillo-9.400.3\lib_win64\

        1. prefer forward slash / over backslash \ (also in C++ source code)
        2. Remove the trailing slash. It can be interpreted as line continuation

        To further debug your problem, please find out which library is defining your missing symbol.

        Regards

        H Offline
        H Offline
        helpPls
        wrote on last edited by
        #3

        @aha_1980

        Hi! This is the error message I'm getting...

        C:\Users\Phil\Desktop\TITO\build-armadilllo_test-Desktop_Qt_5_12_3_MinGW_32_bit-Debug\debug\main.o:-1: In function `ZN4arma4blas3dotIdEET_jPKS2_S4_':

        W 1 Reply Last reply
        0
        • H helpPls

          @aha_1980

          Hi! This is the error message I'm getting...

          C:\Users\Phil\Desktop\TITO\build-armadilllo_test-Desktop_Qt_5_12_3_MinGW_32_bit-Debug\debug\main.o:-1: In function `ZN4arma4blas3dotIdEET_jPKS2_S4_':

          W Offline
          W Offline
          wrosecrans
          wrote on last edited by
          #4

          @helpPls What's the whole error message? That just looks like the first line of one.

          H 1 Reply Last reply
          2
          • W wrosecrans

            @helpPls What's the whole error message? That just looks like the first line of one.

            H Offline
            H Offline
            helpPls
            wrote on last edited by
            #5

            @wrosecrans

            This isn't the whole thing...

            C:\Users\Phil\Desktop\TITO\build-armadilllo_test-Desktop_Qt_5_12_3_MinGW_32_bit-Debug\debug\main.o:-1: In function ZN4arma4blas3dotIdEET_jPKS2_S4_': C:\Users\Phil\Desktop\TITO\Armadillo\armadillo-9.400.3\include\armadillo_bits\wrapper_blas.hpp:189: error: undefined reference to ddot'
            C:\Users\Phil\Desktop\TITO\build-armadilllo_test-Desktop_Qt_5_12_3_MinGW_32_bit-Debug\debug\main.o:-1: In function ZN4arma6lapack5getrfIdEEvPiS2_PT_S2_S2_S2_': C:\Users\Phil\Desktop\TITO\Armadillo\armadillo-9.400.3\include\armadillo_bits\wrapper_lapack.hpp:42: error: undefined reference to dgetrf'
            C:\Users\Phil\Desktop\TITO\build-armadilllo_test-Desktop_Qt_5_12_3_MinGW_32_bit-Debug\debug\main.o:-1: In function `ZN4arma4blas4gemvIdEEvPKcPKiS5_PKT_S8_S5_S8_S5_S8_PS6_S5_':

            jsulmJ 1 Reply Last reply
            0
            • H helpPls

              @wrosecrans

              This isn't the whole thing...

              C:\Users\Phil\Desktop\TITO\build-armadilllo_test-Desktop_Qt_5_12_3_MinGW_32_bit-Debug\debug\main.o:-1: In function ZN4arma4blas3dotIdEET_jPKS2_S4_': C:\Users\Phil\Desktop\TITO\Armadillo\armadillo-9.400.3\include\armadillo_bits\wrapper_blas.hpp:189: error: undefined reference to ddot'
              C:\Users\Phil\Desktop\TITO\build-armadilllo_test-Desktop_Qt_5_12_3_MinGW_32_bit-Debug\debug\main.o:-1: In function ZN4arma6lapack5getrfIdEEvPiS2_PT_S2_S2_S2_': C:\Users\Phil\Desktop\TITO\Armadillo\armadillo-9.400.3\include\armadillo_bits\wrapper_lapack.hpp:42: error: undefined reference to dgetrf'
              C:\Users\Phil\Desktop\TITO\build-armadilllo_test-Desktop_Qt_5_12_3_MinGW_32_bit-Debug\debug\main.o:-1: In function `ZN4arma4blas4gemvIdEEvPKcPKiS5_PKT_S8_S5_S8_S5_S8_PS6_S5_':

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

              @helpPls Did you do what @aha_1980 suggested?

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

              H 1 Reply Last reply
              0
              • jsulmJ jsulm

                @helpPls Did you do what @aha_1980 suggested?

                H Offline
                H Offline
                helpPls
                wrote on last edited by
                #7

                @jsulm

                You mean, change / to ? Um...So comments are \ now? That didn't seem like a solution so I didn't try it. Should I?

                jsulmJ 1 Reply Last reply
                0
                • H helpPls

                  @jsulm

                  You mean, change / to ? Um...So comments are \ now? That didn't seem like a solution so I didn't try it. Should I?

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

                  @helpPls You should use / instead of \ in paths:

                  INCLUDEPATH += C:/armadillo-9.400.3/include
                  

                  "So comments are \ now?" - which comments do you mean? \ is an escape character and at the end of a line in pro files it means that the line continues in the next line:

                  LIBS += -LC:/Users/Phil/Desktop/TITO/Armadillo/armadillo-9.400.3/examples/lib_win64 \
                  -llapack_win64_MT \
                  -lblas_win64_MT
                  

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

                  H 1 Reply Last reply
                  2
                  • jsulmJ jsulm

                    @helpPls You should use / instead of \ in paths:

                    INCLUDEPATH += C:/armadillo-9.400.3/include
                    

                    "So comments are \ now?" - which comments do you mean? \ is an escape character and at the end of a line in pro files it means that the line continues in the next line:

                    LIBS += -LC:/Users/Phil/Desktop/TITO/Armadillo/armadillo-9.400.3/examples/lib_win64 \
                    -llapack_win64_MT \
                    -lblas_win64_MT
                    
                    H Offline
                    H Offline
                    helpPls
                    wrote on last edited by
                    #9

                    @jsulm

                    Hi..so my pro file looks like this now. The new error message is at the bottom.

                    TEMPLATE = app
                    CONFIG += console c++11
                    CONFIG -= app_bundle
                    CONFIG -= qt

                    SOURCES += /
                    main.cpp

                    #INCLUDEPATH += C:/armadillo-9.400.3/include

                    #LIBS += /

                    -LC:/armadillo-9.400.3/lib_win64/

                    -llibblas32 /

                    -lliblapack32

                    INCLUDEPATH += C:/Users/Phil/Desktop/TITO/Armadillo/armadillo-9.400.3/include

                    LIBS +=
                    -LC:/Users/Phil/Desktop/TITO/Armadillo/armadillo-9.400.3/examples/lib_win64
                    -llapack_win64_MT
                    -lblas_win64_MT

                    :-1: error: fatal error: no input files

                    jsulmJ aha_1980A 2 Replies Last reply
                    0
                    • H helpPls

                      @jsulm

                      Hi..so my pro file looks like this now. The new error message is at the bottom.

                      TEMPLATE = app
                      CONFIG += console c++11
                      CONFIG -= app_bundle
                      CONFIG -= qt

                      SOURCES += /
                      main.cpp

                      #INCLUDEPATH += C:/armadillo-9.400.3/include

                      #LIBS += /

                      -LC:/armadillo-9.400.3/lib_win64/

                      -llibblas32 /

                      -lliblapack32

                      INCLUDEPATH += C:/Users/Phil/Desktop/TITO/Armadillo/armadillo-9.400.3/include

                      LIBS +=
                      -LC:/Users/Phil/Desktop/TITO/Armadillo/armadillo-9.400.3/examples/lib_win64
                      -llapack_win64_MT
                      -lblas_win64_MT

                      :-1: error: fatal error: no input files

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

                      @helpPls

                      TEMPLATE = app
                      CONFIG += console c++11
                      CONFIG -= app_bundle
                      CONFIG -= qt
                      
                      SOURCES += main.cpp
                      
                      INCLUDEPATH += C:/Users/Phil/Desktop/TITO/Armadillo/armadillo-9.400.3/include
                      
                      LIBS += -LC:/Users/Phil/Desktop/TITO/Armadillo/armadillo-9.400.3/examples/lib_win64 \
                      -llapack_win64_MT \
                      -lblas_win64_MT
                      

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

                      1 Reply Last reply
                      2
                      • H helpPls

                        @jsulm

                        Hi..so my pro file looks like this now. The new error message is at the bottom.

                        TEMPLATE = app
                        CONFIG += console c++11
                        CONFIG -= app_bundle
                        CONFIG -= qt

                        SOURCES += /
                        main.cpp

                        #INCLUDEPATH += C:/armadillo-9.400.3/include

                        #LIBS += /

                        -LC:/armadillo-9.400.3/lib_win64/

                        -llibblas32 /

                        -lliblapack32

                        INCLUDEPATH += C:/Users/Phil/Desktop/TITO/Armadillo/armadillo-9.400.3/include

                        LIBS +=
                        -LC:/Users/Phil/Desktop/TITO/Armadillo/armadillo-9.400.3/examples/lib_win64
                        -llapack_win64_MT
                        -lblas_win64_MT

                        :-1: error: fatal error: no input files

                        aha_1980A Offline
                        aha_1980A Offline
                        aha_1980
                        Lifetime Qt Champion
                        wrote on last edited by
                        #11

                        Hi @helpPls

                        please adopt your pro file to what @jsulm suggested.

                        Further:

                        1. C:/Users/Phil/Desktop/TITO/Armadillo/armadillo-9.400.3/examples/lib_win64 - is it really examples/lib?

                        2. You are using a MinGW-32-Bit Kit, but give the linker a lib_win64 directory - is that correct?

                        Qt has to stay free or it will die.

                        H 1 Reply Last reply
                        2
                        • aha_1980A aha_1980

                          Hi @helpPls

                          please adopt your pro file to what @jsulm suggested.

                          Further:

                          1. C:/Users/Phil/Desktop/TITO/Armadillo/armadillo-9.400.3/examples/lib_win64 - is it really examples/lib?

                          2. You are using a MinGW-32-Bit Kit, but give the linker a lib_win64 directory - is that correct?

                          H Offline
                          H Offline
                          helpPls
                          wrote on last edited by
                          #12

                          @aha_1980

                          Hi..thank you for trying to help me. I adopted @jsulm's pro file and get the exact same errors. For 1., yes, that's where my files are. For 2., I tried it with MinGW-64 and it doesn't matter. It's all the same. Extremely frustrating. Wow, I just don't know what else to do.

                          jsulmJ aha_1980A 2 Replies Last reply
                          0
                          • H helpPls

                            @aha_1980

                            Hi..thank you for trying to help me. I adopted @jsulm's pro file and get the exact same errors. For 1., yes, that's where my files are. For 2., I tried it with MinGW-64 and it doesn't matter. It's all the same. Extremely frustrating. Wow, I just don't know what else to do.

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

                            @helpPls Please post you current pro file and please use the </> tags to encode it as code.
                            You can also check generated Makefile.
                            And post the complete compiler/linker output.

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

                            1 Reply Last reply
                            2
                            • H helpPls

                              @aha_1980

                              Hi..thank you for trying to help me. I adopted @jsulm's pro file and get the exact same errors. For 1., yes, that's where my files are. For 2., I tried it with MinGW-64 and it doesn't matter. It's all the same. Extremely frustrating. Wow, I just don't know what else to do.

                              aha_1980A Offline
                              aha_1980A Offline
                              aha_1980
                              Lifetime Qt Champion
                              wrote on last edited by
                              #14

                              Hi @helpPls,

                              and just to add to @jsulm, which files are actually located in the lib_win64 directory? Under Windows, you have linker include files for MSVC and MinGW compiler, and they are not compatible. Also, as already said, 32-bit and 64-bit libraries are also impossible to mix.

                              Regards

                              Qt has to stay free or it will die.

                              1 Reply Last reply
                              2

                              • Login

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