473,395 Members | 2,423 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

Using IMSL C Libraries

Hi,

I wanted to solve some linear programming problems and I was trying to
use IMSL C libraries. But I couldn't get how to use it. I don't know
where to write the codes and how to execute them.

Do I need to install some other softwares for using it?

Thank you,
Amit

Feb 10 '07 #1
3 4125
"am***********@gmail.com" wrote:
>
I wanted to solve some linear programming problems and I was
trying to use IMSL C libraries. But I couldn't get how to use it.
I downloaded and installed it but I couldn't figure out where to
write the codes and how to execute them.

Do I need to install some other softwares for using it.
Off topic on c.l.c. Follow-ups set.

--
<http://www.cs.auckland.ac.nz/~pgut001/pubs/vista_cost.txt>
<http://www.securityfocus.com/columnists/423>

"A man who is right every time is not likely to do very much."
-- Francis Crick, co-discover of DNA
"There is nothing more amazing than stupidity in action."
-- Thomas Matthews

--
<http://www.cs.auckland.ac.nz/~pgut001/pubs/vista_cost.txt>
<http://www.securityfocus.com/columnists/423>

"A man who is right every time is not likely to do very much."
-- Francis Crick, co-discover of DNA
"There is nothing more amazing than stupidity in action."
-- Thomas Matthews
Feb 10 '07 #2

<am***********@gmail.comwrote in message
>
I wanted to solve some linear programming problems and I was trying to
use IMSL C libraries. But I couldn't get how to use it. I don't know
where to write the codes and how to execute them.

Do I need to install some other softwares for using it?
To use a third-party library you need a C compiler and either a version of
that library compatible with your cvompiler you are using, or source code to
the librasry written in portable ANSI C.
Though there is nothing difficult conceptually, in practise it is quite
difficult to set up a compiler to link, and you might want to ask for
technical support.

Basically the compiler has paths it searches for headers (.h files) and
these need to be set so that the headers that come with your library are on
the path. Then it has paths it searches for links. Most compilers do not,
however, link everything on their path by default. Usually you need to
invoke the compiler explicitly with a link flag to link your library.

Once you have done that, it is simply

#include <mylibrary.h>

int main(void)
{
library_function();
return 0;
}

If the library comes in source code, you have to compile it to a library
file. This only needs doing once and again uses special compiler switches.

Then you have to use the functions correctly, of course. They should be
documented.
Feb 10 '07 #3
am***********@gmail.com wrote:
Hi,

I wanted to solve some linear programming problems and I was trying to
use IMSL C libraries. But I couldn't get how to use it. I don't know
where to write the codes and how to execute them.

Do I need to install some other softwares for using it?

Thank you,
Amit
A prerequisite to using the IMSL libraries is an understanding of what
object code libraries are and how to use them on the computer/OS that
you are on.

For example, if you have MS-C (any version will do), and IMSL CNL-5.5,
open a command window, set the environmental variables for the C
compiler (by running VCVARS.BAT), set the environmental variables for
CNL (by running CNLENV.BAT), and check that LM_LICENSE_FILE points to a
valid license file.

To compile the quadrature example on p.259 of the IMSL manual
Cmath_V1.pdf, put the code into a file, say qua.c, and:

s:\cimslcl qua.c %LINK_CNL%
Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 14.00.50727.762
for 80x86
Copyright (C) Microsoft Corporation. All rights reserved.

qua.c
Microsoft (R) Incremental Linker Version 8.00.50727.762
Copyright (C) Microsoft Corporation. All rights reserved.

/out:qua.exe
qua.obj
cmath.lib
cstat.lib
kernel32.lib
user32.lib
netapi32.lib
advapi32.lib
gdi32.lib
comdlg32.lib
comctl32.lib

S:\cimsl>qua
integral = -0.128
exact = -0.128

S:\cimsl>

-- mecej4
Feb 12 '07 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Shalini | last post by:
Hi , I am trying to call routines form IMSL library form VisualC++. It compiles and builds everything,but when I try to run it I get an error cstat.dll not found. What could be wrong? Thanks...
7
by: sbobrows | last post by:
{Whilst I think much of this is OT for this newsgroup, I think the issue of understanding diagnostics just about gets under the door. -mod} Hi, I'm a C++ newbie trying to use the Boost regex...
3
by: rjaw | last post by:
Hi there, using the udb-type2-driver on z/OS DB version 7, we have a problem getting the connection to the database. The small program we use looks like this: ...
4
by: Anthony Gallagher | last post by:
I have a bunch of libraries compiled using VC++ 6.0, and I am trying to recompile one of our projects using VC++ .NET. I get all kind of linker errors (specially in STL calls). How do I get rid of...
2
by: Good Man | last post by:
hey there i've been buiding some web apps, and using my own scripting for coding things like AJAX, XML extraction, etc. i finally took a look on the web at js libraries, and boy are there a...
2
by: amitsoni.1984 | last post by:
Hi, I wanted to solve some linear programming problems and I was trying to use IMSL C libraries. But I couldn't get how to use it. I downloaded and installed it but I couldn't figure out where...
6
by: =?Utf-8?B?WW9naSBXYXRjaGVy?= | last post by:
Hello, I am using Visual Studio-2003. I created a project to build my library. Since I am using third party libraries as well, I have specified those additional library dependencies in project...
3
by: Bala | last post by:
Hello, I am trying to create a shared library on solaris. The inputs to this library is a source file and then 2 static libraries. I need to call code within the shared library in another...
83
by: liketofindoutwhy | last post by:
I am learning more and more Prototype and Script.aculo.us and got the Bungee book... and wonder if I should get some books on jQuery (jQuery in Action, and Learning jQuery) and start learning about...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.