Software :: Link Gfortran Compiled Code With Lapack And Arpack Libraries?
Jun 27, 2009
In mandriva 2008 platform I have installed gcc-g77, liblapack, liblapack-devel, libblas, libblas-devel, arpack, arpack-devel and arpack-static packages. When I link *.f code and these libraries, using g77 compiler with -llapack -lblas -larpack options, everything work. Then when I replaced g77 by gfortran compiler, to be able to work with double precision complex arithmetic, I have got a number of undefined references errors:
[code].....
It looks as if I need to install f95 lapack and arpack libraries. Does anybody know if such rpm packages exist? I cannot find them in the net. If they exist, where is it possible to download them?
View 1 Replies
ADVERTISEMENT
Sep 6, 2010
I'm trying to link the MySQL libraries to some C code, the LambdaMOO server to be exact. I'm getting the following error:
gcc -g -O -L/usr/lib/mysql -lmysqld -I/usr/include/mysql ast.o code_gen.o db_lo
ad.o db_flush.o db_objects.o db_properties.o db_verbs.o decompile.o disassemble.
o eval_env.o eval_vm.o exceptions.o execute.o extensions.o functions.o keywords.
[code].....
You can see the link commands I'm using, and the lib and include path are both valid. I tried replacing -lmysqld with -lmysqlclient but this did not help. I'm using Debian and MySQL, libmysqld-dev and libmysqlclient-dev are all installed.
View 1 Replies
View Related
Jan 26, 2010
I've recently upgraded from 8.04 to 9.10 and in the process, I've lost access to gfortran. I'm using the gfortran that came with Karmic, but when I execute the make file I get this:
Code:
ld GetNextPerigee.o -o GetNextPerigee
ld: warning: cannot find entry symbol _start; defaulting to 0000000008048094
GetNextPerigee.o: In function `MAIN__':
GetNextPerigee.f90:(.text+0x26): undefined reference to `_gfortran_set_options'
GetNextPerigee.f90:(.text+0x2b): undefined reference to `_gfortran_iargc'
[Code]....
View 1 Replies
View Related
Nov 17, 2009
I have legacy fortran 77 code that used to compile seamlessly using g77 on an old machine. I've tried to recompile it on a new machine (old one is dead) using the original makefile, but the linker fails under g77, while there are persisting syntax errors using gfortran. I have two source files readmixed.f and subroutines.f. Under g77 the object files are produced using
Quote:
$ f77 -c readmixed.f -o readmixed.o
$ f77 -c subroutines.f -o subroutines.o
but the linking fails with
Quote:
$ f77 readmixed.o subroutines.o -o readmixed
subroutines.o(.text+0x0): In function `norm1_':
: multiple definition of `norm1_'
readmixed.o(.text+0x3987): first defined here
[code].....
View 2 Replies
View Related
Sep 10, 2010
I just set up my Debian Squeeze (previously I was an Ubuntu/Kubuntu user) with KDE and Catalyst 10.8 to run my HD5070 graphics card. I've read alot on various forums of all the 5xxx users like me unable to properly setup the system and others who say thier video watching, wine game playing and composition are working fine. The problem is tearing while playing video or manipulating windows within the DE. I have read ALOT about this subject as it is obviously very important to me. I've read alot 60+ page threads on phoronics full of names like xv and libva and about using mplayer with gl so on and so forth. Problem is, I can't find a wiki to explain how they mesh together. My questions are:
1. Are certain libraries compiled with acceleration support?
2. If so, why are other libraries not compiled with acceleration support?
3. I get a feeling the libraries these guys are using are different ffmpeg and stuff that those in the repos. Are they?
4. If so, where do you get them?
In short, how does one get compositing and watch a movie tear free (the tearing occurs with or without compositing)? No amount of xorg.conf playing fixes it and the driver is properly installed with direct rendering.
View 2 Replies
View Related
Jan 12, 2010
I am running Ubuntu 9.10. If I compile a 'hello world' C file using the terminal, something like:
gcc hello.c -o hello
the compile seems to work fine, and the executable file 'hello' appears in the directory.
However, when I try to run 'hello' from the terminal, I get something like the following:
No command 'hello' found, did you mean: .......
If I run dir, though, I can see 'hello' is there. I also can't run code I compiled when I was running 9.04. The OS again can't seem to find the executable file.
Everything worked fine with version 9.04. I could compile and run without any problems. Is there some setting I have to change to allow the OS to run my code?
View 3 Replies
View Related
Jun 18, 2010
I am running fedora 12. I had could nor locate the Tcl/Tk on the system, so I had to download, compile and intstall the raw the raw tar balls. That is now causing some problems and I want to revert to the Fedora Tcl/Tk and reinstall it using yum as the self compiled code may not be well integrated with fedora. The make file gives no room for an un-install. I appreciate any ideas on how to go about the un-installation. Secondly the fedora system is running gnome, how may I switch to KDE instead?
View 13 Replies
View Related
Jun 27, 2010
I am interested in using fortran and an external library called matio used to save arrays to matlab .mat files. I have installed the matio and matio-dev packages from synaptics but i cannot compile a code receiving an error Code: christos@christos-laptop:~/Desktop$ gfortran -o test test.f90 -lmatio -lz test.f90:2.13: USE MATIO 1
Fatal Error: Can't open module file 'matio.mod' for reading at (1): No such file or directory How can i load a module in order to use it in fortran through the GCC compiler?
View 1 Replies
View Related
Jul 11, 2011
I have installed two softwares manually, from the source code downloaded from their official websites: Stellarium, and the Linux Kernel. The version of these is not the same as the one found in the official repos. My question is: does aptitude have knowledge of the existance of these softwares? Can it do any damage to them, in case, for example, I run automatic aptitude tasks, such as autoclean and dist-upgrade?
View 2 Replies
View Related
Feb 7, 2010
I'm trying to run my compiled code and it's giving me this:
bash: ./main: Permission denied
View 6 Replies
View Related
May 18, 2011
I've been trying to use the library boost/thread.hpp but I cant get it to link. Every time I try it looks like this:
Code:
tyler@TjLaptop01:~/Desktop$ g++ thing.CPP -o Desktop -lboost_thread
/usr/bin/ld: cannot find -lboost_thread
collect2: ld returned 1 exit status
View 2 Replies
View Related
Oct 15, 2010
I am stuck with a problem to link static libraries with gcc. There is no problem with source files since I am able to compile in a machine where the static library is installed. I am compiling with the following: Code: :~/Emotion/pjproject-1.0.3/third_party 157% gcc -Wall -I/portaudio/include -o rec patest_record.c -L./lib -lportaudio-x86_64-unknown-linux-gnu
[Code]....
View 5 Replies
View Related
Sep 4, 2010
i have a helloworld.c program that I want to compile and link. i managed to compile it and link it but when i run it using:
Hello
at commant prompt it returns with error about package having a Hello and Hello_Debhelper and I use sudo.....?
View 5 Replies
View Related
Mar 25, 2011
When performing rpm -Uvh, my rpm is not able to link the shared library. My rpm use shared libraries which are created by my software. when i do rpm -ivh everything is working fine My rpm creates the softlinks to the shared libraries. Now when i install the rpm using -Uvh switch which upgrade..the shared libraries are not loading.
View 1 Replies
View Related
Feb 16, 2009
I'm trying to compile libetpan-0.57 on RedHat Enterprise Linux 5.2 64-bit and it is refusing to link against the 64 bit system libraries. I've tried everything I can think of. I've tried to hack libtool, run the command make was trying to run manually and changing the library search paths but nothing works. When I run the command make tried to run manually and change -L/usr/lib to -L/usr/lib64 most of the "skipping incompatible" library messages disappear except for "/usr/lib/libexpat.so: could not read symbols: File in wrong format." Below is the output when I run make code...
View 4 Replies
View Related
Jun 29, 2010
I am having some trouble when I try to link my custom libraries to target executables. There are two libraries
liba
libb
and an executable exec based on main.o The library libb has some reference to liba. Now if I put the libraries in same directories, I can compile the code as g++ -o exec main.o liba.a libb.a But, if I put the libraries in different directories, say d1 and d2, and use the command as g++ -o exec main.o d1/liba.a d2/libb.a I get an error as undefined reference to some function in liba. I am not sure if I am missing some thing in linking process. Also, if libb doesnot refer any functions in liba, there is no error in either of the case.
View 1 Replies
View Related
May 19, 2011
Basically, I'm trying to compile program A, which depends on LibA and LibB. LibA would not build with my version of G++ 4.4.3 due to a bug, so I've compiled the latest G++ 4.5 (installed in /opt directory) and built that library successfully (also installed in /opt).
I have LibB on my system already, but it was built with the 4.4.3 version. When compiling my final program, am I going to have issues because the .so files were built with different versions of gcc/g++? Or should I just rebuild a special version of LibB with the later version of the compiler just for that program? I can proceed and just see what happens, but I'm a little confused about how things work in a situation like this.
View 2 Replies
View Related
Jul 1, 2010
i am trying to link a code in C++ with tinyxmldll library:
Code:
master out # ls -la
total 1388
drwx------ 2 root root 4096 May 10 14:02 .
drwx------ 6 root root 4096 Apr 5 08:35 ..
[code].....
When i link, i get 'undefined reference' error:
Code:
master hneat # make nt
g++ -g -DTIXML_USE_STL -DHCUBE_NOGUI -fPIC -I./hneat -L./hneat -I/home/niko/hyperneat3/HyperNEAT_v3_0/JGTL/include/ -I/home/niko/hyperneat3/HyperNEAT_v3_0/tinyxmldll/include/ -I./Experiments -I../ -I./ -L/home/niko/hyperneat3/HyperNEAT_v3_0/tinyxmldll/out/ -L/usr
[code]....
The problem is, the symbols contain weird characters. How do I tell g++ that it should ignore these characters and link the functions correctly?
View 4 Replies
View Related
Aug 27, 2010
Can anyone please let me know of a link where I can find the source code for Linux pthread library?
View 2 Replies
View Related
Mar 16, 2010
I am very curious about updated graphics in GRUB2. So I want to compile and load grub2. Where can I get the grub2 source code. While browsing I got two links [/COLOR]
[URL] [URL]
First one has upto 1.98. Second link is not working. Can someone point the link where GRUB2 is available.
View 2 Replies
View Related
Aug 23, 2010
I am trying to write suitable .pro file for my application. I need real-time library. Have you some ideas how to do that? I just need the line for linking with real-time library...
View 2 Replies
View Related
Mar 26, 2010
I am using CentOS5 and install lapack library with yum. But when I try to compile a simple program it returns
So how to link lapack library into my program so the compilation goes without errors?
View 3 Replies
View Related
Jun 8, 2010
How to install Blas and Lapack
View 4 Replies
View Related
Apr 20, 2009
I'm trying to compile a program on CentOS 5.2. It's giving the following error. Does anyone have a clue what it means?
/net/hulk/home4/tedhyu/openmpi/openmpi-1.1.1/install/bin/mpif77 -o quest_ompi.x lcaomain_tp.o utl_mpi.o lcaosubs_tp.o lcaosubs.o /project/source/seqquest/libs_32/scalapack-1.8.0/libscalapack.a /project/source/seqquest/libs_32/BLACS/LIB/blacsCinit_MPI-LINUX-1.a /project/source/seqquest/libs_32/BLACS
[code]....
View 5 Replies
View Related
Dec 6, 2010
How to run a program containing lapack subroutines using ifort compiler?
View 1 Replies
View Related
Jun 26, 2011
In the following code, I am trying to define a matrix in CCS (which is equivalent to CSR for a symmetric matrix, right ?) in ARPACK++.
I have installed and patched ARPACK++. (The matrix is not sparse, but still it should not give an error)
[code]...
Why is this so ? I have checked the values of ia and ja by running intel MKl on the matrix to find the CSR (again, CSR=CCS for symmetric matrix, right ?--I am asking this because ARPACK++ uses CCS, not CSR), and the values are the same. Is this some problem of 0 and 1 indexing ? Does ARPACK++ use 1 indexing?
View 1 Replies
View Related
May 11, 2011
Why many Linux distros are trying to use always the latest versions of the libraries and don't save the old libraries for compatibility? I mean, I can see libtiff for example, i can found a libtiff.so.5 on my /usr/lib, but doesn't store a libtiff.so.4 or 3 just for binary applications or games. For this example, I need libtiff.so.4 for uplink.
That should happen too on the old version of sims for linux, some ID games or others.What's wrong with storing old libraries? PD: Yay, my first post on 3 years!
View 6 Replies
View Related
May 6, 2010
Is there any way to use a dynamic libraries as a static libraries instead when compiling, so that my resulting executable won't have them as dependencies?
View 3 Replies
View Related
Jan 18, 2011
Problem to install any release of gfortran on Red Hat Enterprise Linux Client release 5.6 (Tikanga) Tried searching on the web - no result. Tried "yum install libgfortran" - no result. Tried Installing gcc-gfortran from Fedora's rpm. - got paradoxes like:
[Code]...
View 6 Replies
View Related
Dec 1, 2010
I recently installed gfortran 4.5 and it's documentation on Kubuntu 10.10; however I can't seem to run the application. The application is located in root/usr/bin/gfortran 4.5. I was using the desk manager. The application menu in Kubuntu doesn't show gfortran as an application. how do I run gfortran 4.5, from the command window? Can I run gfortran using any of the Kubuntru desktop menus? Are there any procedures (commands etc), that I can use to run gfortran? Is there any documentation (Kubuntu, GNU etc),
View 4 Replies
View Related