Results 1 to 10 of 10

Thread: Problem including library (dllimport)

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jan 2006
    Location
    Belgium
    Posts
    1,938
    Thanked 268 Times in 268 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows
    Wiki edits
    20

    Default Re: Problem including library (dllimport)

    This is a quess. Without seeing the CyDeviceFinder.h include file I can't be sure.
    But try this: #define CYDEVICEFINDER_EXPORTS instead of #define IMAGECOMPOSER_EXPORTS

    Now, in reality it might be named differently, check CyDeviceFinder.h

  2. #2
    Join Date
    Nov 2009
    Posts
    39
    Thanks
    3
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Problem including library (dllimport)

    It didnt work

    Despite the include I wrote is for CyDeviceFinder.h , the error seems to come from another file..

    I include DeviceFinder, but that ones includes CyConfig, that one CyPersistentRepository and at last CyParameterRepository

    I tried to write the define line in CyPersistentRepository like

    #define CYPERSISTENTREPOSITORY_EXPORTS
    and also
    #define CYPARAMETERREPOSITORY_EXPORTS

    but still doesnt work....

  3. #3
    Join Date
    Jan 2006
    Location
    Belgium
    Posts
    1,938
    Thanked 268 Times in 268 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows
    Wiki edits
    20

    Default Re: Problem including library (dllimport)

    I have no idea then.
    Did you check the documentation of the library you're using?

  4. #4
    Join Date
    Nov 2009
    Posts
    39
    Thanks
    3
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Problem including library (dllimport)

    Yes, i checked, they use Visual Studio to make it work.... could it have something to do with this problem?

  5. #5
    Join Date
    Nov 2009
    Posts
    39
    Thanks
    3
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Problem including library (dllimport)

    I'm trying now with Visual Studio Express and it seems to work, how is it possible that it works on VS and not in QT, arent the libraries independent from the Development environment?

Similar Threads

  1. Problem of including Widgets into DLL
    By dsedov in forum Qt Programming
    Replies: 15
    Last Post: 14th July 2021, 23:05
  2. Problem with including lib files
    By metow in forum Qt Tools
    Replies: 2
    Last Post: 12th December 2009, 21:57
  3. Replies: 5
    Last Post: 19th November 2008, 17:54
  4. Replies: 3
    Last Post: 10th May 2008, 17:36
  5. Algorithms problem of brackets including.
    By luffy27 in forum General Programming
    Replies: 2
    Last Post: 12th April 2007, 01:10

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.