Results 1 to 4 of 4

Thread: Architecture decision for a Quant Library in C++

  1. #1
    Join Date
    May 2017
    Posts
    9
    Thanks
    2
    Qt products
    Qt5
    Platforms
    MacOS X Windows

    Default Architecture decision for a Quant Library in C++

    I am creating a proprietary Quant library for a project. The main application is being developed using Qt framework. It will be loading this Quant dll for making available various quant functions to the main application.

    There are following requirements for the dll:

    1. The Quant DLL will be using Armadillo Linear Algebra Library to solve
    2. Armadillo will be linking to OpenBlas in place of blas

    I have never linked a library to a library before.


    1. To be more specific can a I link a DLL to another DLL...in this case Quant DLL with ARMADILLO and OpenBLAS. What should be pro setting in Qt while compiling Quant library?
    2. What is the ideal architecture for this?

  2. #2
    Join Date
    Jan 2008
    Location
    Alameda, CA, USA
    Posts
    4,476
    Thanks
    252
    Thanked 709 Times in 699 Posts
    Qt products
    Qt5
    Platforms
    Windows Android

    Default Re: Architecture decision for a Quant Library in C++

    To be more specific can a I link a DLL to another DLL
    To be more precise, you link the DLL to the export library (.lib) for the second DLL (and third, etc.) The DLL themselves must be able to be located and loaded at run time (eg. on the PATH or in the same directory as the first DLL). So in the Qt .pro file you need to set up the LIBS directive to contain the paths where your other .lib files can be found (-L) as well as the names of those files (-l).

    What is the ideal architecture for this?
    Architecture for what? The development or the deployment?
    <=== The Great Pumpkin says ===>
    Please use CODE tags when posting source code so it is more readable. Click "Go Advanced" and then the "#" icon to insert the tags. Paste your code between them.

  3. The following user says thank you to d_stranz for this useful post:

    LSantoshKSingh (11th July 2017)

  4. #3
    Join Date
    May 2017
    Posts
    9
    Thanks
    2
    Qt products
    Qt5
    Platforms
    MacOS X Windows

    Default Re: Architecture decision for a Quant Library in C++

    Thanks a lot d_stranz, It is very helpful.

    Architecture for what? The development or the deployment?

    I meant Architecture for deployment. The issues I anticipated were missing DLL or library not linked properly or rebuilding on product update.

    Your reply has helped a lot; Thanks again.

  5. #4
    Join Date
    Jan 2008
    Location
    Alameda, CA, USA
    Posts
    4,476
    Thanks
    252
    Thanked 709 Times in 699 Posts
    Qt products
    Qt5
    Platforms
    Windows Android

    Default Re: Architecture decision for a Quant Library in C++

    Read this for a general description of Qt application deployment, then follow the link at the bottom for the details on deployment on Windows.
    <=== The Great Pumpkin says ===>
    Please use CODE tags when posting source code so it is more readable. Click "Go Advanced" and then the "#" icon to insert the tags. Paste your code between them.

Similar Threads

  1. Bad design decision in Designer
    By gkhrapunovich in forum Qt Tools
    Replies: 1
    Last Post: 14th February 2011, 18:01
  2. Replies: 2
    Last Post: 7th September 2009, 21:13
  3. Need some advice for design decision
    By BeS in forum Qt Programming
    Replies: 2
    Last Post: 28th March 2006, 23:06

Tags for this Thread

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.