Results 1 to 4 of 4

Thread: QTCreator Make Torrent undefined reference to `__gxx_personality_sj0'

  1. #1
    Join Date
    Mar 2010
    Posts
    92
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60

    Default QTCreator Make Torrent undefined reference to `__gxx_personality_sj0'

    i run QTcreator error undefined reference to `__gxx_personality_sj0' linker mingw,can you help find Library ?

  2. #2
    Join Date
    Mar 2010
    Posts
    92
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60

    Default Re: QTCreator Make Torrent undefined reference to `__gxx_personality_sj0'

    #-------------------------------------------------
    #
    # Project created by QtCreator 2010-03-30T04:29:20
    #
    #-------------------------------------------------

    QT -= gui

    TARGET = QTBoost_Simple
    CONFIG += console
    CONFIG -= app_bundle
    TEMPLATE = app
    SOURCES += main.cpp
    INCLUDEPATH += D:/CD_LAP_TRINH/cach_su_dung_thu_vien_boost/Boost_Mingw
    LIBS += "D:/CD_LAP_TRINH/cach_su_dung_thu_vien_boost/Boost_Mingw/lib/libboost_filesystem-mgw34-mt.lib"
    LIBS += "D:/CD_LAP_TRINH/cach_su_dung_thu_vien_boost/Boost_Mingw/lib/libboost_system-mgw34-mt.lib"
    LIBS += "D:/CD_LAP_TRINH/cach_su_dung_thu_vien_boost/Boost_Mingw/lib/libboost_thread-mgw34-mt.lib"
    LIBS += "C:/MinGW/lib/gcc/mingw32/3.4.5/libgcc.a"
    LIBS += -lws2_32
    LIBS += -lwinmm
    LIBS += -lgcc
    Qt Code:
    1. #include <boost/filesystem/operations.hpp>
    2. #include <iostream>
    3. namespace fs = boost::filesystem;
    4. int main( int argc, char* argv[] )
    5. {
    6. if ( argc != 2 )
    7. {
    8. std::cout << "Usage: file_size path\n";
    9. return 1;
    10. }
    11. std::cout << "sizeof(intmax_t) is " << sizeof(boost::intmax_t) << '\n';
    12. fs::path p( argv[1], fs::native );
    13.  
    14. if ( !fs::exists( p ) )
    15. {
    16. std::cout << "not found: " << argv[1] << std::endl;
    17. return 1;
    18. }
    19. if ( !fs::is_regular( p ) )
    20. {
    21. std::cout << "not a regular file: " << argv[1] << std::endl;
    22. return 1;
    23. }
    24. std::cout << "size of " << argv[1] << " is " << fs::file_size( p )
    25. << std::endl;
    26. return 0;
    27. }
    To copy to clipboard, switch view to plain text mode 


    Boost_Mingw/lib/libboost_filesystem-mgw34-mt.lib(operations.o)perations.cpp.text+0x5f2): undefined reference to `__gxx_personality_sj0'
    Boost_Mingw/lib/libboost_filesystem-mgw34-mt.lib(operations.o)perations.cpp.text+0xa58): undefined reference to `__gxx_personality_sj0'

  3. #3
    Join Date
    Mar 2008
    Location
    France
    Posts
    149
    Thanks
    2
    Thanked 21 Times in 21 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: QTCreator Make Torrent undefined reference to `__gxx_personality_sj0'


  4. #4
    Join Date
    Mar 2008
    Location
    France
    Posts
    149
    Thanks
    2
    Thanked 21 Times in 21 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: QTCreator Make Torrent undefined reference to `__gxx_personality_sj0'

    Rebuild Qt libraries using the same MinGW which you use for your application development.

Similar Threads

  1. Create Torrent File And Upload Internet QtCreator
    By nhs_0702 in forum Qt Programming
    Replies: 4
    Last Post: 27th March 2010, 10:05
  2. i want write TOrrent client on QTCreator
    By nhs_0702 in forum Qt Programming
    Replies: 0
    Last Post: 26th March 2010, 08:32
  3. undefined reference
    By jayreddy in forum Qt Programming
    Replies: 1
    Last Post: 20th November 2009, 14:45
  4. Undefined Reference To...
    By ManuMies in forum Qt Programming
    Replies: 6
    Last Post: 10th February 2009, 13:14
  5. Undefined reference
    By Salazaar in forum Newbie
    Replies: 12
    Last Post: 23rd May 2007, 11:21

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.