Results 1 to 6 of 6

Thread: Linker errors at building MySQL for Qt (Windows)

  1. #1
    Join Date
    Oct 2010
    Posts
    5
    Qt products
    Qt4
    Platforms
    Windows

    Default Linker errors at building MySQL for Qt (Windows)

    Hey there,
    I'm trying to build MySQL for Qt under Windows (MinGW). It worked fine on my Netbook (Win7 Standard 32bit), but I'm getting tons of linker errors on my PC (Win7 Prof 64bit) in QSQL_MYSQL.cpp, such as "undefined reference to mysql_free_result@4".

    Here an image: http://www.anteevy.de/upload/temp/cmd.png

    I used this guide: http://www.qtcentre.org/wiki/index.p...ws_using_MinGW

    Any ideas?

  2. #2
    Join Date
    Jan 2008
    Location
    Davao City, Philippines
    Posts
    77
    Thanks
    16
    Thanked 4 Times in 4 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: Linker errors at building MySQL for Qt (Windows)

    Quote Originally Posted by anteevy View Post
    That's a little bit old, have you tried this: http://doc.qt.nokia.com/4.6/sql-driver.html

  3. #3
    Join Date
    Oct 2010
    Posts
    5
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Linker errors at building MySQL for Qt (Windows)

    Yes, I looked there too and tried it. But I don't see much of a difference there besides leaving out the "-o Makefile" and building directly from the lib without converting it to .a before. Same linker errors

  4. #4
    Join Date
    Jan 2008
    Location
    Davao City, Philippines
    Posts
    77
    Thanks
    16
    Thanked 4 Times in 4 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: Linker errors at building MySQL for Qt (Windows)

    I can't really help you, bc I don't have a Windows/64bit. But the error message normally means, there is either a library missing or the library exist, but it's a wrong version, to old for example.

    I would suggest to uninstall the whole mysql-stuff und then install it again. Should not be a big deal.

  5. #5
    Join Date
    Oct 2010
    Posts
    5
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Linker errors at building MySQL for Qt (Windows)

    Crazy, I reinstalled it and now it works. I'm getting afraid of the power of randomness :P

  6. #6
    Join Date
    Jan 2008
    Location
    Davao City, Philippines
    Posts
    77
    Thanks
    16
    Thanked 4 Times in 4 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: Linker errors at building MySQL for Qt (Windows)

    Quote Originally Posted by anteevy View Post
    Crazy, I reinstalled it and now it works. I'm getting afraid of the power of randomness :P

    That's not because randomness, that's a feature of windows ...

    In other words, that's the only bad thing with Linux, with Linux you don't have fun like this ...

Similar Threads

  1. Building MySQL QT Drivers on Windows XP
    By cia.michele in forum Newbie
    Replies: 6
    Last Post: 16th August 2010, 18:54
  2. please help with linker errors
    By jimboqt in forum Qt Programming
    Replies: 1
    Last Post: 5th July 2007, 09:49
  3. Problems building mysql plugin for Qt 4.1.2 on windows XP
    By Philip_Anselmo in forum Installation and Deployment
    Replies: 3
    Last Post: 17th May 2006, 15:38
  4. Linker errors!!
    By Seema Rao in forum Qt Programming
    Replies: 2
    Last Post: 25th April 2006, 08:14
  5. Linker Errors
    By MarkoSan in forum Qt Programming
    Replies: 5
    Last Post: 7th March 2006, 18:30

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.