Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Cannot find -llibnetd
Qt 6.12 LTS is out! See what's new in the release blog

Cannot find -llibnetd

Scheduled Pinned Locked Moved General and Desktop
16 Posts 3 Posters 7.2k 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.
  • ? Offline
    ? Offline
    A Former User
    wrote on last edited by
    #7

    Thanks a lot. Problem solved.^_^
    [quote author="SGaist" date="1397161142"]There's something not clear: you are trying to build a program that depends on a library that you don't know anything about ?

    Then first thing, what's that program ? What version of Qt on what OS ?

    Might be that library "here":http://libnet.sourceforge.net[/quote]

    1 Reply Last reply
    0
    • ? Offline
      ? Offline
      A Former User
      wrote on last edited by
      #8

      The libnetd.dll and libnetd.lib exist in my project dirctory E:\HC_Station_translate, and
      LIBS += L. -llibnetd is in my .pro file, but when I am buiding the project, an error occurs:
      cannot find -llibnetd,ld returned 1 exit status. Any body knons why?

      1 Reply Last reply
      0
      • M Offline
        M Offline
        MarianMMX
        wrote on last edited by
        #9

        @LIBS += -L. -L$$PWD. -llibnetd@

        1 Reply Last reply
        0
        • ? Offline
          ? Offline
          A Former User
          wrote on last edited by
          #10

          $PWD means current directory path? I work in Windows,not linux et al.
          [quote author="MarianMMX" date="1397209527"]@LIBS += -L. -L$$PWD. -llibnetd@[/quote]

          1 Reply Last reply
          0
          • SGaistS Offline
            SGaistS Offline
            SGaist
            Lifetime Qt Champion
            wrote on last edited by
            #11

            What about:

            @LIBS += -lnetd@

            ?

            $$PWD will also work on Windows, it's not the command line environment variable in this case

            Interested in AI ? www.idiap.ch
            Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

            1 Reply Last reply
            0
            • ? Offline
              ? Offline
              A Former User
              wrote on last edited by
              #12

              T_T
              @LIBS += -lnetd@ Doesn't work yet. Thank you for your attention.
              [quote author="SGaist" date="1397214247"]What about:

              @LIBS += -lnetd@

              ?

              $$PWD will also work on Windows, it's not the command line environment variable in this case[/quote]

              1 Reply Last reply
              0
              • SGaistS Offline
                SGaistS Offline
                SGaist
                Lifetime Qt Champion
                wrote on last edited by
                #13

                Where is that library precisely located ?

                Interested in AI ? www.idiap.ch
                Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                1 Reply Last reply
                0
                • ? Offline
                  ? Offline
                  A Former User
                  wrote on last edited by
                  #14

                  It was located in my project dirctory all the time, so I am confused that all the things look right, but the error still occurs.Thank you again, I will figure it out.
                  [quote author="SGaist" date="1397246184"]Where is that library precisely located ?[/quote]

                  1 Reply Last reply
                  0
                  • M Offline
                    M Offline
                    MarianMMX
                    wrote on last edited by
                    #15

                    [quote author="qwerboo" date="1397207687"]The libnetd.dll and libnetd.lib exist in my project dirctory E:\HC_Station_translate, and
                    LIBS += L. -llibnetd is in my .pro file, but when I am buiding the project, an error occurs:
                    cannot find -llibnetd,ld returned 1 exit status. Any body knons why?[/quote]

                    If you're using QtCreator:
                    Open project .pro file.
                    Add (replace)
                    LIBS += -LE:\HC_Station_translate\ -lnetd
                    Build -> run qmake
                    build

                    1 Reply Last reply
                    0
                    • ? Offline
                      ? Offline
                      A Former User
                      wrote on last edited by
                      #16

                      It works. Thank you so much! ^_^
                      [quote author="MarianMMX" date="1397290377"][quote author="qwerboo" date="1397207687"]The libnetd.dll and libnetd.lib exist in my project dirctory E:\HC_Station_translate, and
                      LIBS += L. -llibnetd is in my .pro file, but when I am buiding the project, an error occurs:
                      cannot find -llibnetd,ld returned 1 exit status. Any body knons why?[/quote]

                      If you're using QtCreator:
                      Open project .pro file.
                      Add (replace)
                      LIBS += -LE:\HC_Station_translate\ -lnetd
                      Build -> run qmake
                      build
                      [/quote]

                      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
                      • Unsolved