Results 1 to 1 of 1

Thread: Visual Studio 2010 + dynamic libraries

  1. #1
    Join Date
    Apr 2012
    Posts
    1
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Visual Studio 2010 + dynamic libraries

    Hi there
    ive got a a problem consist of using moc in visual studio (msvc) thing looks like that:
    ABI/
    Plugin.cpp
    Plugin.h
    Terminal/
    Terminal.cpp
    Terminal.h

    Plugin.h contains:
    Qt Code:
    1. #include <QObject>
    2.  
    3. class Plugin : public QObject
    4. {
    5. Q_OBJECT
    6. public:
    7. Plugin();
    8. virtual void foo() = 0;
    9. }
    10. Q_DECLARE_INTERFACE(VirtualPlugin,"qsecurity.VirtualPlugin")
    To copy to clipboard, switch view to plain text mode 

    and Terminal.h:
    Qt Code:
    1. #include <Plugin.h>
    2.  
    3. class Terminal : public Plugin
    4. {
    5. Q_OBJECT
    6. Q_INTERFACES(Plugin)
    7. public:
    8. Terminal();
    9. void foo();
    10. }
    To copy to clipboard, switch view to plain text mode 

    so in msvc i added the path to include directory ../ABI
    for Terminal, files in ABI/ and Terminal/ are moc'ed.

    Files that are part of ABI and are included #include <Plugin.h> doesnt get moc'ed
    compiling Terminl i get error: undefined interface ive tried to add this files to Terminal project via menu "add" -> "existing item" and this got into generated files but i still get this error while build any suggestions?

    on any other platform linux,macos using qmake it works fine
    Last edited by prauat; 19th April 2012 at 12:11.

Similar Threads

  1. [QT] - Include DLL in Visual Studio 2010
    By vinzz38 in forum Qt Programming
    Replies: 4
    Last Post: 3rd April 2012, 16:44
  2. Qt add in Visual Studio 2010 problem
    By qtmude in forum Installation and Deployment
    Replies: 2
    Last Post: 18th January 2012, 14:41
  3. Qt and Visual Studio 2010
    By SixDegrees in forum Qt Programming
    Replies: 6
    Last Post: 15th November 2010, 19:56
  4. Visual Studio Plugin (1.1.6) crashes Visual Studio (2010)
    By mboeni in forum Installation and Deployment
    Replies: 0
    Last Post: 11th October 2010, 16:46
  5. Plan for Visual Studio 2010 (MSVC 2010)?
    By Vinzz in forum Qt Programming
    Replies: 1
    Last Post: 18th April 2010, 17:42

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.