Results 1 to 5 of 5

Thread: How do I import and export namespace function in VC++?

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Oct 2006
    Posts
    279
    Thanks
    6
    Thanked 40 Times in 39 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: How do I import and export namespace function in VC++?

    Check that:
    1. Compiling MyLibrary generates MyLibrary.lib and MyLibrary.dll
    2. Load Mylibrary.dll with depends.exe to see that your function has been successfully exported.
    3. Ensure that your makefile/.vcproj links to MyLibrary.lib


    The last step is done by adding the following to the .pro file of DLL 2
    Qt Code:
    1. LIBS += -L<PathToLib> -lMyLibrary
    To copy to clipboard, switch view to plain text mode 

  2. #2
    Join Date
    Dec 2006
    Posts
    426
    Thanks
    8
    Thanked 18 Times in 17 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11

    Talking Re: How do I import and export namespace function in VC++?

    Quote Originally Posted by spud View Post
    Check that:
    1. Compiling MyLibrary generates MyLibrary.lib and MyLibrary.dll
    2. Load Mylibrary.dll with depends.exe to see that your function has been successfully exported.
    3. Ensure that your makefile/.vcproj links to MyLibrary.lib


    The last step is done by adding the following to the .pro file of DLL 2
    Qt Code:
    1. LIBS += -L<PathToLib> -lMyLibrary
    To copy to clipboard, switch view to plain text mode 
    Thanks!!

    I forgot to link to DLL1 when building DLL2. It works now.

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.