Results 1 to 3 of 3

Thread: Statically Linking the IMSL C Library on Windows

  1. #1
    Senior Member ed's Avatar
    Join Date
    Aug 2005
    Posts
    312

    Statically Linking the IMSL C Library on Windows

    To setup a sample project using the IMSL C Numerical Library static
    libraries, follow the steps outlined below. These steps are based on
    the IMSL C Numerical Library version 7.0.1 for Microsoft Visual
    Studio 2010.

    1) Start the Microsoft Visual Studio 2010 Developer Environment

    2) If you have not already defined a Solution Workspace for your
    application, you must do so before proceeding. Close all Solutions
    and choose File ==> New ==> Project. Under the language Visual C++,
    select Win32. Under Templates, choose "Win32 Console Project" as
    the project type. Fill in the name of the project and select the desired
    location at the bottom of the Dialog box and click OK. In the Win32
    Application Wizard select "Application Settings" and choose the option
    "Empty Project" then click Finish.

    3) In the main menu, select Project ==> Add Existing Item... and
    browse to the file:

    <VNI_DIR>\imsl\cnl701\<ENV>\examples\validate\cmat h.c

    and add it to the project.

    4) Click on Project ==> Properties ==> Configuration Properties ==>
    C/C++ ==> General and add the directory:

    <VNI_DIR>\imsl\cnl701\<ENV>\include

    to the "Additional Include Directories" list and then click OK.

    5) Click on Project ==> Properties ==> Configuration Properties ==>
    C/C++ ==> Preprocessor:

    Select <Edit...> from the pulldown and add

    IMSL_STATIC

    Click OK and then Apply

    6) Under Linker ==> General, add the directory:

    <VNI_DIR>\imsl\cnl701\<ENV>\lib

    to the "Additional Library Directories" list and then click Apply

    7) Under Linker ==> Input , select Additional Dependencies

    Select <Edit...> from the pulldown and add

    imslcmath_imsl.lib
    imslcstat_imsl.lib
    lmgr_md.lib
    libcrvs_md.lib
    libsb_md.lib
    libFNPload.lib
    netapi32.lib
    advapi32.lib
    comctl32.lib
    wsock32.lib
    oldnames.lib


    Click OK and then Apply

    8) Under Linker ==> Input, select Ignore Specific Default Libraries
    and add:

    libcmt.lib

    Click OK

    9) You should be able to build the Solution and run the program.


    The first 90% of the code accounts for the first 90% of the development time. The remaining 10% of the code accounts for the other 90% of the development time.

  2. #2
    Junior Member
    Join Date
    Mar 2011
    Posts
    7
    Thanks for manual!

    But what I should change in order to my program work at every system without installing IMSL libs?

  3. #3
    Junior Member
    Join Date
    Feb 2009
    Location
    Houston, TX
    Posts
    29
    Statically linking the libraries includes the libs in the executable. However, you may need a run-time license.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •