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. SMTP Client
Forum Updated to NodeBB v4.3 + New Features

SMTP Client

Scheduled Pinned Locked Moved Solved General and Desktop
5 Posts 2 Posters 849 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.
  • Dan3460D Offline
    Dan3460D Offline
    Dan3460
    wrote on last edited by
    #1

    Has been a while since i worked with QT. A couple of years ago I used the bluetiger9/SmtpClient-for-Qt and worked pretty good as i recall. I have a new desktop computer so i lost the old QT and the configuration. I have a brand new install of QT.
    I created a new project (test1) and compile it and runs, i get the empty window. In the project folder i created a folder smtp and put the contents of the scr folder from the download in there. I added a folder to the project by right click on the project and selecting add. I added the network keyword to the .pro QT directive (so i have core gui network).
    The first error that i get is "multiple definition of qmain" but i don't get how can it be picked up again by the compilor.
    Thanks for the help.

    1 Reply Last reply
    0
    • Dan3460D Offline
      Dan3460D Offline
      Dan3460
      wrote on last edited by
      #2

      I solve the multiple references, for some reason when i added the folder the main.cpp and the mainwindow.cpp where duplicated in the .pro file. I still have more than 120 error. Most of them point to undefined references in the moc files.

      mrjjM 1 Reply Last reply
      0
      • Dan3460D Dan3460

        I solve the multiple references, for some reason when i added the folder the main.cpp and the mainwindow.cpp where duplicated in the .pro file. I still have more than 120 error. Most of them point to undefined references in the moc files.

        mrjjM Offline
        mrjjM Offline
        mrjj
        Lifetime Qt Champion
        wrote on last edited by
        #3

        @Dan3460
        And you did delete any old build folder that might be around ?

        1 Reply Last reply
        2
        • Dan3460D Offline
          Dan3460D Offline
          Dan3460
          wrote on last edited by
          #4

          I solved the problem maybe in a troglodyte way. On the definition of every class right after the word class was a macro called SMTP_EXPORT which in term called a QT macro either Q_DECL_EXPORT or Q_DECL_IMPORT i'm guessing depending if you are building the library or using it once built.
          I didn't know how to use this as a library, so my solution was to delete SMTP_EXPORT from each class and compile all the classes as part of the program.
          I don't know what implication that may have, but the program works nicely.
          Thanks

          mrjjM 1 Reply Last reply
          2
          • Dan3460D Dan3460

            I solved the problem maybe in a troglodyte way. On the definition of every class right after the word class was a macro called SMTP_EXPORT which in term called a QT macro either Q_DECL_EXPORT or Q_DECL_IMPORT i'm guessing depending if you are building the library or using it once built.
            I didn't know how to use this as a library, so my solution was to delete SMTP_EXPORT from each class and compile all the classes as part of the program.
            I don't know what implication that may have, but the program works nicely.
            Thanks

            mrjjM Offline
            mrjjM Offline
            mrjj
            Lifetime Qt Champion
            wrote on last edited by
            #5

            Hi
            Might not have any implications unless you plans to use it as a shared library.

            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