Results 1 to 5 of 5

Thread: use of VC++ code in Qt

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Mar 2006
    Posts
    9
    Thanks
    1
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Question use of VC++ code in Qt

    Hi guys,

    Is it possible in anyway to use VC++ code in Qt. I am using VC++ 6 compiler for compiling Qt Application.

    I have include afx.h header file. I hav also write this statement: CString str; Then i compiled code and code gets compiled. But the problems r coming during linking. The problem are:

    Linking...
    uafxcw.lib(afxmem.obj) : error LNK2005: "void * __cdecl operator new(unsigned int)" (??2@YAPAXI@Z) already defined in MSVCRT.lib(MSVCRT.dll)

    uafxcw.lib(afxmem.obj) : error LNK2005: "void __cdecl operator delete(void *)" (??3@YAXPAX@Z) already defined in msvcprt.lib(delop_s.obj)

    uafxcw.lib(appcore.obj) : error LNK2001: unresolved external symbol ___wargv
    uafxcw.lib(appcore.obj) : error LNK2001: unresolved external symbol ___argc
    release/tds_prg.exe : fatal error LNK1120: 2 unresolved externals
    Error executing link.exe.

    Reply me as soon as possible.

    Thanks in advance.

    Regards,
    Shail
    Last edited by shailesh; 26th April 2006 at 13:01.

Similar Threads

  1. copyright and gpl
    By janus in forum General Discussion
    Replies: 8
    Last Post: 21st October 2008, 01:13
  2. Qt Cryptographic Architecture
    By vermarajeev in forum Qt Programming
    Replies: 6
    Last Post: 9th February 2007, 13:15
  3. Problem closing a QMainWindow in Qt4.2
    By ian in forum Qt Programming
    Replies: 11
    Last Post: 17th October 2006, 00:49
  4. problem with linking
    By mickey in forum Qt Programming
    Replies: 49
    Last Post: 12th August 2006, 21:41

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
  •  
Qt is a trademark of The Qt Company.