I want to test it in Linux now. And in the Linux version of the library, there are two files, 'dislin-9.0.a' and 'dislin-9.0.so' - which library file am I supposed to link to? And how do link to a single file, from the command line?
AFAIK (and I don't know that much.. Please flame me if I'm wrong) .a = static library - inserted into your binary .so = shared lib - called by your binary
for linking i think gcc has a switch. the command line help should do
Gishu
Hi,
the library, there are two files, 'dislin-9.0.a'
Static library, use:
-L. -l<name>
. is for current directory. Usually, static library names are like libmath.a, so you would use like:
-L/path/to/dir/where/libmath.a/is -lmath
'dislin-9.0.so' - which library file am I supposed
Shared library. Check this:
http://www.faqs.org/docs/Linux-HOWTO/Program-Library-HOWTO.html
SK
-- Shakthi Kannan, MS Software Engineer, Specsoft (Hexaware Technologies) [E]: shakthimaan@yahoo.com [M]: (91) 98407-87007 [W]: http://www.shakthimaan.com [L]: Chennai, India
__________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com
Thanks to both of you, Mr.Pillai and Mr. Kannan. But now, it seems that *another* lib, libXm.so.3, is wanted. Dislin is proving tougher to use in Linux than in Mingw.
I'm now in the hunt for an equivalent library, ie. one providing high level plotting functions.
Hi Rohit,
--- rohit bhute rvbhute@gmail.com wrote:
seems that *another* lib, libXm.so.3, is wanted. Dislin is proving tougher to use in Linux than in Mingw.
Those are your openmotif libraries. Some GUI software use motif, because they are widely used on *nixes. By default, I think GNU/Linux distros don't install motif packages. Just install openmotif.
Usually, you would use your distro package manager to install software, which takes care of all dependencies. Since, you are doing it manually, you are hitting some road blocks :)
I'm now in the hunt for an equivalent library, ie. one providing high level plotting functions.
Scilab or GNUplot or R-project, perhaps?
SK
-- Shakthi Kannan, MS Software Engineer, Specsoft (Hexaware Technologies) [E]: shakthimaan@yahoo.com [M]: (91) 98407-87007 [W]: http://www.shakthimaan.com [L]: Chennai, India
__________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com
Shakthi Kannan wrote:
Usually, you would use your distro package manager to install software, which takes care of all dependencies. Since, you are doing it manually, you are hitting some road blocks :)
I'm planning to use checkinstall to create deb files. How do I bring those into Synaptic's purview?
Scilab or GNUplot or R-project, perhaps?
I needed to call the graphic routines from the C code. I found libplot http://www.gnu.org/software/plotutils/ - will try it out later.