Results 1 to 1 of 1

Thread: ActiveQt Examples fail with VS2010

  1. #1
    Join Date
    Nov 2010
    Posts
    8
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11 Maemo/MeeGo

    Default ActiveQt Examples fail with VS2010

    Hello,
    I have just accomplished the integration of Qt with VS2010.
    I am able to open and run a Qt application (.pro file) without a flaw. However, when I try to build the dotnet examples in Qt\4.8.0\examples\activeqt\dotnet..., I get a persistent error. The error is as follows:

    Qt Code:
    1. Warning 1 warning D9035: option 'clr:oldsyntax' has been deprecated and will be removed in a future release D:\user\kirbac\QtSDK\Desktop\Qt\4.8.0\examples\activeqt\dotnet\wrapper\lib\cl lib
    2.  
    3. Warning 2 warning C4561: '__fastcall' incompatible with the '/clr' option: converting to '__stdcall' d:\user\kirbac\qtsdk\desktop\qt\4.8.0\src\corelib\tools\qchar.h 310 1 lib
    4.  
    5. Error 103 error LNK2028: unresolved token (0A0003C4) "public: static class QString __cdecl QString::fromWCharArray(wchar_t const *,int)" (?fromWCharArray@QString@@$$FSA?AV1@PB_WH@Z) referenced in function "class QString __clrcall StringToQString(class System::String ^)" (?StringToQString@@$$FYM?AVQString@@P$AAVString@System@@@Z) D:\user\kirbac\QtSDK\Desktop\Qt\4.8.0\examples\activeqt\dotnet\wrapper\lib\tools.obj lib
    6.  
    7.  
    8. Error 2 The type or namespace name 'netWorker' could not be found (are you missing a using directive or an assembly reference?) D:\user\kirbac\QtSDK\Desktop\Qt\4.8.0\examples\activeqt\dotnet\wrapper\main.cs 10 4 app
    9.  
    10. Warning 109 Could not resolve this reference. Could not locate the assembly "lib". Check to make sure the assembly exists on disk. If this reference is required by your code, you may get compilation errors. app
    11.  
    12. Warning 110 The referenced component 'lib' could not be found.
    To copy to clipboard, switch view to plain text mode 
    This example is very important because it demonstrates how a C++ Qt class can be used in C# .NET environment. If I get it working, I will be able to access my own class from C# .*
    I cannot employ any VS solutions in the examples. Is there anyone who can help me with that?

    Thanks
    Last edited by magpielover; 13th January 2012 at 15:17.

Similar Threads

  1. Rebuild QT 3.1.2 with VS2010
    By rangbis in forum Installation and Deployment
    Replies: 1
    Last Post: 16th June 2011, 17:39
  2. QtCreator and VS2010
    By stef13013 in forum Qt Programming
    Replies: 1
    Last Post: 13th February 2011, 11:33
  3. Linking fail when compileing Qt 4.7.1 with VS2010 on win 7 x64
    By BiceMaster in forum Installation and Deployment
    Replies: 7
    Last Post: 7th February 2011, 13:42
  4. VS2010 Support
    By Dato0011 in forum Qt Tools
    Replies: 3
    Last Post: 19th February 2010, 17:57
  5. use ActiveQt examples
    By MrShahi in forum Qt Programming
    Replies: 1
    Last Post: 25th April 2008, 12:15

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.