Results 1 to 2 of 2

Thread: VS 2005 CLR wrapper library error compilation C2182

  1. #1
    Join Date
    Apr 2010
    Posts
    6
    Thanks
    1
    Qt products
    Qt4
    Platforms
    Windows

    Default VS 2005 CLR wrapper library error compilation C2182

    Hi,All
    I am using VS 2005 for build the CLR wrapper library of QT Body. I checked the QT example "..\activeqt\dotnet\wrapper"
    and build my project by this example. All was fine till I add the #include <QtNetwork> statement to one of my .cpp files.
    I get many errors: "error C2182: 't' : illegal use of type 'void' c:\qt\2010.02.1\qt\src\corelib\tools\qvector.h".

    I tried to include this row to QT example "..\activeqt\dotnet\wrapper" and get the same.

    What is wrong?

    Thanks for help.

  2. #2
    Join Date
    Aug 2008
    Location
    Usa
    Posts
    12
    Thanks
    1
    Qt products
    Qt4
    Platforms
    Windows

    Post Re: VS 2005 CLR wrapper library error compilation C2182

    soniaerm,

    Try the following:

    Qt Code:
    1. #pragma unmanaged
    2. #include <QtNetwork>
    3. #pragma managed
    To copy to clipboard, switch view to plain text mode 

    That should work

Similar Threads

  1. VS 2005 CLR wrapper library error compilation C2182
    By soniaerm in forum Qt Programming
    Replies: 0
    Last Post: 27th April 2010, 16:15
  2. Unable to detect the library on QT compilation
    By rhonaldmoses in forum Newbie
    Replies: 1
    Last Post: 16th August 2008, 21:01
  3. qtgui4.dll error in visual c++ 2005
    By Comptrol in forum Installation and Deployment
    Replies: 33
    Last Post: 19th June 2008, 07:18
  4. error compiling using vs 2005
    By arunredi in forum Installation and Deployment
    Replies: 1
    Last Post: 16th May 2008, 02:32
  5. Replies: 11
    Last Post: 18th May 2007, 10:38

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.