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. error undefined reference to function that declared in header and dynamically linked
Forum Updated to NodeBB v4.3 + New Features

error undefined reference to function that declared in header and dynamically linked

Scheduled Pinned Locked Moved Solved General and Desktop
22 Posts 6 Posters 9.0k Views 5 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.
  • M mrjj
    4 Jan 2017, 07:55

    So in the end
    my hopeless formulated question
    about use extern "c" , turned out to be the case ?
    My very old compiler does like that. hence I asked :)

    A Offline
    A Offline
    ambershark
    wrote on 4 Jan 2017, 20:09 last edited by
    #21

    @mrjj said in error undefined reference to function that declared in header and dynamically linked:

    So in the end
    my hopeless formulated question
    about use extern "c" , turned out to be the case ?
    My very old compiler does like that. hence I asked :)

    Indeed it was. :) I was quick to shrug it off too thinking no that can't be it... But then you and @kshegunov proved me quite wrong there. ;)

    My L-GPL'd C++ Logger github.com/ambershark-mike/sharklog

    M 1 Reply Last reply 5 Jan 2017, 07:37
    1
    • A ambershark
      4 Jan 2017, 20:09

      @mrjj said in error undefined reference to function that declared in header and dynamically linked:

      So in the end
      my hopeless formulated question
      about use extern "c" , turned out to be the case ?
      My very old compiler does like that. hence I asked :)

      Indeed it was. :) I was quick to shrug it off too thinking no that can't be it... But then you and @kshegunov proved me quite wrong there. ;)

      M Offline
      M Offline
      mrjj
      Lifetime Qt Champion
      wrote on 5 Jan 2017, 07:37 last edited by
      #22

      @ambershark

      well, i would (also) have bet my money
      on mixed libs/compiler or incorrect LIBS +=
      and not extern "c" so that is very understandable.

      Also, very informative as i did not knew mingw would do that :)
      Cheers

      1 Reply Last reply
      1

      21/22

      4 Jan 2017, 20:09

      • Login

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