lapackpp-devel Mailing List for Lapack++
Status: Beta
Brought to you by:
cstim
You can subscribe to this list here.
2004 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
(19) |
Sep
(11) |
Oct
|
Nov
(4) |
Dec
(15) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2005 |
Jan
(2) |
Feb
(4) |
Mar
(32) |
Apr
(18) |
May
(3) |
Jun
|
Jul
(1) |
Aug
(4) |
Sep
(13) |
Oct
(5) |
Nov
|
Dec
(1) |
2006 |
Jan
|
Feb
(6) |
Mar
(2) |
Apr
(6) |
May
(18) |
Jun
(15) |
Jul
(17) |
Aug
(45) |
Sep
(3) |
Oct
(4) |
Nov
(26) |
Dec
(4) |
2007 |
Jan
(11) |
Feb
(14) |
Mar
(1) |
Apr
|
May
(4) |
Jun
|
Jul
|
Aug
(2) |
Sep
|
Oct
(1) |
Nov
(1) |
Dec
(2) |
2008 |
Jan
|
Feb
(2) |
Mar
|
Apr
(4) |
May
(1) |
Jun
(2) |
Jul
|
Aug
|
Sep
|
Oct
(1) |
Nov
|
Dec
|
2009 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
(3) |
Nov
(1) |
Dec
(1) |
2010 |
Jan
(2) |
Feb
(1) |
Mar
(3) |
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
(4) |
Oct
|
Nov
(7) |
Dec
|
2011 |
Jan
|
Feb
|
Mar
(3) |
Apr
|
May
(2) |
Jun
(2) |
Jul
(2) |
Aug
|
Sep
(1) |
Oct
|
Nov
(14) |
Dec
(1) |
2012 |
Jan
|
Feb
|
Mar
(3) |
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2013 |
Jan
|
Feb
|
Mar
|
Apr
(2) |
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2014 |
Jan
|
Feb
(2) |
Mar
(5) |
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
From: Dee <de...@de...> - 2014-03-26 17:31:35
|
Hi Sivahari, please see the manpage of zgesv for more info: http://linux.die.net/man/l/zgesv INFO (output) INTEGER = 0: successful exit < 0: if INFO = -i, the i-th argument had an illegal value > 0: if INFO = i, U(i,i) is exactly zero. The factorization has been completed, but the factor U is exactly singular, so the solution could not be computed. I think your equation is not solvable. Best regards Dee Am 25.03.2014 09:51, schrieb Sivahari Nandakumar: > The following error shown while calling funtion solve() to solve a linear > system of equations. > > what(): LaLULinearSolveIP(LaGenMatDouble &A, &X, &B)Internal error in > LAPACK: DGESV() Factor U was exactly singular > > How to resolve it? > > > > ------------------------------------------------------------------------------ > Learn Graph Databases - Download FREE O'Reilly Book > "Graph Databases" is the definitive new guide to graph databases and their > applications. Written by three acclaimed leaders in the field, > this first edition is now available. Download your free book today! > http://p.sf.net/sfu/13534_NeoTech > > > > _______________________________________________ > lapackpp-devel mailing list > lap...@li... > https://lists.sourceforge.net/lists/listinfo/lapackpp-devel > |
From: Sivahari N. <siv...@gm...> - 2014-03-25 08:51:41
|
The following error shown while calling funtion solve() to solve a linear system of equations. what(): LaLULinearSolveIP(LaGenMatDouble &A, &X, &B)Internal error in LAPACK: DGESV() Factor U was exactly singular How to resolve it? -- with warm regards Sivahari Nandakumar Appropriate Technology Promotion Society Eroor, Vyttila 09446582917 http://sivaharicec.blogspot.com -------------------------------------------------------- fighting for knowledge freedom |
From: Dee <de...@de...> - 2014-03-03 12:02:52
|
Hello Sivahari, not that I'm aware of. I have programmed it manually in my Ph.D. thesis with the help of lapackpp. That means I got my input parameters, created a Least-Square matrix, solved it and extract the values for my line/polynom/spline (the latter in my case). Best regards Dominik Am 03.03.2014 10:39, schrieb Sivahari Nandakumar: > hai Dominik, > > It worked well, thank you. Is there any class in lapackpp deals with curve > fitting? > > --Sivahari > > > > 2014-03-03 15:08 GMT+05:30 Sivahari Nandakumar <siv...@gm...>: > >> hai Dominik, >> >> It worked well, thank you. Is there any class in lapackpp deals with >> curve fitting? >> >> --Sivahari >> >> >> 2014-03-01 8:09 GMT+05:30 Sivahari Nandakumar <siv...@gm...>: >> >> Thank you Dee, I will try and ping back. >>> >>> --Sivahari >>> >>> >>> 2014-02-28 23:55 GMT+05:30 Dee <de...@de...>: >>> >>> Hi Sivahari, >>>> >>>> here's a small example I just have hacked: >>>> >>>> #include <iostream> >>>> #include <gmd.h> >>>> #include <laslv.h> >>>> >>>> int main() >>>> { >>>> // create left side >>>> LaGenMatDouble A(2,2); >>>> A(0,0)=1.0; >>>> A(0,1)=2.0; >>>> A(1,0)=0.0; >>>> A(1,1)=-1.0; >>>> >>>> // create right side >>>> LaGenMatDouble B(2,1); >>>> B(0,0)=0.0; >>>> B(1,0)=1.0; >>>> >>>> // Solve A*X = B >>>> LaGenMatDouble X(2,1); >>>> LaLinearSolve( A, X, B ); >>>> >>>> std::cout << A << " * " << std::endl >>>> << X << " = " << std::endl >>>> << B << std::endl; >>>> >>>> return 0; >>>> } >>>> >>>> I hope I understood your problem correctly, but I think you only need to >>>> create A(100,100) and fill in your values. >>>> >>>> Best regards >>>> Dominik >>>> >>>> >>>> Am 28.02.2014 09:45, schrieb Sivahari Nandakumar: >>>>> Hai all, >>>>> >>>>> I am new to lapackpp. I want to do a curve fitting module ad part of my >>>>> academic project. I want to solve a linear equation system having 100 >>>>> different linear equations each with 100 unknowns. Can any one provide >>>> some >>>>> sample code or documentation link for this. >>>>> >>>>> >>>>> >>>>> >>>> ------------------------------------------------------------------------------ >>>>> Flow-based real-time traffic analytics software. Cisco certified tool. >>>>> Monitor traffic, SLAs, QoS, Medianet, WAAS etc. with NetFlow Analyzer >>>>> Customize your own dashboards, set traffic alerts and generate reports. >>>>> Network behavioral analysis & security monitoring. All-in-one tool. >>>>> >>>> http://pubads.g.doubleclick.net/gampad/clk?id=126839071&iu=/4140/ostg.clktrk >>>>> >>>>> >>>>> >>>>> _______________________________________________ >>>>> lapackpp-devel mailing list >>>>> lap...@li... >>>>> https://lists.sourceforge.net/lists/listinfo/lapackpp-devel >>>>> >>>> >>>> >>> >>> >>> -- >>> with warm regards >>> Sivahari Nandakumar >>> Appropriate Technology Promotion Society >>> Eroor, Vyttila 09446582917 >>> http://sivaharicec.blogspot.com >>> -------------------------------------------------------- >>> fighting for knowledge freedom >>> >> >> >> >> -- >> with warm regards >> Sivahari Nandakumar >> Appropriate Technology Promotion Society >> Eroor, Vyttila 09446582917 >> http://sivaharicec.blogspot.com >> -------------------------------------------------------- >> fighting for knowledge freedom >> > > > |
From: Sivahari N. <siv...@gm...> - 2014-03-03 09:39:33
|
hai Dominik, It worked well, thank you. Is there any class in lapackpp deals with curve fitting? --Sivahari 2014-03-03 15:08 GMT+05:30 Sivahari Nandakumar <siv...@gm...>: > hai Dominik, > > It worked well, thank you. Is there any class in lapackpp deals with > curve fitting? > > --Sivahari > > > 2014-03-01 8:09 GMT+05:30 Sivahari Nandakumar <siv...@gm...>: > > Thank you Dee, I will try and ping back. >> >> --Sivahari >> >> >> 2014-02-28 23:55 GMT+05:30 Dee <de...@de...>: >> >> Hi Sivahari, >>> >>> here's a small example I just have hacked: >>> >>> #include <iostream> >>> #include <gmd.h> >>> #include <laslv.h> >>> >>> int main() >>> { >>> // create left side >>> LaGenMatDouble A(2,2); >>> A(0,0)=1.0; >>> A(0,1)=2.0; >>> A(1,0)=0.0; >>> A(1,1)=-1.0; >>> >>> // create right side >>> LaGenMatDouble B(2,1); >>> B(0,0)=0.0; >>> B(1,0)=1.0; >>> >>> // Solve A*X = B >>> LaGenMatDouble X(2,1); >>> LaLinearSolve( A, X, B ); >>> >>> std::cout << A << " * " << std::endl >>> << X << " = " << std::endl >>> << B << std::endl; >>> >>> return 0; >>> } >>> >>> I hope I understood your problem correctly, but I think you only need to >>> create A(100,100) and fill in your values. >>> >>> Best regards >>> Dominik >>> >>> >>> Am 28.02.2014 09:45, schrieb Sivahari Nandakumar: >>> > Hai all, >>> > >>> > I am new to lapackpp. I want to do a curve fitting module ad part of my >>> > academic project. I want to solve a linear equation system having 100 >>> > different linear equations each with 100 unknowns. Can any one provide >>> some >>> > sample code or documentation link for this. >>> > >>> > >>> > >>> > >>> ------------------------------------------------------------------------------ >>> > Flow-based real-time traffic analytics software. Cisco certified tool. >>> > Monitor traffic, SLAs, QoS, Medianet, WAAS etc. with NetFlow Analyzer >>> > Customize your own dashboards, set traffic alerts and generate reports. >>> > Network behavioral analysis & security monitoring. All-in-one tool. >>> > >>> http://pubads.g.doubleclick.net/gampad/clk?id=126839071&iu=/4140/ostg.clktrk >>> > >>> > >>> > >>> > _______________________________________________ >>> > lapackpp-devel mailing list >>> > lap...@li... >>> > https://lists.sourceforge.net/lists/listinfo/lapackpp-devel >>> > >>> >>> >> >> >> -- >> with warm regards >> Sivahari Nandakumar >> Appropriate Technology Promotion Society >> Eroor, Vyttila 09446582917 >> http://sivaharicec.blogspot.com >> -------------------------------------------------------- >> fighting for knowledge freedom >> > > > > -- > with warm regards > Sivahari Nandakumar > Appropriate Technology Promotion Society > Eroor, Vyttila 09446582917 > http://sivaharicec.blogspot.com > -------------------------------------------------------- > fighting for knowledge freedom > -- with warm regards Sivahari Nandakumar Appropriate Technology Promotion Society Eroor, Vyttila 09446582917 http://sivaharicec.blogspot.com -------------------------------------------------------- fighting for knowledge freedom |
From: Sivahari N. <siv...@gm...> - 2014-03-01 02:39:19
|
Thank you Dee, I will try and ping back. --Sivahari 2014-02-28 23:55 GMT+05:30 Dee <de...@de...>: > Hi Sivahari, > > here's a small example I just have hacked: > > #include <iostream> > #include <gmd.h> > #include <laslv.h> > > int main() > { > // create left side > LaGenMatDouble A(2,2); > A(0,0)=1.0; > A(0,1)=2.0; > A(1,0)=0.0; > A(1,1)=-1.0; > > // create right side > LaGenMatDouble B(2,1); > B(0,0)=0.0; > B(1,0)=1.0; > > // Solve A*X = B > LaGenMatDouble X(2,1); > LaLinearSolve( A, X, B ); > > std::cout << A << " * " << std::endl > << X << " = " << std::endl > << B << std::endl; > > return 0; > } > > I hope I understood your problem correctly, but I think you only need to > create A(100,100) and fill in your values. > > Best regards > Dominik > > > Am 28.02.2014 09:45, schrieb Sivahari Nandakumar: > > Hai all, > > > > I am new to lapackpp. I want to do a curve fitting module ad part of my > > academic project. I want to solve a linear equation system having 100 > > different linear equations each with 100 unknowns. Can any one provide > some > > sample code or documentation link for this. > > > > > > > > > ------------------------------------------------------------------------------ > > Flow-based real-time traffic analytics software. Cisco certified tool. > > Monitor traffic, SLAs, QoS, Medianet, WAAS etc. with NetFlow Analyzer > > Customize your own dashboards, set traffic alerts and generate reports. > > Network behavioral analysis & security monitoring. All-in-one tool. > > > http://pubads.g.doubleclick.net/gampad/clk?id=126839071&iu=/4140/ostg.clktrk > > > > > > > > _______________________________________________ > > lapackpp-devel mailing list > > lap...@li... > > https://lists.sourceforge.net/lists/listinfo/lapackpp-devel > > > > -- with warm regards Sivahari Nandakumar Appropriate Technology Promotion Society Eroor, Vyttila 09446582917 http://sivaharicec.blogspot.com -------------------------------------------------------- fighting for knowledge freedom |
From: Dee <de...@de...> - 2014-02-28 18:56:43
|
Hi Sivahari, here's a small example I just have hacked: #include <iostream> #include <gmd.h> #include <laslv.h> int main() { // create left side LaGenMatDouble A(2,2); A(0,0)=1.0; A(0,1)=2.0; A(1,0)=0.0; A(1,1)=-1.0; // create right side LaGenMatDouble B(2,1); B(0,0)=0.0; B(1,0)=1.0; // Solve A*X = B LaGenMatDouble X(2,1); LaLinearSolve( A, X, B ); std::cout << A << " * " << std::endl << X << " = " << std::endl << B << std::endl; return 0; } I hope I understood your problem correctly, but I think you only need to create A(100,100) and fill in your values. Best regards Dominik Am 28.02.2014 09:45, schrieb Sivahari Nandakumar: > Hai all, > > I am new to lapackpp. I want to do a curve fitting module ad part of my > academic project. I want to solve a linear equation system having 100 > different linear equations each with 100 unknowns. Can any one provide some > sample code or documentation link for this. > > > > ------------------------------------------------------------------------------ > Flow-based real-time traffic analytics software. Cisco certified tool. > Monitor traffic, SLAs, QoS, Medianet, WAAS etc. with NetFlow Analyzer > Customize your own dashboards, set traffic alerts and generate reports. > Network behavioral analysis & security monitoring. All-in-one tool. > http://pubads.g.doubleclick.net/gampad/clk?id=126839071&iu=/4140/ostg.clktrk > > > > _______________________________________________ > lapackpp-devel mailing list > lap...@li... > https://lists.sourceforge.net/lists/listinfo/lapackpp-devel > |
From: Sivahari N. <siv...@gm...> - 2014-02-28 08:45:16
|
Hai all, I am new to lapackpp. I want to do a curve fitting module ad part of my academic project. I want to solve a linear equation system having 100 different linear equations each with 100 unknowns. Can any one provide some sample code or documentation link for this. -- with warm regards Sivahari Nandakumar Appropriate Technology Promotion Society Eroor, Vyttila 09446582917 http://sivaharicec.blogspot.com -------------------------------------------------------- fighting for knowledge freedom |
From: Christian S. <chr...@cs...> - 2013-04-09 18:13:22
|
Am Dienstag, 9. April 2013, 16:45:11 schrieb Peter Smit: > Hi, > > A few years ago, one of my colleagues suggested adding a > Blas_Add_Mat_Mult function. (Thread > http://sourceforge.net/mailarchive/forum.php?thread_name=Pine.LNX.4.64.07052 > 31325560.612%40itl-pc030.hut.fi&forum_name=lapackpp-devel ) > > We have been using the function he suggested internally for multiple > years, with good results. Now we are planning to open source our tool > (a speech recognizer) it would be great if this function is included > in the base lapackpp, in order that we don't have to ship our own > version. > > Would you be willing to accept a patch that adds this method? If so, > I'll format a nice patch and send it to you. Yes, a patch would be welcomed. Also, I'd happily add you as a developer to the lapackpp project so that you can release a new version on your own. (What is your sourceforge username?) Christian |
From: Peter S. <pet...@aa...> - 2013-04-09 14:45:25
|
Hi, A few years ago, one of my colleagues suggested adding a Blas_Add_Mat_Mult function. (Thread http://sourceforge.net/mailarchive/forum.php?thread_name=Pine.LNX.4.64.0705231325560.612%40itl-pc030.hut.fi&forum_name=lapackpp-devel ) We have been using the function he suggested internally for multiple years, with good results. Now we are planning to open source our tool (a speech recognizer) it would be great if this function is included in the base lapackpp, in order that we don't have to ship our own version. Would you be willing to accept a patch that adds this method? If so, I'll format a nice patch and send it to you. Regards, Peter Smit Aalto University |
From: Guilhem B. <gui...@en...> - 2012-03-28 11:27:10
|
On Tue, 2012-03-27 at 22:21 +0200, Christian Stimming wrote: > Am Dienstag, 27. März 2012, 13:22:50 schrieb Guilhem BLES: > > Hello, > > > > First, thank you very much for your Lapackpp code lines. They are very > > helpful for me. > > > > But, at the present moment, I do not succeed to setup Lapackpp on > > Scientific Linux 64 bit. > > > > [root@xxx lapackpp-2.5.4]# make check > > Making check in include > > make[1]: Entering directory > > `/root/Documents/outilsInfo/lapackpp/lapackpp-2.5.4/include' > > make check-am > > make[2]: Entering directory > > `/root/Documents/outilsInfo/lapackpp/lapackpp-2.5.4/include' > > make[2]: Nothing to be done for `check-am'. > > make[2]: Leaving directory > > `/root/Documents/outilsInfo/lapackpp/lapackpp-2.5.4/include' > > make[1]: Leaving directory > > `/root/Documents/outilsInfo/lapackpp/lapackpp-2.5.4/include' > > Making check in blaspp > > make[1]: Entering directory > > `/root/Documents/outilsInfo/lapackpp/lapackpp-2.5.4/blaspp' > > Making check in src > > make[2]: Entering directory > > `/root/Documents/outilsInfo/lapackpp/lapackpp-2.5.4/blaspp/src' > > make[2]: Nothing to be done for `check'. > > make[2]: Leaving directory > > `/root/Documents/outilsInfo/lapackpp/lapackpp-2.5.4/blaspp/src' > > Making check in testing > > make[2]: Entering directory > > `/root/Documents/outilsInfo/lapackpp/lapackpp-2.5.4/blaspp/testing' > > make tblasd++ check_blas1pp \ > > blas++_test > > make[3]: Entering directory > > `/root/Documents/outilsInfo/lapackpp/lapackpp-2.5.4/blaspp/testing' > > /bin/sh ../../libtool --tag=CXX --mode=link g++ -g -O2 > > -Wall ../../src/liblapackpp.la -o tblasd++ tblasd++.o > > libtool: link: g++ -g -O2 -Wall -o .libs/tblasd++ tblasd > > ++.o ../../src/.libs/liblapackpp.so > > ../../src/.libs/liblapackpp.so: undefined reference to `zgesdd_' > > Your build process is missing the linker flags to link against the "lapack" > (without "pp") and "blas" libraries, such as "-llapack -lblas". However, > ./configure should have found those. Didn't you already get an error when > running "make"? If not, you're probably fine and can ignore this error. > > Regards, > > Christian I found a solution by means of symbolic links (ln -s) between directories "/usr/lib" where the lapack and blas libraries should be and "/usr/lib64" where they are: ln -s /usr/lib64/liblapack.so.3 /usr/lib/liblapack.so ln -s /usr/lib64/libblas.so.3 /usr/lib/libblas.so ln -s /usr/lib/liblapackpp.so.14 /usr/lib64/liblapackpp.so.14 and also by adding "-llapack -lblas" in my build command. Thank you four your answer. Guilhem. |
From: Christian S. <chr...@cs...> - 2012-03-27 21:17:46
|
Am Dienstag, 27. März 2012, 13:22:50 schrieb Guilhem BLES: > Hello, > > First, thank you very much for your Lapackpp code lines. They are very > helpful for me. > > But, at the present moment, I do not succeed to setup Lapackpp on > Scientific Linux 64 bit. > > [root@xxx lapackpp-2.5.4]# make check > Making check in include > make[1]: Entering directory > `/root/Documents/outilsInfo/lapackpp/lapackpp-2.5.4/include' > make check-am > make[2]: Entering directory > `/root/Documents/outilsInfo/lapackpp/lapackpp-2.5.4/include' > make[2]: Nothing to be done for `check-am'. > make[2]: Leaving directory > `/root/Documents/outilsInfo/lapackpp/lapackpp-2.5.4/include' > make[1]: Leaving directory > `/root/Documents/outilsInfo/lapackpp/lapackpp-2.5.4/include' > Making check in blaspp > make[1]: Entering directory > `/root/Documents/outilsInfo/lapackpp/lapackpp-2.5.4/blaspp' > Making check in src > make[2]: Entering directory > `/root/Documents/outilsInfo/lapackpp/lapackpp-2.5.4/blaspp/src' > make[2]: Nothing to be done for `check'. > make[2]: Leaving directory > `/root/Documents/outilsInfo/lapackpp/lapackpp-2.5.4/blaspp/src' > Making check in testing > make[2]: Entering directory > `/root/Documents/outilsInfo/lapackpp/lapackpp-2.5.4/blaspp/testing' > make tblasd++ check_blas1pp \ > blas++_test > make[3]: Entering directory > `/root/Documents/outilsInfo/lapackpp/lapackpp-2.5.4/blaspp/testing' > /bin/sh ../../libtool --tag=CXX --mode=link g++ -g -O2 > -Wall ../../src/liblapackpp.la -o tblasd++ tblasd++.o > libtool: link: g++ -g -O2 -Wall -o .libs/tblasd++ tblasd > ++.o ../../src/.libs/liblapackpp.so > ../../src/.libs/liblapackpp.so: undefined reference to `zgesdd_' Your build process is missing the linker flags to link against the "lapack" (without "pp") and "blas" libraries, such as "-llapack -lblas". However, ./configure should have found those. Didn't you already get an error when running "make"? If not, you're probably fine and can ignore this error. Regards, Christian |
From: Guilhem B. <gui...@en...> - 2012-03-27 11:23:04
|
Hello, First, thank you very much for your Lapackpp code lines. They are very helpful for me. But, at the present moment, I do not succeed to setup Lapackpp on Scientific Linux 64 bit. [root@xxx lapackpp-2.5.4]# make check Making check in include make[1]: Entering directory `/root/Documents/outilsInfo/lapackpp/lapackpp-2.5.4/include' make check-am make[2]: Entering directory `/root/Documents/outilsInfo/lapackpp/lapackpp-2.5.4/include' make[2]: Nothing to be done for `check-am'. make[2]: Leaving directory `/root/Documents/outilsInfo/lapackpp/lapackpp-2.5.4/include' make[1]: Leaving directory `/root/Documents/outilsInfo/lapackpp/lapackpp-2.5.4/include' Making check in blaspp make[1]: Entering directory `/root/Documents/outilsInfo/lapackpp/lapackpp-2.5.4/blaspp' Making check in src make[2]: Entering directory `/root/Documents/outilsInfo/lapackpp/lapackpp-2.5.4/blaspp/src' make[2]: Nothing to be done for `check'. make[2]: Leaving directory `/root/Documents/outilsInfo/lapackpp/lapackpp-2.5.4/blaspp/src' Making check in testing make[2]: Entering directory `/root/Documents/outilsInfo/lapackpp/lapackpp-2.5.4/blaspp/testing' make tblasd++ check_blas1pp \ blas++_test make[3]: Entering directory `/root/Documents/outilsInfo/lapackpp/lapackpp-2.5.4/blaspp/testing' /bin/sh ../../libtool --tag=CXX --mode=link g++ -g -O2 -Wall ../../src/liblapackpp.la -o tblasd++ tblasd++.o libtool: link: g++ -g -O2 -Wall -o .libs/tblasd++ tblasd ++.o ../../src/.libs/liblapackpp.so ../../src/.libs/liblapackpp.so: undefined reference to `zgesdd_' ../../src/.libs/liblapackpp.so: undefined reference to `zunmqr_' ../../src/.libs/liblapackpp.so: undefined reference to `dtrmm_' ../../src/.libs/liblapackpp.so: undefined reference to `lsame_' ../../src/.libs/liblapackpp.so: undefined reference to `dswap_' ../../src/.libs/liblapackpp.so: undefined reference to `dgemm_' ../../src/.libs/liblapackpp.so: undefined reference to `dposv_' ../../src/.libs/liblapackpp.so: undefined reference to `dger_' ../../src/.libs/liblapackpp.so: undefined reference to `dgels_' ../../src/.libs/liblapackpp.so: undefined reference to `zscal_' ../../src/.libs/liblapackpp.so: undefined reference to `daxpy_' ../../src/.libs/liblapackpp.so: undefined reference to `izamax_' ../../src/.libs/liblapackpp.so: undefined reference to `drotg_' ../../src/.libs/liblapackpp.so: undefined reference to `zgetrf_' ../../src/.libs/liblapackpp.so: undefined reference to `dsymm_' ../../src/.libs/liblapackpp.so: undefined reference to `dgesdd_' ../../src/.libs/liblapackpp.so: undefined reference to `dsysv_' ../../src/.libs/liblapackpp.so: undefined reference to `dnrm2_' ../../src/.libs/liblapackpp.so: undefined reference to `dtrsv_' ../../src/.libs/liblapackpp.so: undefined reference to `zdotu_' ../../src/.libs/liblapackpp.so: undefined reference to `dsyr_' ../../src/.libs/liblapackpp.so: undefined reference to `dgttrs_' ../../src/.libs/liblapackpp.so: undefined reference to `dsyev_' ../../src/.libs/liblapackpp.so: undefined reference to `zungqr_' ../../src/.libs/liblapackpp.so: undefined reference to `dcopy_' ../../src/.libs/liblapackpp.so: undefined reference to `dlarnv_' ../../src/.libs/liblapackpp.so: undefined reference to `dlaswp_' ../../src/.libs/liblapackpp.so: undefined reference to `zgemm_' ../../src/.libs/liblapackpp.so: undefined reference to `dgeev_' ../../src/.libs/liblapackpp.so: undefined reference to `dpbtrf_' ../../src/.libs/liblapackpp.so: undefined reference to `dscal_' ../../src/.libs/liblapackpp.so: undefined reference to `dgbmv_' ../../src/.libs/liblapackpp.so: undefined reference to `dgesv_' ../../src/.libs/liblapackpp.so: undefined reference to `ilaenv_' ../../src/.libs/liblapackpp.so: undefined reference to `zgemv_' ../../src/.libs/liblapackpp.so: undefined reference to `ddot_' ../../src/.libs/liblapackpp.so: undefined reference to `dgetrf_' ../../src/.libs/liblapackpp.so: undefined reference to `zdotc_' ../../src/.libs/liblapackpp.so: undefined reference to `dorgqr_' ../../src/.libs/liblapackpp.so: undefined reference to `dsyr2k_' ../../src/.libs/liblapackpp.so: undefined reference to `dsyrk_' ../../src/.libs/liblapackpp.so: undefined reference to `dasum_' ../../src/.libs/liblapackpp.so: undefined reference to `dspr2_' ../../src/.libs/liblapackpp.so: undefined reference to `dtrsm_' ../../src/.libs/liblapackpp.so: undefined reference to `idamax_' ../../src/.libs/liblapackpp.so: undefined reference to `zgeev_' ../../src/.libs/liblapackpp.so: undefined reference to `zaxpy_' ../../src/.libs/liblapackpp.so: undefined reference to `dtrmv_' ../../src/.libs/liblapackpp.so: undefined reference to `lsamen_' ../../src/.libs/liblapackpp.so: undefined reference to `zgerc_' ../../src/.libs/liblapackpp.so: undefined reference to `zswap_' ../../src/.libs/liblapackpp.so: undefined reference to `zgetri_' ../../src/.libs/liblapackpp.so: undefined reference to `dspmv_' ../../src/.libs/liblapackpp.so: undefined reference to `dgttrf_' ../../src/.libs/liblapackpp.so: undefined reference to `dormqr_' ../../src/.libs/liblapackpp.so: undefined reference to `dgeqrf_' ../../src/.libs/liblapackpp.so: undefined reference to `dgemv_' ../../src/.libs/liblapackpp.so: undefined reference to `dlamch_' ../../src/.libs/liblapackpp.so: undefined reference to `dsbmv_' ../../src/.libs/liblapackpp.so: undefined reference to `dznrm2_' ../../src/.libs/liblapackpp.so: undefined reference to `dsyr2_' ../../src/.libs/liblapackpp.so: undefined reference to `zgesv_' ../../src/.libs/liblapackpp.so: undefined reference to `dpbtrs_' ../../src/.libs/liblapackpp.so: undefined reference to `zgels_' ../../src/.libs/liblapackpp.so: undefined reference to `zcopy_' ../../src/.libs/liblapackpp.so: undefined reference to `dspr_' ../../src/.libs/liblapackpp.so: undefined reference to `zgeqrf_' ../../src/.libs/liblapackpp.so: undefined reference to `dsymv_' ../../src/.libs/liblapackpp.so: undefined reference to `dgetri_' ../../src/.libs/liblapackpp.so: undefined reference to `drot_' collect2: ld returned 1 exit status make[3]: *** [tblasd++] Error 1 make[3]: Leaving directory `/root/Documents/outilsInfo/lapackpp/lapackpp-2.5.4/blaspp/testing' make[2]: *** [check-am] Error 2 make[2]: Leaving directory `/root/Documents/outilsInfo/lapackpp/lapackpp-2.5.4/blaspp/testing' make[1]: *** [check-recursive] Error 1 make[1]: Leaving directory `/root/Documents/outilsInfo/lapackpp/lapackpp-2.5.4/blaspp' make: *** [check-recursive] Error 1 Do you understand what happened? Could you help me? Thank you very much, Guilhem Bles. -- Dr.Ing. Guilhem BLES -- Associate Professor in Mechanical Engineering LBMS Laboratory -- Brest Laboratory of Mechanics and Systems -- Laboratoire Brestois de Mécanique et des Systèmes. Ensta-Bretagne School (Brest, France) [ex-ENSIETA] E-mail____________ gui...@en... Phone________________ +33 298 348 913 Fax______________________ +33 298 348 730 Address__________ Ensta Bretagne/LBMS 2, rue François Verny 29806 Brest Cedex 9 FRANCE Web_________________ http://www.ensta-bretagne.fr/ http://www.lbms.fr |
From: chuanyu s. <sch...@gm...> - 2011-12-02 03:16:50
|
Dears, I have successfully installed "blas-devel-3.1.1", "lapack-devel-3.1.1" and "lapackpp-2.5.4". In the "/usr/lib64" folder there are "liblapack.a" and "libblas.a". If I write a C++ program, how do I using functions of the "lapackpp-2.5.4"? Can you give me an simple example for how to use these functions and how to compile? Thanks a lot! Best regards, Chuanyu |
From: Abraham Chang-T. L. <cha...@cm...> - 2011-11-17 15:59:48
|
Dear Dominik, The information you provided works on both machines. I deeply appreciate your kindly help. Thank you very much! Sincerely, changtsan On Wed, November 16, 2011 23:51, Dee wrote: Dear changtsan, The "not found" indicates that liblapackpp.so.14 is not in the default library path defined by LD_LIBRARY_PATH. If you call "ldd" with the PATH-variable set before it should find it. The same is true for the other machine. The folder /usr/local/packages/lapackpp is usually not in the path. You can see the path via $ echo $LD_LIBRARY_PATH If you want to start main.exe on the other machine you should do: $ LD_LIBRARY_PATH=/usr/local/packages/lapackpp:$LD_LIBRARY_PATH ./main.exe (I forgot the :$LD_LIBRARY_PATH above, even if it works for you.) The other solution is to extend LD_LIBRARY_PATH in the .bashrc, see http://www.warp1337.com/content/ubuntu-910-extend-set-configure-ldlibrarypath-path-howto With regards Dominik -------- Original-Nachricht -------- Betreff: Re: [Lapackpp-devel] question of including lapack++ in my makefile Von: Abraham Chang-Tsan Lu <cha...@cm...> An: lap...@li... Datum: 16.11.2011 22:28 > Dear Dominik, > > > I try what you indicate, it works on my machine! However, the following > shows that main.exe cannot find liblapackpp.so.14. > > [changtsl@cee-changtsl EIG]$ ldd main.exe > linux-vdso.so.1 => (0x00007fff2e7fd000) liblapackpp.so.14 => not found > libstdc++.so.6 => /usr/lib64/libstdc++.so.6 (0x000000375a400000) libm.so.6 > => /lib64/libm.so.6 (0x0000003753c00000) > libgcc_s.so.1 => /lib64/libgcc_s.so.1 (0x0000003759c00000) libc.so.6 => > /lib64/libc.so.6 (0x0000003753800000) > /lib64/ld-linux-x86-64.so.2 (0x0000003753400000) > > > But when listing the content of /lib, it is obvious that > "liblapackpp.so.14" exists. "liblapackpp.so.14" is actually a link to > "liblapackpp.so.14.2.0". > > > [changtsl@cee-changtsl EIG]$ ls /home/changtsl/lapackpp_lib/lib > liblapackpp.la liblapackpp.so.14 pkgconfig liblapackpp.so > liblapackpp.so.14.2.0 > > How come main.exe cannot find "liblapackpp.so.14"? > > > > I try the same thing on another machine where lapackpp is located in > > > /usr/local/packages/lapackpp > > > by > > $ g++ -c -I/usr/local/packages/lapackpp/include/lapackpp main.cpp > $ g++ -L/usr/local/packages/lapackpp/lib -llapackpp main.o -o main.exe > $ LD_LIBRARY_PATH=/usr/local/packages/lapackpp/lib ./main.exe > > > then it shows > > ./main.exe: error while loading shared libraries: libmkl_intel_ilp64.so: > cannot open shared object file: No such file or directory > > The libraries that main.exe can search are > > > linux-vdso.so.1 => (0x00007fff6f9ff000) liblapackpp.so.14 => not found > libstdc++.so.6 => /usr/X11R6/lib64/libstdc++.so.6 (0x00007ffa83942000) > libm.so.6 => /lib64/libm.so.6 (0x00007ffa836ec000) libgcc_s.so.1 => > /lib64/libgcc_s.so.1 (0x00007ffa834d5000) > libc.so.6 => /lib64/libc.so.6 (0x00007ffa83177000) > /lib64/ld-linux-x86-64.so.2 (0x00007ffa83c4d000) > > > I am wondering, on both machines, "liblapackpp.so.14" indeed exists in > the appropriate directories, but the "main.exe"s cannot find it out? I am > also wondering why the "LD_LIBRARY_PATH=" command works on my own machine > but doesn't work on the other machine? > > Thank you very much. > > > Sincerely, > changtsan > > > > > > > On Wed, November 16, 2011 15:47, Dee wrote: > Dear changtsan, > > > please do start the command from the command line itself: > > $ ./makefile > $ LD_LIBRARY_PATH=/home/changtsl/lapackpp_lib/lib ./main.exe > > > Usually you do not start a programm with a real makefile. (But of course > you do not have a real Makefile.) > > If this doesn't work, you could display what libraries are searched for > and where they are found: > > $ ldd main.exe > > > Further please list the content of the lib-folder: > > > $ ls /home/changtsl/lapackpp_lib/lib > > > > With regards > Dominik > > > > -------- Original-Nachricht -------- > Betreff: Re: [Lapackpp-devel] question of including lapack++ in my > makefile Von: Abraham Chang-Tsan Lu <cha...@cm...> > An: lap...@li... > Datum: 16.11.2011 21:42 > > >> Dear Dominik, >> >> >> >> Sorry for taking you so much time. >> My makefile now is >> >> >> >> # main.o : main.cpp >> g++ -c -I/home/changtsl/lapackpp_lib/include/lapackpp main.cpp # >> main.exe : main.o g++ -L/home/changtsl/lapackpp_lib/lib -llapackpp >> main.o -o main.exe >> >> >> date LD_LIBRARY_PATH=/home/changtsl/lapackpp_lib/lib ./main.exe echo >> finished /bin/echo -e "\a" date >> >> But the error is still the same: >> >> >> >> [changtsl@cee-changtsl EIG]$ ./makefile >> Wed Nov 16 15:35:56 EST 2011 >> ./main.exe: error while loading shared libraries: liblapackpp.so.14: >> cannot open shared object file: No such file or directory finished >> >> Thank you for your help and patience. >> >> >> >> Sincerely, >> changtsan >> >> >> On Wed, November 16, 2011 15:28, Dee wrote: >> Dear changtsan, >> >> >> >> okay, next try: >> >> LD_LIBRARY_PATH=/home/changtsl/lapackpp_lib/lib ./make.exe >> >> >> >> With regards >> Dominik >> >> >> >> -------- Original-Nachricht -------- >> Betreff: Re: [Lapackpp-devel] question of including lapack++ in my >> makefile Von: Abraham Chang-Tsan Lu <cha...@cm...> An: >> lap...@li... Datum: 16.11.2011 20:29 >> >> >> >>> Dear Dominik, >>> >>> >>> >>> >>> I really appreciate your help. I follow what you indicated, it shows >>> >>> >>> >>> >>> [changtsl@cee-changtsl EIG]$ ./makefile >>> g++: unrecognized option '-R/home/changtsl/lapackpp_lib/lib' >>> Wed Nov 16 13:24:07 EST 2011 >>> ./main.exe: error while loading shared libraries: liblapackpp.so.14: >>> cannot open shared object file: No such file or directory finished >>> >>> and >>> >>> [changtsl@cee-changtsl EIG]$ ./makefile >>> g++: unrecognized option '-R.' >>> Wed Nov 16 13:14:45 EST 2011 >>> ./main.exe: error while loading shared libraries: liblapackpp.so.14: >>> cannot open shared object file: No such file or directory finished >>> >>> It seems that my machine doesn't recognize the command -R. The OS on >>> my machine is RedHat linux. Thank you. >>> >>> Sincerely, >>> changtsan >>> >>> >>> >>> On Wed, November 16, 2011 12:50, Dee wrote: >>> Dear changtsan, >>> >>> >>> >>> >>> the path in the makefile (behind the -L) is not important for the >>> execution of the program. >>> >>> But because of the "exe" I thought you are using Windows. But as I >>> see now you use Linux or something like it. So you need to tell the >>> application where the library is located because Linux does not >>> search in the current directory as default (and you shouldn't change >>> it for security reasons). >>> >>> There are some ways to solve this problem. See >>> http://www.eyrie.org/~eagle/notes/rpath.html for example in using the >>> "-R" option when linking the binary (the line with the -L in it): >>> >>> >>> >>> >>> g++ -R/home/changtsl/lapackpp_lib/lib >>> -L/home/changtsl/lapackpp_lib/lib >>> -llapackpp main.o -o main.exe >>> >>> >>> >>> >>> But pay attention, that the main.exe will only work on your system >>> (or >>> at least on any system that has the library in this path or in the >>> global path defined by LD_LIBRARY_PATH). >>> >>> So you could also link the main.exe via >>> >>> >>> >>> >>> g++ -R. -L/home/changtsl/lapackpp_lib/lib -llapackpp main.o -o >>> main.exe >>> >>> >>> so the library will first be searched in the local directory. (You >>> need to copy the so-files in the same directory as the main.exe of >>> course.) >>> >>> With regards >>> Dominik >>> >>> >>> >>> >>> >>> -------- Original-Nachricht -------- >>> Betreff: Re: [Lapackpp-devel] question of including lapack++ in my >>> makefile Von: Abraham Chang-Tsan Lu <cha...@cm...> An: >>> lap...@li... Datum: 16.11.2011 18:34 >>> >>> >>> >>>> Dear Dominik, >>>> >>>> >>>> >>>> >>>> >>>> I copy the whole file folder "lapackpp_lib" to the directory where >>>> main.exe is, but the same error message is shown. Do I have to >>>> change the path of lapackpp_lib in the makefile? Thank you. >>>> >>>> >>>> Sincerely, >>>> changtsan >>>> >>>> >>>> >>>> On Wed, November 16, 2011 11:28, Dee wrote: >>>> Dear changtsan, >>>> >>>> >>>> >>>> >>>> >>>> You link lapackpp-Library dynamically to your main.exe. This means >>>> everybody who wants to start main.exe needs to have the lapackpp-Lib >>>> somewhere in his execution path. >>>> >>>> The easiest way tol solve this is to copy the library in the same >>>> directory as the exe. Then the programm should execute fine. >>>> >>>> With regards >>>> Dominik >>>> >>>> >>>> >>>> >>>> >>>> >>>> -------- Original-Nachricht -------- >>>> Betreff: Re: [Lapackpp-devel] question of including lapack++ in my >>>> makefile Von: Abraham Chang-Tsan Lu <cha...@cm...> An: >>>> lap...@li... Datum: 16.11.2011 17:25 >>>> >>>> >>>> >>>>> Hi Dominik, >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> Thank you very much. I try to follow your indication, so now the >>>>> content of my makefile now is >>>>> >>>>> g++ -c -I/home/changtsl/lapackpp_lib/include/lapackpp main.cpp >>>>> g++ -L/home/changtsl/lapackpp_lib/lib -llapackpp main.o -o >>>>> main.exe >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> I think the file "main.o" and "main.exe" are produced >>>>> successfully. But >>>>> when I execut "main.exe", the error message shows >>>>> >>>>> [changtsl@cee-changtsl EIG]$ ./main.exe >>>>> ./main.exe: error while loading shared libraries: >>>>> liblapackpp.so.14: >>>>> cannot open shared object file: No such file or directory >>>>> >>>>> What should I do then? Thank you very much. >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> Sincerely, >>>>> changtsan >>>>> >>>>> >>>>> >>>>> On Tue, November 15, 2011 16:04, Dee wrote: >>>>> Dear changtsan, >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> first: Please do not write directly to the responder but to the >>>>> mailing list so that everyone can read your further questions. >>>>> (Usually you >>>>> set the responder as CC, if you wish to.) >>>>> >>>>> Concerning your question: It's better to link the library when >>>>> building the exe: >>>>> >>>>> g++ -L/home/changtsl/lapackpp_lib/lib -llapackpp main.o -o >>>>> main.exe >>>>> >>>>> >>>>> So you should delete the second g++-line in your makefile and >>>>> change the third to the one above. >>>>> >>>>> With regards >>>>> Dominik >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> -------- Original-Nachricht -------- >>>>> Betreff: Re: [Lapackpp-devel] question of including lapack++ in my >>>>> makefile Von: Abraham Chang-Tsan Lu <cha...@cm...> An: >>>>> Dee >>>>> <de...@de...> >>>>> Datum: 14.11.2011 16:24 >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>>> Hi Dominik, >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> Thank you for your reply, and I am sorry to bother you again. I >>>>>> don't know much about makefile, so the questions I am going to >>>>>> ask below may be stupid. >>>>>> >>>>>> From the website you indicated, I see one line saying >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> gcc -L/usr/local/lib -llapackpp foo.o >>>>>> >>>>>> Does the "lib" here refers to the "lib" under /lapackpp_lib? >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> I have attached the updated makefile and error. >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> Thank you very much. >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> Sincerely, >>>>>> changtsan >>>>>> >>>>>> >>>>>> >>>>>> On Sat, November 12, 2011 02:18, Dee wrote: >>>>>> Hello, >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> you forgot to link the Lapack-library in your Makefile. Please >>>>>> see chapter "Library Usage" on http://lapackpp.sourceforge.net/ >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> With regards >>>>>> Dominik >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> -------- Original-Nachricht -------- >>>>>> Betreff: [Lapackpp-devel] question of including lapack++ in my >>>>>> makefile Von: Abraham Chang-Tsan Lu <cha...@cm...> An: >>>>>> lap...@li... Datum: 12.11.2011 00:18 >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>>> Dear Lapack++ Developer, >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> I have some trouble in including lapack++ in my makefile. >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> On my machine, Lapack++ is under the directory of >>>>>>> /home/changtsl/lapackpp-2.5.4 >>>>>>> and /home/changtsl/lapackpp_lib. >>>>>>> >>>>>>> >>>>>>> I have attached my code, makefile, and the error message >>>>>>> given in the terminal. The code is very short and only for >>>>>>> testing. Would >>>>>>> you please help me to solve the problem? Thank you very much. >>>>>>> >>>>>>> Sincerely, >>>>>>> changtsan >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> ------------------------------------------------------------- >>>>>>> -- >>>>>>> -- >>>>>>> -- >>>>>>> -- >>>>>>> -- >>>>>>> -- >>>>>>> ----- >>>>>>> RSA(R) Conference 2012 >>>>>>> Save $700 by Nov 18 >>>>>>> Register now >>>>>>> http://p.sf.net/sfu/rsa-sfdev2dev1 >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> _______________________________________________ >>>>>>> lapackpp-devel mailing list >>>>>>> lap...@li... >>>>>>> https://lists.sourceforge.net/lists/listinfo/lapackpp-devel >>>>>> >>>>>> >>>>>> >>>>>> >>>>> >>>>> >>>>> >>>>> >>>> >>>> >>>> >>>> >>> >>> >>> >>> >> >> >> >> > > > > -- Abraham Chang-Tsan Lu Civil and Environmental Engineering Carnegie Mellon University Pittsburgh, PA, 15213 |
From: Dee <de...@de...> - 2011-11-17 04:51:34
|
Dear changtsan, The "not found" indicates that liblapackpp.so.14 is not in the default library path defined by LD_LIBRARY_PATH. If you call "ldd" with the PATH-variable set before it should find it. The same is true for the other machine. The folder /usr/local/packages/lapackpp is usually not in the path. You can see the path via $ echo $LD_LIBRARY_PATH If you want to start main.exe on the other machine you should do: $ LD_LIBRARY_PATH=/usr/local/packages/lapackpp:$LD_LIBRARY_PATH ./main.exe (I forgot the :$LD_LIBRARY_PATH above, even if it works for you.) The other solution is to extend LD_LIBRARY_PATH in the .bashrc, see http://www.warp1337.com/content/ubuntu-910-extend-set-configure-ldlibrarypath-path-howto With regards Dominik -------- Original-Nachricht -------- Betreff: Re: [Lapackpp-devel] question of including lapack++ in my makefile Von: Abraham Chang-Tsan Lu <cha...@cm...> An: lap...@li... Datum: 16.11.2011 22:28 > Dear Dominik, > > I try what you indicate, it works on my machine! However, the following > shows that main.exe cannot find liblapackpp.so.14. > > [changtsl@cee-changtsl EIG]$ ldd main.exe > linux-vdso.so.1 => (0x00007fff2e7fd000) > liblapackpp.so.14 => not found > libstdc++.so.6 => /usr/lib64/libstdc++.so.6 (0x000000375a400000) > libm.so.6 => /lib64/libm.so.6 (0x0000003753c00000) > libgcc_s.so.1 => /lib64/libgcc_s.so.1 (0x0000003759c00000) > libc.so.6 => /lib64/libc.so.6 (0x0000003753800000) > /lib64/ld-linux-x86-64.so.2 (0x0000003753400000) > > But when listing the content of /lib, it is obvious that > "liblapackpp.so.14" exists. "liblapackpp.so.14" is actually a link to > "liblapackpp.so.14.2.0". > > [changtsl@cee-changtsl EIG]$ ls /home/changtsl/lapackpp_lib/lib > liblapackpp.la liblapackpp.so.14 pkgconfig > liblapackpp.so liblapackpp.so.14.2.0 > > How come main.exe cannot find "liblapackpp.so.14"? > > > I try the same thing on another machine where lapackpp is located in > > /usr/local/packages/lapackpp > > by > > $ g++ -c -I/usr/local/packages/lapackpp/include/lapackpp main.cpp > $ g++ -L/usr/local/packages/lapackpp/lib -llapackpp main.o -o main.exe > $ LD_LIBRARY_PATH=/usr/local/packages/lapackpp/lib ./main.exe > > then it shows > > ./main.exe: error while loading shared libraries: libmkl_intel_ilp64.so: > cannot open shared object file: No such file or directory > > The libraries that main.exe can search are > > linux-vdso.so.1 => (0x00007fff6f9ff000) > liblapackpp.so.14 => not found > libstdc++.so.6 => /usr/X11R6/lib64/libstdc++.so.6 (0x00007ffa83942000) > libm.so.6 => /lib64/libm.so.6 (0x00007ffa836ec000) > libgcc_s.so.1 => /lib64/libgcc_s.so.1 (0x00007ffa834d5000) > libc.so.6 => /lib64/libc.so.6 (0x00007ffa83177000) > /lib64/ld-linux-x86-64.so.2 (0x00007ffa83c4d000) > > I am wondering, on both machines, "liblapackpp.so.14" indeed exists in the > appropriate directories, but the "main.exe"s cannot find it out? > I am also wondering why the "LD_LIBRARY_PATH=" command works on my own > machine but doesn't work on the other machine? > > Thank you very much. > > Sincerely, > changtsan > > > > > > > On Wed, November 16, 2011 15:47, Dee wrote: > Dear changtsan, > > please do start the command from the command line itself: > > $ ./makefile > $ LD_LIBRARY_PATH=/home/changtsl/lapackpp_lib/lib ./main.exe > > Usually you do not start a programm with a real makefile. (But of course > you do not have a real Makefile.) > > If this doesn't work, you could display what libraries are searched for > and where they are found: > > $ ldd main.exe > > Further please list the content of the lib-folder: > > $ ls /home/changtsl/lapackpp_lib/lib > > > With regards > Dominik > > > -------- Original-Nachricht -------- > Betreff: Re: [Lapackpp-devel] question of including lapack++ in my makefile > Von: Abraham Chang-Tsan Lu <cha...@cm...> > An: lap...@li... > Datum: 16.11.2011 21:42 > >> Dear Dominik, >> >> >> Sorry for taking you so much time. >> My makefile now is >> >> >> # main.o : main.cpp >> g++ -c -I/home/changtsl/lapackpp_lib/include/lapackpp main.cpp # main.exe : >> main.o g++ -L/home/changtsl/lapackpp_lib/lib -llapackpp main.o -o main.exe >> >> >> date LD_LIBRARY_PATH=/home/changtsl/lapackpp_lib/lib ./main.exe >> echo finished /bin/echo -e "\a" >> date >> >> But the error is still the same: >> >> >> [changtsl@cee-changtsl EIG]$ ./makefile >> Wed Nov 16 15:35:56 EST 2011 >> ./main.exe: error while loading shared libraries: liblapackpp.so.14: >> cannot open shared object file: No such file or directory finished >> >> Thank you for your help and patience. >> >> >> Sincerely, >> changtsan >> >> >> On Wed, November 16, 2011 15:28, Dee wrote: >> Dear changtsan, >> >> >> okay, next try: >> >> LD_LIBRARY_PATH=/home/changtsl/lapackpp_lib/lib ./make.exe >> >> >> With regards >> Dominik >> >> >> -------- Original-Nachricht -------- >> Betreff: Re: [Lapackpp-devel] question of including lapack++ in my >> makefile Von: Abraham Chang-Tsan Lu <cha...@cm...> >> An: lap...@li... >> Datum: 16.11.2011 20:29 >> >> >>> Dear Dominik, >>> >>> >>> >>> I really appreciate your help. I follow what you indicated, it shows >>> >>> >>> >>> [changtsl@cee-changtsl EIG]$ ./makefile >>> g++: unrecognized option '-R/home/changtsl/lapackpp_lib/lib' >>> Wed Nov 16 13:24:07 EST 2011 >>> ./main.exe: error while loading shared libraries: liblapackpp.so.14: >>> cannot open shared object file: No such file or directory finished >>> >>> and >>> >>> [changtsl@cee-changtsl EIG]$ ./makefile >>> g++: unrecognized option '-R.' >>> Wed Nov 16 13:14:45 EST 2011 >>> ./main.exe: error while loading shared libraries: liblapackpp.so.14: >>> cannot open shared object file: No such file or directory finished >>> >>> It seems that my machine doesn't recognize the command -R. The OS on my >>> machine is RedHat linux. Thank you. >>> >>> Sincerely, >>> changtsan >>> >>> >>> >>> On Wed, November 16, 2011 12:50, Dee wrote: >>> Dear changtsan, >>> >>> >>> >>> the path in the makefile (behind the -L) is not important for the >>> execution of the program. >>> >>> But because of the "exe" I thought you are using Windows. But as I see >>> now you use Linux or something like it. So you need to tell the >>> application where the library is located because Linux does not search >>> in the current directory as default (and you shouldn't change it for >>> security reasons). >>> >>> There are some ways to solve this problem. See >>> http://www.eyrie.org/~eagle/notes/rpath.html for example in using the >>> "-R" option when linking the binary (the line with the -L in it): >>> >>> >>> >>> g++ -R/home/changtsl/lapackpp_lib/lib -L/home/changtsl/lapackpp_lib/lib >>> -llapackpp main.o -o main.exe >>> >>> >>> >>> But pay attention, that the main.exe will only work on your system (or >>> at least on any system that has the library in this path or in the >>> global path defined by LD_LIBRARY_PATH). >>> >>> So you could also link the main.exe via >>> >>> >>> >>> g++ -R. -L/home/changtsl/lapackpp_lib/lib -llapackpp main.o -o main.exe >>> >>> >>> so the library will first be searched in the local directory. (You need >>> to copy the so-files in the same directory as the main.exe of course.) >>> >>> With regards >>> Dominik >>> >>> >>> >>> >>> -------- Original-Nachricht -------- >>> Betreff: Re: [Lapackpp-devel] question of including lapack++ in my >>> makefile Von: Abraham Chang-Tsan Lu <cha...@cm...> An: >>> lap...@li... Datum: 16.11.2011 18:34 >>> >>> >>> >>>> Dear Dominik, >>>> >>>> >>>> >>>> >>>> I copy the whole file folder "lapackpp_lib" to the directory where >>>> main.exe is, but the same error message is shown. Do I have to change >>>> the path of lapackpp_lib in the makefile? Thank you. >>>> >>>> >>>> Sincerely, >>>> changtsan >>>> >>>> >>>> >>>> On Wed, November 16, 2011 11:28, Dee wrote: >>>> Dear changtsan, >>>> >>>> >>>> >>>> >>>> You link lapackpp-Library dynamically to your main.exe. This means >>>> everybody who wants to start main.exe needs to have the lapackpp-Lib >>>> somewhere in his execution path. >>>> >>>> The easiest way tol solve this is to copy the library in the same >>>> directory as the exe. Then the programm should execute fine. >>>> >>>> With regards >>>> Dominik >>>> >>>> >>>> >>>> >>>> >>>> -------- Original-Nachricht -------- >>>> Betreff: Re: [Lapackpp-devel] question of including lapack++ in my >>>> makefile Von: Abraham Chang-Tsan Lu <cha...@cm...> An: >>>> lap...@li... Datum: 16.11.2011 17:25 >>>> >>>> >>>> >>>>> Hi Dominik, >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> Thank you very much. I try to follow your indication, so now the >>>>> content of my makefile now is >>>>> >>>>> g++ -c -I/home/changtsl/lapackpp_lib/include/lapackpp main.cpp g++ >>>>> -L/home/changtsl/lapackpp_lib/lib -llapackpp main.o -o main.exe >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> I think the file "main.o" and "main.exe" are produced successfully. >>>>> But >>>>> when I execut "main.exe", the error message shows >>>>> >>>>> [changtsl@cee-changtsl EIG]$ ./main.exe >>>>> ./main.exe: error while loading shared libraries: liblapackpp.so.14: >>>>> cannot open shared object file: No such file or directory >>>>> >>>>> What should I do then? Thank you very much. >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> Sincerely, >>>>> changtsan >>>>> >>>>> >>>>> >>>>> On Tue, November 15, 2011 16:04, Dee wrote: >>>>> Dear changtsan, >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> first: Please do not write directly to the responder but to the >>>>> mailing list so that everyone can read your further questions. >>>>> (Usually you >>>>> set the responder as CC, if you wish to.) >>>>> >>>>> Concerning your question: It's better to link the library when >>>>> building the exe: >>>>> >>>>> g++ -L/home/changtsl/lapackpp_lib/lib -llapackpp main.o -o main.exe >>>>> >>>>> >>>>> So you should delete the second g++-line in your makefile and >>>>> change the third to the one above. >>>>> >>>>> With regards >>>>> Dominik >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> -------- Original-Nachricht -------- >>>>> Betreff: Re: [Lapackpp-devel] question of including lapack++ in my >>>>> makefile Von: Abraham Chang-Tsan Lu <cha...@cm...> An: Dee >>>>> <de...@de...> >>>>> Datum: 14.11.2011 16:24 >>>>> >>>>> >>>>> >>>>> >>>>> >>>>>> Hi Dominik, >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> Thank you for your reply, and I am sorry to bother you again. I >>>>>> don't know much about makefile, so the questions I am going to ask >>>>>> below may be stupid. >>>>>> >>>>>> From the website you indicated, I see one line saying >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> gcc -L/usr/local/lib -llapackpp foo.o >>>>>> >>>>>> Does the "lib" here refers to the "lib" under /lapackpp_lib? >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> I have attached the updated makefile and error. >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> Thank you very much. >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> Sincerely, >>>>>> changtsan >>>>>> >>>>>> >>>>>> >>>>>> On Sat, November 12, 2011 02:18, Dee wrote: >>>>>> Hello, >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> you forgot to link the Lapack-library in your Makefile. Please >>>>>> see chapter "Library Usage" on http://lapackpp.sourceforge.net/ >>>>>> >>>>>> >>>>>> >>>>>> With regards >>>>>> Dominik >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> -------- Original-Nachricht -------- >>>>>> Betreff: [Lapackpp-devel] question of including lapack++ in my >>>>>> makefile Von: Abraham Chang-Tsan Lu <cha...@cm...> An: >>>>>> lap...@li... Datum: 12.11.2011 00:18 >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>>> Dear Lapack++ Developer, >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> I have some trouble in including lapack++ in my makefile. >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> On my machine, Lapack++ is under the directory of >>>>>>> /home/changtsl/lapackpp-2.5.4 >>>>>>> and /home/changtsl/lapackpp_lib. >>>>>>> >>>>>>> >>>>>>> I have attached my code, makefile, and the error message given >>>>>>> in the terminal. The code is very short and only for testing. >>>>>>> Would >>>>>>> you please help me to solve the problem? Thank you very much. >>>>>>> >>>>>>> Sincerely, >>>>>>> changtsan >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> --------------------------------------------------------------- >>>>>>> -- >>>>>>> -- >>>>>>> -- >>>>>>> -- >>>>>>> -- >>>>>>> ----- >>>>>>> RSA(R) Conference 2012 >>>>>>> Save $700 by Nov 18 >>>>>>> Register now >>>>>>> http://p.sf.net/sfu/rsa-sfdev2dev1 >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> _______________________________________________ >>>>>>> lapackpp-devel mailing list lap...@li... >>>>>>> https://lists.sourceforge.net/lists/listinfo/lapackpp-devel >>>>>> >>>>>> >>>>>> >>>>>> >>>>> >>>>> >>>>> >>>>> >>>> >>>> >>>> >>>> >>> >>> >>> >>> >> >> >> >> > > > > |
From: Abraham Chang-T. L. <cha...@cm...> - 2011-11-16 21:28:18
|
Dear Dominik, I try what you indicate, it works on my machine! However, the following shows that main.exe cannot find liblapackpp.so.14. [changtsl@cee-changtsl EIG]$ ldd main.exe linux-vdso.so.1 => (0x00007fff2e7fd000) liblapackpp.so.14 => not found libstdc++.so.6 => /usr/lib64/libstdc++.so.6 (0x000000375a400000) libm.so.6 => /lib64/libm.so.6 (0x0000003753c00000) libgcc_s.so.1 => /lib64/libgcc_s.so.1 (0x0000003759c00000) libc.so.6 => /lib64/libc.so.6 (0x0000003753800000) /lib64/ld-linux-x86-64.so.2 (0x0000003753400000) But when listing the content of /lib, it is obvious that "liblapackpp.so.14" exists. "liblapackpp.so.14" is actually a link to "liblapackpp.so.14.2.0". [changtsl@cee-changtsl EIG]$ ls /home/changtsl/lapackpp_lib/lib liblapackpp.la liblapackpp.so.14 pkgconfig liblapackpp.so liblapackpp.so.14.2.0 How come main.exe cannot find "liblapackpp.so.14"? I try the same thing on another machine where lapackpp is located in /usr/local/packages/lapackpp by $ g++ -c -I/usr/local/packages/lapackpp/include/lapackpp main.cpp $ g++ -L/usr/local/packages/lapackpp/lib -llapackpp main.o -o main.exe $ LD_LIBRARY_PATH=/usr/local/packages/lapackpp/lib ./main.exe then it shows ./main.exe: error while loading shared libraries: libmkl_intel_ilp64.so: cannot open shared object file: No such file or directory The libraries that main.exe can search are linux-vdso.so.1 => (0x00007fff6f9ff000) liblapackpp.so.14 => not found libstdc++.so.6 => /usr/X11R6/lib64/libstdc++.so.6 (0x00007ffa83942000) libm.so.6 => /lib64/libm.so.6 (0x00007ffa836ec000) libgcc_s.so.1 => /lib64/libgcc_s.so.1 (0x00007ffa834d5000) libc.so.6 => /lib64/libc.so.6 (0x00007ffa83177000) /lib64/ld-linux-x86-64.so.2 (0x00007ffa83c4d000) I am wondering, on both machines, "liblapackpp.so.14" indeed exists in the appropriate directories, but the "main.exe"s cannot find it out? I am also wondering why the "LD_LIBRARY_PATH=" command works on my own machine but doesn't work on the other machine? Thank you very much. Sincerely, changtsan On Wed, November 16, 2011 15:47, Dee wrote: Dear changtsan, please do start the command from the command line itself: $ ./makefile $ LD_LIBRARY_PATH=/home/changtsl/lapackpp_lib/lib ./main.exe Usually you do not start a programm with a real makefile. (But of course you do not have a real Makefile.) If this doesn't work, you could display what libraries are searched for and where they are found: $ ldd main.exe Further please list the content of the lib-folder: $ ls /home/changtsl/lapackpp_lib/lib With regards Dominik -------- Original-Nachricht -------- Betreff: Re: [Lapackpp-devel] question of including lapack++ in my makefile Von: Abraham Chang-Tsan Lu <cha...@cm...> An: lap...@li... Datum: 16.11.2011 21:42 > Dear Dominik, > > > Sorry for taking you so much time. > My makefile now is > > > # main.o : main.cpp > g++ -c -I/home/changtsl/lapackpp_lib/include/lapackpp main.cpp # main.exe : > main.o g++ -L/home/changtsl/lapackpp_lib/lib -llapackpp main.o -o main.exe > > > date LD_LIBRARY_PATH=/home/changtsl/lapackpp_lib/lib ./main.exe > echo finished /bin/echo -e "\a" > date > > But the error is still the same: > > > [changtsl@cee-changtsl EIG]$ ./makefile > Wed Nov 16 15:35:56 EST 2011 > ./main.exe: error while loading shared libraries: liblapackpp.so.14: > cannot open shared object file: No such file or directory finished > > Thank you for your help and patience. > > > Sincerely, > changtsan > > > On Wed, November 16, 2011 15:28, Dee wrote: > Dear changtsan, > > > okay, next try: > > LD_LIBRARY_PATH=/home/changtsl/lapackpp_lib/lib ./make.exe > > > With regards > Dominik > > > -------- Original-Nachricht -------- > Betreff: Re: [Lapackpp-devel] question of including lapack++ in my > makefile Von: Abraham Chang-Tsan Lu <cha...@cm...> > An: lap...@li... > Datum: 16.11.2011 20:29 > > >> Dear Dominik, >> >> >> >> I really appreciate your help. I follow what you indicated, it shows >> >> >> >> [changtsl@cee-changtsl EIG]$ ./makefile >> g++: unrecognized option '-R/home/changtsl/lapackpp_lib/lib' >> Wed Nov 16 13:24:07 EST 2011 >> ./main.exe: error while loading shared libraries: liblapackpp.so.14: >> cannot open shared object file: No such file or directory finished >> >> and >> >> [changtsl@cee-changtsl EIG]$ ./makefile >> g++: unrecognized option '-R.' >> Wed Nov 16 13:14:45 EST 2011 >> ./main.exe: error while loading shared libraries: liblapackpp.so.14: >> cannot open shared object file: No such file or directory finished >> >> It seems that my machine doesn't recognize the command -R. The OS on my >> machine is RedHat linux. Thank you. >> >> Sincerely, >> changtsan >> >> >> >> On Wed, November 16, 2011 12:50, Dee wrote: >> Dear changtsan, >> >> >> >> the path in the makefile (behind the -L) is not important for the >> execution of the program. >> >> But because of the "exe" I thought you are using Windows. But as I see >> now you use Linux or something like it. So you need to tell the >> application where the library is located because Linux does not search >> in the current directory as default (and you shouldn't change it for >> security reasons). >> >> There are some ways to solve this problem. See >> http://www.eyrie.org/~eagle/notes/rpath.html for example in using the >> "-R" option when linking the binary (the line with the -L in it): >> >> >> >> g++ -R/home/changtsl/lapackpp_lib/lib -L/home/changtsl/lapackpp_lib/lib >> -llapackpp main.o -o main.exe >> >> >> >> But pay attention, that the main.exe will only work on your system (or >> at least on any system that has the library in this path or in the >> global path defined by LD_LIBRARY_PATH). >> >> So you could also link the main.exe via >> >> >> >> g++ -R. -L/home/changtsl/lapackpp_lib/lib -llapackpp main.o -o main.exe >> >> >> so the library will first be searched in the local directory. (You need >> to copy the so-files in the same directory as the main.exe of course.) >> >> With regards >> Dominik >> >> >> >> >> -------- Original-Nachricht -------- >> Betreff: Re: [Lapackpp-devel] question of including lapack++ in my >> makefile Von: Abraham Chang-Tsan Lu <cha...@cm...> An: >> lap...@li... Datum: 16.11.2011 18:34 >> >> >> >>> Dear Dominik, >>> >>> >>> >>> >>> I copy the whole file folder "lapackpp_lib" to the directory where >>> main.exe is, but the same error message is shown. Do I have to change >>> the path of lapackpp_lib in the makefile? Thank you. >>> >>> >>> Sincerely, >>> changtsan >>> >>> >>> >>> On Wed, November 16, 2011 11:28, Dee wrote: >>> Dear changtsan, >>> >>> >>> >>> >>> You link lapackpp-Library dynamically to your main.exe. This means >>> everybody who wants to start main.exe needs to have the lapackpp-Lib >>> somewhere in his execution path. >>> >>> The easiest way tol solve this is to copy the library in the same >>> directory as the exe. Then the programm should execute fine. >>> >>> With regards >>> Dominik >>> >>> >>> >>> >>> >>> -------- Original-Nachricht -------- >>> Betreff: Re: [Lapackpp-devel] question of including lapack++ in my >>> makefile Von: Abraham Chang-Tsan Lu <cha...@cm...> An: >>> lap...@li... Datum: 16.11.2011 17:25 >>> >>> >>> >>>> Hi Dominik, >>>> >>>> >>>> >>>> >>>> >>>> Thank you very much. I try to follow your indication, so now the >>>> content of my makefile now is >>>> >>>> g++ -c -I/home/changtsl/lapackpp_lib/include/lapackpp main.cpp g++ >>>> -L/home/changtsl/lapackpp_lib/lib -llapackpp main.o -o main.exe >>>> >>>> >>>> >>>> >>>> >>>> I think the file "main.o" and "main.exe" are produced successfully. >>>> But >>>> when I execut "main.exe", the error message shows >>>> >>>> [changtsl@cee-changtsl EIG]$ ./main.exe >>>> ./main.exe: error while loading shared libraries: liblapackpp.so.14: >>>> cannot open shared object file: No such file or directory >>>> >>>> What should I do then? Thank you very much. >>>> >>>> >>>> >>>> >>>> >>>> Sincerely, >>>> changtsan >>>> >>>> >>>> >>>> On Tue, November 15, 2011 16:04, Dee wrote: >>>> Dear changtsan, >>>> >>>> >>>> >>>> >>>> >>>> first: Please do not write directly to the responder but to the >>>> mailing list so that everyone can read your further questions. >>>> (Usually you >>>> set the responder as CC, if you wish to.) >>>> >>>> Concerning your question: It's better to link the library when >>>> building the exe: >>>> >>>> g++ -L/home/changtsl/lapackpp_lib/lib -llapackpp main.o -o main.exe >>>> >>>> >>>> So you should delete the second g++-line in your makefile and >>>> change the third to the one above. >>>> >>>> With regards >>>> Dominik >>>> >>>> >>>> >>>> >>>> >>>> -------- Original-Nachricht -------- >>>> Betreff: Re: [Lapackpp-devel] question of including lapack++ in my >>>> makefile Von: Abraham Chang-Tsan Lu <cha...@cm...> An: Dee >>>> <de...@de...> >>>> Datum: 14.11.2011 16:24 >>>> >>>> >>>> >>>> >>>> >>>>> Hi Dominik, >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> Thank you for your reply, and I am sorry to bother you again. I >>>>> don't know much about makefile, so the questions I am going to ask >>>>> below may be stupid. >>>>> >>>>> From the website you indicated, I see one line saying >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> gcc -L/usr/local/lib -llapackpp foo.o >>>>> >>>>> Does the "lib" here refers to the "lib" under /lapackpp_lib? >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> I have attached the updated makefile and error. >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> Thank you very much. >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> Sincerely, >>>>> changtsan >>>>> >>>>> >>>>> >>>>> On Sat, November 12, 2011 02:18, Dee wrote: >>>>> Hello, >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> you forgot to link the Lapack-library in your Makefile. Please >>>>> see chapter "Library Usage" on http://lapackpp.sourceforge.net/ >>>>> >>>>> >>>>> >>>>> With regards >>>>> Dominik >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> -------- Original-Nachricht -------- >>>>> Betreff: [Lapackpp-devel] question of including lapack++ in my >>>>> makefile Von: Abraham Chang-Tsan Lu <cha...@cm...> An: >>>>> lap...@li... Datum: 12.11.2011 00:18 >>>>> >>>>> >>>>> >>>>> >>>>> >>>>>> Dear Lapack++ Developer, >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> I have some trouble in including lapack++ in my makefile. >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> On my machine, Lapack++ is under the directory of >>>>>> /home/changtsl/lapackpp-2.5.4 >>>>>> and /home/changtsl/lapackpp_lib. >>>>>> >>>>>> >>>>>> I have attached my code, makefile, and the error message given >>>>>> in the terminal. The code is very short and only for testing. >>>>>> Would >>>>>> you please help me to solve the problem? Thank you very much. >>>>>> >>>>>> Sincerely, >>>>>> changtsan >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> --------------------------------------------------------------- >>>>>> -- >>>>>> -- >>>>>> -- >>>>>> -- >>>>>> -- >>>>>> ----- >>>>>> RSA(R) Conference 2012 >>>>>> Save $700 by Nov 18 >>>>>> Register now >>>>>> http://p.sf.net/sfu/rsa-sfdev2dev1 >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> _______________________________________________ >>>>>> lapackpp-devel mailing list lap...@li... >>>>>> https://lists.sourceforge.net/lists/listinfo/lapackpp-devel >>>>> >>>>> >>>>> >>>>> >>>> >>>> >>>> >>>> >>> >>> >>> >>> >> >> >> >> > > > > -- Abraham Chang-Tsan Lu Civil and Environmental Engineering Carnegie Mellon University Pittsburgh, PA, 15213 |
From: Dee <de...@de...> - 2011-11-16 20:47:51
|
Dear changtsan, please do start the command from the command line itself: $ ./makefile $ LD_LIBRARY_PATH=/home/changtsl/lapackpp_lib/lib ./main.exe Usually you do not start a programm with a real makefile. (But of course you do not have a real Makefile.) If this doesn't work, you could display what libraries are searched for and where they are found: $ ldd main.exe Further please list the content of the lib-folder: $ ls /home/changtsl/lapackpp_lib/lib With regards Dominik -------- Original-Nachricht -------- Betreff: Re: [Lapackpp-devel] question of including lapack++ in my makefile Von: Abraham Chang-Tsan Lu <cha...@cm...> An: lap...@li... Datum: 16.11.2011 21:42 > Dear Dominik, > > Sorry for taking you so much time. > My makefile now is > > # main.o : main.cpp > g++ -c -I/home/changtsl/lapackpp_lib/include/lapackpp main.cpp > # main.exe : main.o > g++ -L/home/changtsl/lapackpp_lib/lib -llapackpp main.o -o main.exe > > date > LD_LIBRARY_PATH=/home/changtsl/lapackpp_lib/lib ./main.exe > echo finished > /bin/echo -e "\a" > date > > But the error is still the same: > > [changtsl@cee-changtsl EIG]$ ./makefile > Wed Nov 16 15:35:56 EST 2011 > ./main.exe: error while loading shared libraries: liblapackpp.so.14: > cannot open shared object file: No such file or directory > finished > > Thank you for your help and patience. > > Sincerely, > changtsan > > > On Wed, November 16, 2011 15:28, Dee wrote: > Dear changtsan, > > okay, next try: > > LD_LIBRARY_PATH=/home/changtsl/lapackpp_lib/lib ./make.exe > > With regards > Dominik > > -------- Original-Nachricht -------- > Betreff: Re: [Lapackpp-devel] question of including lapack++ in my makefile > Von: Abraham Chang-Tsan Lu <cha...@cm...> > An: lap...@li... > Datum: 16.11.2011 20:29 > >> Dear Dominik, >> >> >> I really appreciate your help. I follow what you indicated, it shows >> >> >> [changtsl@cee-changtsl EIG]$ ./makefile >> g++: unrecognized option '-R/home/changtsl/lapackpp_lib/lib' >> Wed Nov 16 13:24:07 EST 2011 >> ./main.exe: error while loading shared libraries: liblapackpp.so.14: >> cannot open shared object file: No such file or directory finished >> >> and >> >> [changtsl@cee-changtsl EIG]$ ./makefile >> g++: unrecognized option '-R.' >> Wed Nov 16 13:14:45 EST 2011 >> ./main.exe: error while loading shared libraries: liblapackpp.so.14: >> cannot open shared object file: No such file or directory finished >> >> It seems that my machine doesn't recognize the command -R. The OS on my >> machine is RedHat linux. Thank you. >> >> Sincerely, >> changtsan >> >> >> >> On Wed, November 16, 2011 12:50, Dee wrote: >> Dear changtsan, >> >> >> the path in the makefile (behind the -L) is not important for the >> execution of the program. >> >> But because of the "exe" I thought you are using Windows. But as I see >> now you use Linux or something like it. So you need to tell the application >> where the library is located because Linux does not search in the current >> directory as default (and you shouldn't change it for security reasons). >> >> There are some ways to solve this problem. See >> http://www.eyrie.org/~eagle/notes/rpath.html for example in using the >> "-R" option when linking the binary (the line with the -L in it): >> >> >> g++ -R/home/changtsl/lapackpp_lib/lib -L/home/changtsl/lapackpp_lib/lib >> -llapackpp main.o -o main.exe >> >> >> But pay attention, that the main.exe will only work on your system (or >> at least on any system that has the library in this path or in the global >> path defined by LD_LIBRARY_PATH). >> >> So you could also link the main.exe via >> >> >> g++ -R. -L/home/changtsl/lapackpp_lib/lib -llapackpp main.o -o main.exe >> >> so the library will first be searched in the local directory. (You need to >> copy the so-files in the same directory as the main.exe of course.) >> >> With regards >> Dominik >> >> >> >> -------- Original-Nachricht -------- >> Betreff: Re: [Lapackpp-devel] question of including lapack++ in my >> makefile Von: Abraham Chang-Tsan Lu <cha...@cm...> >> An: lap...@li... >> Datum: 16.11.2011 18:34 >> >> >>> Dear Dominik, >>> >>> >>> >>> I copy the whole file folder "lapackpp_lib" to the directory where >>> main.exe is, but the same error message is shown. Do I have to change >>> the path of lapackpp_lib in the makefile? Thank you. >>> >>> >>> Sincerely, >>> changtsan >>> >>> >>> >>> On Wed, November 16, 2011 11:28, Dee wrote: >>> Dear changtsan, >>> >>> >>> >>> You link lapackpp-Library dynamically to your main.exe. This means >>> everybody who wants to start main.exe needs to have the lapackpp-Lib >>> somewhere in his execution path. >>> >>> The easiest way tol solve this is to copy the library in the same >>> directory as the exe. Then the programm should execute fine. >>> >>> With regards >>> Dominik >>> >>> >>> >>> >>> -------- Original-Nachricht -------- >>> Betreff: Re: [Lapackpp-devel] question of including lapack++ in my >>> makefile Von: Abraham Chang-Tsan Lu <cha...@cm...> An: >>> lap...@li... Datum: 16.11.2011 17:25 >>> >>> >>> >>>> Hi Dominik, >>>> >>>> >>>> >>>> >>>> Thank you very much. I try to follow your indication, so now the >>>> content of my makefile now is >>>> >>>> g++ -c -I/home/changtsl/lapackpp_lib/include/lapackpp main.cpp g++ >>>> -L/home/changtsl/lapackpp_lib/lib -llapackpp main.o -o main.exe >>>> >>>> >>>> >>>> >>>> I think the file "main.o" and "main.exe" are produced successfully. >>>> But >>>> when I execut "main.exe", the error message shows >>>> >>>> [changtsl@cee-changtsl EIG]$ ./main.exe >>>> ./main.exe: error while loading shared libraries: liblapackpp.so.14: >>>> cannot open shared object file: No such file or directory >>>> >>>> What should I do then? Thank you very much. >>>> >>>> >>>> >>>> >>>> Sincerely, >>>> changtsan >>>> >>>> >>>> >>>> On Tue, November 15, 2011 16:04, Dee wrote: >>>> Dear changtsan, >>>> >>>> >>>> >>>> >>>> first: Please do not write directly to the responder but to the >>>> mailing list so that everyone can read your further questions. >>>> (Usually you >>>> set the responder as CC, if you wish to.) >>>> >>>> Concerning your question: It's better to link the library when >>>> building the exe: >>>> >>>> g++ -L/home/changtsl/lapackpp_lib/lib -llapackpp main.o -o main.exe >>>> >>>> So you should delete the second g++-line in your makefile and change >>>> the third to the one above. >>>> >>>> With regards >>>> Dominik >>>> >>>> >>>> >>>> >>>> -------- Original-Nachricht -------- >>>> Betreff: Re: [Lapackpp-devel] question of including lapack++ in my >>>> makefile Von: Abraham Chang-Tsan Lu <cha...@cm...> An: Dee >>>> <de...@de...> >>>> Datum: 14.11.2011 16:24 >>>> >>>> >>>> >>>> >>>>> Hi Dominik, >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> Thank you for your reply, and I am sorry to bother you again. I >>>>> don't know much about makefile, so the questions I am going to ask >>>>> below may be stupid. >>>>> >>>>> From the website you indicated, I see one line saying >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> gcc -L/usr/local/lib -llapackpp foo.o >>>>> >>>>> Does the "lib" here refers to the "lib" under /lapackpp_lib? >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> I have attached the updated makefile and error. >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> Thank you very much. >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> Sincerely, >>>>> changtsan >>>>> >>>>> >>>>> >>>>> On Sat, November 12, 2011 02:18, Dee wrote: >>>>> Hello, >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> you forgot to link the Lapack-library in your Makefile. Please see >>>>> chapter "Library Usage" on http://lapackpp.sourceforge.net/ >>>>> >>>>> >>>>> >>>>> With regards >>>>> Dominik >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> -------- Original-Nachricht -------- >>>>> Betreff: [Lapackpp-devel] question of including lapack++ in my >>>>> makefile Von: Abraham Chang-Tsan Lu <cha...@cm...> An: >>>>> lap...@li... Datum: 12.11.2011 00:18 >>>>> >>>>> >>>>> >>>>> >>>>> >>>>>> Dear Lapack++ Developer, >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> I have some trouble in including lapack++ in my makefile. >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> On my machine, Lapack++ is under the directory of >>>>>> /home/changtsl/lapackpp-2.5.4 >>>>>> and /home/changtsl/lapackpp_lib. >>>>>> >>>>>> >>>>>> I have attached my code, makefile, and the error message given in >>>>>> the terminal. The code is very short and only for testing. Would >>>>>> you please help me to solve the problem? Thank you very much. >>>>>> >>>>>> Sincerely, >>>>>> changtsan >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> ----------------------------------------------------------------- >>>>>> -- >>>>>> -- >>>>>> -- >>>>>> -- >>>>>> ----- >>>>>> RSA(R) Conference 2012 >>>>>> Save $700 by Nov 18 >>>>>> Register now >>>>>> http://p.sf.net/sfu/rsa-sfdev2dev1 >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> _______________________________________________ >>>>>> lapackpp-devel mailing list lap...@li... >>>>>> https://lists.sourceforge.net/lists/listinfo/lapackpp-devel >>>>> >>>>> >>>>> >>>>> >>>> >>>> >>>> >>>> >>> >>> >>> >>> >> >> >> >> > > > > |
From: Abraham Chang-T. L. <cha...@cm...> - 2011-11-16 20:42:30
|
Dear Dominik, Sorry for taking you so much time. My makefile now is # main.o : main.cpp g++ -c -I/home/changtsl/lapackpp_lib/include/lapackpp main.cpp # main.exe : main.o g++ -L/home/changtsl/lapackpp_lib/lib -llapackpp main.o -o main.exe date LD_LIBRARY_PATH=/home/changtsl/lapackpp_lib/lib ./main.exe echo finished /bin/echo -e "\a" date But the error is still the same: [changtsl@cee-changtsl EIG]$ ./makefile Wed Nov 16 15:35:56 EST 2011 ./main.exe: error while loading shared libraries: liblapackpp.so.14: cannot open shared object file: No such file or directory finished Thank you for your help and patience. Sincerely, changtsan On Wed, November 16, 2011 15:28, Dee wrote: Dear changtsan, okay, next try: LD_LIBRARY_PATH=/home/changtsl/lapackpp_lib/lib ./make.exe With regards Dominik -------- Original-Nachricht -------- Betreff: Re: [Lapackpp-devel] question of including lapack++ in my makefile Von: Abraham Chang-Tsan Lu <cha...@cm...> An: lap...@li... Datum: 16.11.2011 20:29 > Dear Dominik, > > > I really appreciate your help. I follow what you indicated, it shows > > > [changtsl@cee-changtsl EIG]$ ./makefile > g++: unrecognized option '-R/home/changtsl/lapackpp_lib/lib' > Wed Nov 16 13:24:07 EST 2011 > ./main.exe: error while loading shared libraries: liblapackpp.so.14: > cannot open shared object file: No such file or directory finished > > and > > [changtsl@cee-changtsl EIG]$ ./makefile > g++: unrecognized option '-R.' > Wed Nov 16 13:14:45 EST 2011 > ./main.exe: error while loading shared libraries: liblapackpp.so.14: > cannot open shared object file: No such file or directory finished > > It seems that my machine doesn't recognize the command -R. The OS on my > machine is RedHat linux. Thank you. > > Sincerely, > changtsan > > > > On Wed, November 16, 2011 12:50, Dee wrote: > Dear changtsan, > > > the path in the makefile (behind the -L) is not important for the > execution of the program. > > But because of the "exe" I thought you are using Windows. But as I see > now you use Linux or something like it. So you need to tell the application > where the library is located because Linux does not search in the current > directory as default (and you shouldn't change it for security reasons). > > There are some ways to solve this problem. See > http://www.eyrie.org/~eagle/notes/rpath.html for example in using the > "-R" option when linking the binary (the line with the -L in it): > > > g++ -R/home/changtsl/lapackpp_lib/lib -L/home/changtsl/lapackpp_lib/lib > -llapackpp main.o -o main.exe > > > But pay attention, that the main.exe will only work on your system (or > at least on any system that has the library in this path or in the global > path defined by LD_LIBRARY_PATH). > > So you could also link the main.exe via > > > g++ -R. -L/home/changtsl/lapackpp_lib/lib -llapackpp main.o -o main.exe > > so the library will first be searched in the local directory. (You need to > copy the so-files in the same directory as the main.exe of course.) > > With regards > Dominik > > > > -------- Original-Nachricht -------- > Betreff: Re: [Lapackpp-devel] question of including lapack++ in my > makefile Von: Abraham Chang-Tsan Lu <cha...@cm...> > An: lap...@li... > Datum: 16.11.2011 18:34 > > >> Dear Dominik, >> >> >> >> I copy the whole file folder "lapackpp_lib" to the directory where >> main.exe is, but the same error message is shown. Do I have to change >> the path of lapackpp_lib in the makefile? Thank you. >> >> >> Sincerely, >> changtsan >> >> >> >> On Wed, November 16, 2011 11:28, Dee wrote: >> Dear changtsan, >> >> >> >> You link lapackpp-Library dynamically to your main.exe. This means >> everybody who wants to start main.exe needs to have the lapackpp-Lib >> somewhere in his execution path. >> >> The easiest way tol solve this is to copy the library in the same >> directory as the exe. Then the programm should execute fine. >> >> With regards >> Dominik >> >> >> >> >> -------- Original-Nachricht -------- >> Betreff: Re: [Lapackpp-devel] question of including lapack++ in my >> makefile Von: Abraham Chang-Tsan Lu <cha...@cm...> An: >> lap...@li... Datum: 16.11.2011 17:25 >> >> >> >>> Hi Dominik, >>> >>> >>> >>> >>> Thank you very much. I try to follow your indication, so now the >>> content of my makefile now is >>> >>> g++ -c -I/home/changtsl/lapackpp_lib/include/lapackpp main.cpp g++ >>> -L/home/changtsl/lapackpp_lib/lib -llapackpp main.o -o main.exe >>> >>> >>> >>> >>> I think the file "main.o" and "main.exe" are produced successfully. >>> But >>> when I execut "main.exe", the error message shows >>> >>> [changtsl@cee-changtsl EIG]$ ./main.exe >>> ./main.exe: error while loading shared libraries: liblapackpp.so.14: >>> cannot open shared object file: No such file or directory >>> >>> What should I do then? Thank you very much. >>> >>> >>> >>> >>> Sincerely, >>> changtsan >>> >>> >>> >>> On Tue, November 15, 2011 16:04, Dee wrote: >>> Dear changtsan, >>> >>> >>> >>> >>> first: Please do not write directly to the responder but to the >>> mailing list so that everyone can read your further questions. >>> (Usually you >>> set the responder as CC, if you wish to.) >>> >>> Concerning your question: It's better to link the library when >>> building the exe: >>> >>> g++ -L/home/changtsl/lapackpp_lib/lib -llapackpp main.o -o main.exe >>> >>> So you should delete the second g++-line in your makefile and change >>> the third to the one above. >>> >>> With regards >>> Dominik >>> >>> >>> >>> >>> -------- Original-Nachricht -------- >>> Betreff: Re: [Lapackpp-devel] question of including lapack++ in my >>> makefile Von: Abraham Chang-Tsan Lu <cha...@cm...> An: Dee >>> <de...@de...> >>> Datum: 14.11.2011 16:24 >>> >>> >>> >>> >>>> Hi Dominik, >>>> >>>> >>>> >>>> >>>> >>>> Thank you for your reply, and I am sorry to bother you again. I >>>> don't know much about makefile, so the questions I am going to ask >>>> below may be stupid. >>>> >>>> From the website you indicated, I see one line saying >>>> >>>> >>>> >>>> >>>> >>>> gcc -L/usr/local/lib -llapackpp foo.o >>>> >>>> Does the "lib" here refers to the "lib" under /lapackpp_lib? >>>> >>>> >>>> >>>> >>>> >>>> I have attached the updated makefile and error. >>>> >>>> >>>> >>>> >>>> >>>> Thank you very much. >>>> >>>> >>>> >>>> >>>> >>>> Sincerely, >>>> changtsan >>>> >>>> >>>> >>>> On Sat, November 12, 2011 02:18, Dee wrote: >>>> Hello, >>>> >>>> >>>> >>>> >>>> >>>> you forgot to link the Lapack-library in your Makefile. Please see >>>> chapter "Library Usage" on http://lapackpp.sourceforge.net/ >>>> >>>> >>>> >>>> With regards >>>> Dominik >>>> >>>> >>>> >>>> >>>> >>>> >>>> -------- Original-Nachricht -------- >>>> Betreff: [Lapackpp-devel] question of including lapack++ in my >>>> makefile Von: Abraham Chang-Tsan Lu <cha...@cm...> An: >>>> lap...@li... Datum: 12.11.2011 00:18 >>>> >>>> >>>> >>>> >>>> >>>>> Dear Lapack++ Developer, >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> I have some trouble in including lapack++ in my makefile. >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> On my machine, Lapack++ is under the directory of >>>>> /home/changtsl/lapackpp-2.5.4 >>>>> and /home/changtsl/lapackpp_lib. >>>>> >>>>> >>>>> I have attached my code, makefile, and the error message given in >>>>> the terminal. The code is very short and only for testing. Would >>>>> you please help me to solve the problem? Thank you very much. >>>>> >>>>> Sincerely, >>>>> changtsan >>>>> >>>>> >>>>> >>>>> >>>>> ----------------------------------------------------------------- >>>>> -- >>>>> -- >>>>> -- >>>>> -- >>>>> ----- >>>>> RSA(R) Conference 2012 >>>>> Save $700 by Nov 18 >>>>> Register now >>>>> http://p.sf.net/sfu/rsa-sfdev2dev1 >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> _______________________________________________ >>>>> lapackpp-devel mailing list lap...@li... >>>>> https://lists.sourceforge.net/lists/listinfo/lapackpp-devel >>>> >>>> >>>> >>>> >>> >>> >>> >>> >> >> >> >> > > > > -- Abraham Chang-Tsan Lu Civil and Environmental Engineering Carnegie Mellon University Pittsburgh, PA, 15213 |
From: Dee <de...@de...> - 2011-11-16 20:29:12
|
Dear changtsan, okay, next try: LD_LIBRARY_PATH=/home/changtsl/lapackpp_lib/lib ./make.exe With regards Dominik -------- Original-Nachricht -------- Betreff: Re: [Lapackpp-devel] question of including lapack++ in my makefile Von: Abraham Chang-Tsan Lu <cha...@cm...> An: lap...@li... Datum: 16.11.2011 20:29 > Dear Dominik, > > I really appreciate your help. I follow what you indicated, it shows > > [changtsl@cee-changtsl EIG]$ ./makefile > g++: unrecognized option '-R/home/changtsl/lapackpp_lib/lib' > Wed Nov 16 13:24:07 EST 2011 > ./main.exe: error while loading shared libraries: liblapackpp.so.14: > cannot open shared object file: No such file or directory > finished > > and > > [changtsl@cee-changtsl EIG]$ ./makefile > g++: unrecognized option '-R.' > Wed Nov 16 13:14:45 EST 2011 > ./main.exe: error while loading shared libraries: liblapackpp.so.14: > cannot open shared object file: No such file or directory > finished > > It seems that my machine doesn't recognize the command -R. The OS on my > machine is RedHat linux. Thank you. > > Sincerely, > changtsan > > > > On Wed, November 16, 2011 12:50, Dee wrote: > Dear changtsan, > > the path in the makefile (behind the -L) is not important for the > execution of the program. > > But because of the "exe" I thought you are using Windows. But as I see > now you use Linux or something like it. So you need to tell the > application where the library is located because Linux does not search > in the current directory as default (and you shouldn't change it for > security reasons). > > There are some ways to solve this problem. See > http://www.eyrie.org/~eagle/notes/rpath.html for example in using the > "-R" option when linking the binary (the line with the -L in it): > > g++ -R/home/changtsl/lapackpp_lib/lib -L/home/changtsl/lapackpp_lib/lib > -llapackpp main.o -o main.exe > > But pay attention, that the main.exe will only work on your system (or > at least on any system that has the library in this path or in the > global path defined by LD_LIBRARY_PATH). > > So you could also link the main.exe via > > g++ -R. -L/home/changtsl/lapackpp_lib/lib -llapackpp main.o -o main.exe > > so the library will first be searched in the local directory. (You need > to copy the so-files in the same directory as the main.exe of course.) > > With regards > Dominik > > > -------- Original-Nachricht -------- > Betreff: Re: [Lapackpp-devel] question of including lapack++ in my makefile > Von: Abraham Chang-Tsan Lu <cha...@cm...> > An: lap...@li... > Datum: 16.11.2011 18:34 > >> Dear Dominik, >> >> >> I copy the whole file folder "lapackpp_lib" to the directory where >> main.exe is, but the same error message is shown. Do I have to change the >> path of lapackpp_lib in the makefile? Thank you. >> >> >> Sincerely, >> changtsan >> >> >> >> On Wed, November 16, 2011 11:28, Dee wrote: >> Dear changtsan, >> >> >> You link lapackpp-Library dynamically to your main.exe. This means >> everybody who wants to start main.exe needs to have the lapackpp-Lib >> somewhere in his execution path. >> >> The easiest way tol solve this is to copy the library in the same >> directory as the exe. Then the programm should execute fine. >> >> With regards >> Dominik >> >> >> >> -------- Original-Nachricht -------- >> Betreff: Re: [Lapackpp-devel] question of including lapack++ in my >> makefile Von: Abraham Chang-Tsan Lu <cha...@cm...> >> An: lap...@li... >> Datum: 16.11.2011 17:25 >> >> >>> Hi Dominik, >>> >>> >>> >>> Thank you very much. I try to follow your indication, so now the >>> content of my makefile now is >>> >>> g++ -c -I/home/changtsl/lapackpp_lib/include/lapackpp main.cpp g++ >>> -L/home/changtsl/lapackpp_lib/lib -llapackpp main.o -o main.exe >>> >>> >>> >>> I think the file "main.o" and "main.exe" are produced successfully. But >>> when I execut "main.exe", the error message shows >>> >>> [changtsl@cee-changtsl EIG]$ ./main.exe >>> ./main.exe: error while loading shared libraries: liblapackpp.so.14: >>> cannot open shared object file: No such file or directory >>> >>> What should I do then? Thank you very much. >>> >>> >>> >>> Sincerely, >>> changtsan >>> >>> >>> >>> On Tue, November 15, 2011 16:04, Dee wrote: >>> Dear changtsan, >>> >>> >>> >>> first: Please do not write directly to the responder but to the mailing >>> list so that everyone can read your further questions. (Usually you >>> set the responder as CC, if you wish to.) >>> >>> Concerning your question: It's better to link the library when building >>> the exe: >>> >>> g++ -L/home/changtsl/lapackpp_lib/lib -llapackpp main.o -o main.exe >>> >>> So you should delete the second g++-line in your makefile and change >>> the third to the one above. >>> >>> With regards >>> Dominik >>> >>> >>> >>> -------- Original-Nachricht -------- >>> Betreff: Re: [Lapackpp-devel] question of including lapack++ in my >>> makefile Von: Abraham Chang-Tsan Lu <cha...@cm...> An: Dee >>> <de...@de...> >>> Datum: 14.11.2011 16:24 >>> >>> >>> >>>> Hi Dominik, >>>> >>>> >>>> >>>> >>>> Thank you for your reply, and I am sorry to bother you again. I don't >>>> know much about makefile, so the questions I am going to ask below >>>> may be stupid. >>>> >>>> From the website you indicated, I see one line saying >>>> >>>> >>>> >>>> >>>> gcc -L/usr/local/lib -llapackpp foo.o >>>> >>>> Does the "lib" here refers to the "lib" under /lapackpp_lib? >>>> >>>> >>>> >>>> >>>> I have attached the updated makefile and error. >>>> >>>> >>>> >>>> >>>> Thank you very much. >>>> >>>> >>>> >>>> >>>> Sincerely, >>>> changtsan >>>> >>>> >>>> >>>> On Sat, November 12, 2011 02:18, Dee wrote: >>>> Hello, >>>> >>>> >>>> >>>> >>>> you forgot to link the Lapack-library in your Makefile. Please see >>>> chapter "Library Usage" on http://lapackpp.sourceforge.net/ >>>> >>>> >>>> >>>> With regards >>>> Dominik >>>> >>>> >>>> >>>> >>>> >>>> -------- Original-Nachricht -------- >>>> Betreff: [Lapackpp-devel] question of including lapack++ in my >>>> makefile Von: Abraham Chang-Tsan Lu <cha...@cm...> >>>> An: lap...@li... >>>> Datum: 12.11.2011 00:18 >>>> >>>> >>>> >>>> >>>>> Dear Lapack++ Developer, >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> I have some trouble in including lapack++ in my makefile. >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> On my machine, Lapack++ is under the directory of >>>>> /home/changtsl/lapackpp-2.5.4 >>>>> and /home/changtsl/lapackpp_lib. >>>>> >>>>> >>>>> I have attached my code, makefile, and the error message given in >>>>> the terminal. The code is very short and only for testing. Would you >>>>> please help me to solve the problem? Thank you very much. >>>>> >>>>> Sincerely, >>>>> changtsan >>>>> >>>>> >>>>> >>>>> >>>>> ------------------------------------------------------------------- >>>>> -- >>>>> -- >>>>> -- >>>>> ----- >>>>> RSA(R) Conference 2012 >>>>> Save $700 by Nov 18 >>>>> Register now >>>>> http://p.sf.net/sfu/rsa-sfdev2dev1 >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> _______________________________________________ >>>>> lapackpp-devel mailing list lap...@li... >>>>> https://lists.sourceforge.net/lists/listinfo/lapackpp-devel >>>> >>>> >>>> >>>> >>> >>> >>> >>> >> >> >> >> > > > > |
From: Abraham Chang-T. L. <cha...@cm...> - 2011-11-16 19:29:56
|
Dear Dominik, I really appreciate your help. I follow what you indicated, it shows [changtsl@cee-changtsl EIG]$ ./makefile g++: unrecognized option '-R/home/changtsl/lapackpp_lib/lib' Wed Nov 16 13:24:07 EST 2011 ./main.exe: error while loading shared libraries: liblapackpp.so.14: cannot open shared object file: No such file or directory finished and [changtsl@cee-changtsl EIG]$ ./makefile g++: unrecognized option '-R.' Wed Nov 16 13:14:45 EST 2011 ./main.exe: error while loading shared libraries: liblapackpp.so.14: cannot open shared object file: No such file or directory finished It seems that my machine doesn't recognize the command -R. The OS on my machine is RedHat linux. Thank you. Sincerely, changtsan On Wed, November 16, 2011 12:50, Dee wrote: Dear changtsan, the path in the makefile (behind the -L) is not important for the execution of the program. But because of the "exe" I thought you are using Windows. But as I see now you use Linux or something like it. So you need to tell the application where the library is located because Linux does not search in the current directory as default (and you shouldn't change it for security reasons). There are some ways to solve this problem. See http://www.eyrie.org/~eagle/notes/rpath.html for example in using the "-R" option when linking the binary (the line with the -L in it): g++ -R/home/changtsl/lapackpp_lib/lib -L/home/changtsl/lapackpp_lib/lib -llapackpp main.o -o main.exe But pay attention, that the main.exe will only work on your system (or at least on any system that has the library in this path or in the global path defined by LD_LIBRARY_PATH). So you could also link the main.exe via g++ -R. -L/home/changtsl/lapackpp_lib/lib -llapackpp main.o -o main.exe so the library will first be searched in the local directory. (You need to copy the so-files in the same directory as the main.exe of course.) With regards Dominik -------- Original-Nachricht -------- Betreff: Re: [Lapackpp-devel] question of including lapack++ in my makefile Von: Abraham Chang-Tsan Lu <cha...@cm...> An: lap...@li... Datum: 16.11.2011 18:34 > Dear Dominik, > > > I copy the whole file folder "lapackpp_lib" to the directory where > main.exe is, but the same error message is shown. Do I have to change the > path of lapackpp_lib in the makefile? Thank you. > > > Sincerely, > changtsan > > > > On Wed, November 16, 2011 11:28, Dee wrote: > Dear changtsan, > > > You link lapackpp-Library dynamically to your main.exe. This means > everybody who wants to start main.exe needs to have the lapackpp-Lib > somewhere in his execution path. > > The easiest way tol solve this is to copy the library in the same > directory as the exe. Then the programm should execute fine. > > With regards > Dominik > > > > -------- Original-Nachricht -------- > Betreff: Re: [Lapackpp-devel] question of including lapack++ in my > makefile Von: Abraham Chang-Tsan Lu <cha...@cm...> > An: lap...@li... > Datum: 16.11.2011 17:25 > > >> Hi Dominik, >> >> >> >> Thank you very much. I try to follow your indication, so now the >> content of my makefile now is >> >> g++ -c -I/home/changtsl/lapackpp_lib/include/lapackpp main.cpp g++ >> -L/home/changtsl/lapackpp_lib/lib -llapackpp main.o -o main.exe >> >> >> >> I think the file "main.o" and "main.exe" are produced successfully. But >> when I execut "main.exe", the error message shows >> >> [changtsl@cee-changtsl EIG]$ ./main.exe >> ./main.exe: error while loading shared libraries: liblapackpp.so.14: >> cannot open shared object file: No such file or directory >> >> What should I do then? Thank you very much. >> >> >> >> Sincerely, >> changtsan >> >> >> >> On Tue, November 15, 2011 16:04, Dee wrote: >> Dear changtsan, >> >> >> >> first: Please do not write directly to the responder but to the mailing >> list so that everyone can read your further questions. (Usually you >> set the responder as CC, if you wish to.) >> >> Concerning your question: It's better to link the library when building >> the exe: >> >> g++ -L/home/changtsl/lapackpp_lib/lib -llapackpp main.o -o main.exe >> >> So you should delete the second g++-line in your makefile and change >> the third to the one above. >> >> With regards >> Dominik >> >> >> >> -------- Original-Nachricht -------- >> Betreff: Re: [Lapackpp-devel] question of including lapack++ in my >> makefile Von: Abraham Chang-Tsan Lu <cha...@cm...> An: Dee >> <de...@de...> >> Datum: 14.11.2011 16:24 >> >> >> >>> Hi Dominik, >>> >>> >>> >>> >>> Thank you for your reply, and I am sorry to bother you again. I don't >>> know much about makefile, so the questions I am going to ask below >>> may be stupid. >>> >>> From the website you indicated, I see one line saying >>> >>> >>> >>> >>> gcc -L/usr/local/lib -llapackpp foo.o >>> >>> Does the "lib" here refers to the "lib" under /lapackpp_lib? >>> >>> >>> >>> >>> I have attached the updated makefile and error. >>> >>> >>> >>> >>> Thank you very much. >>> >>> >>> >>> >>> Sincerely, >>> changtsan >>> >>> >>> >>> On Sat, November 12, 2011 02:18, Dee wrote: >>> Hello, >>> >>> >>> >>> >>> you forgot to link the Lapack-library in your Makefile. Please see >>> chapter "Library Usage" on http://lapackpp.sourceforge.net/ >>> >>> >>> >>> With regards >>> Dominik >>> >>> >>> >>> >>> >>> -------- Original-Nachricht -------- >>> Betreff: [Lapackpp-devel] question of including lapack++ in my >>> makefile Von: Abraham Chang-Tsan Lu <cha...@cm...> >>> An: lap...@li... >>> Datum: 12.11.2011 00:18 >>> >>> >>> >>> >>>> Dear Lapack++ Developer, >>>> >>>> >>>> >>>> >>>> >>>> I have some trouble in including lapack++ in my makefile. >>>> >>>> >>>> >>>> >>>> >>>> On my machine, Lapack++ is under the directory of >>>> /home/changtsl/lapackpp-2.5.4 >>>> and /home/changtsl/lapackpp_lib. >>>> >>>> >>>> I have attached my code, makefile, and the error message given in >>>> the terminal. The code is very short and only for testing. Would you >>>> please help me to solve the problem? Thank you very much. >>>> >>>> Sincerely, >>>> changtsan >>>> >>>> >>>> >>>> >>>> ------------------------------------------------------------------- >>>> -- >>>> -- >>>> -- >>>> ----- >>>> RSA(R) Conference 2012 >>>> Save $700 by Nov 18 >>>> Register now >>>> http://p.sf.net/sfu/rsa-sfdev2dev1 >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> _______________________________________________ >>>> lapackpp-devel mailing list lap...@li... >>>> https://lists.sourceforge.net/lists/listinfo/lapackpp-devel >>> >>> >>> >>> >> >> >> >> > > > > -- Abraham Chang-Tsan Lu Civil and Environmental Engineering Carnegie Mellon University Pittsburgh, PA, 15213 |
From: Dee <de...@de...> - 2011-11-16 17:51:00
|
Dear changtsan, the path in the makefile (behind the -L) is not important for the execution of the program. But because of the "exe" I thought you are using Windows. But as I see now you use Linux or something like it. So you need to tell the application where the library is located because Linux does not search in the current directory as default (and you shouldn't change it for security reasons). There are some ways to solve this problem. See http://www.eyrie.org/~eagle/notes/rpath.html for example in using the "-R" option when linking the binary (the line with the -L in it): g++ -R/home/changtsl/lapackpp_lib/lib -L/home/changtsl/lapackpp_lib/lib -llapackpp main.o -o main.exe But pay attention, that the main.exe will only work on your system (or at least on any system that has the library in this path or in the global path defined by LD_LIBRARY_PATH). So you could also link the main.exe via g++ -R. -L/home/changtsl/lapackpp_lib/lib -llapackpp main.o -o main.exe so the library will first be searched in the local directory. (You need to copy the so-files in the same directory as the main.exe of course.) With regards Dominik -------- Original-Nachricht -------- Betreff: Re: [Lapackpp-devel] question of including lapack++ in my makefile Von: Abraham Chang-Tsan Lu <cha...@cm...> An: lap...@li... Datum: 16.11.2011 18:34 > Dear Dominik, > > I copy the whole file folder "lapackpp_lib" to the directory where > main.exe is, but the same error message is shown. Do I have to change the > path of lapackpp_lib in the makefile? > Thank you. > > Sincerely, > changtsan > > > > On Wed, November 16, 2011 11:28, Dee wrote: > Dear changtsan, > > You link lapackpp-Library dynamically to your main.exe. This means > everybody who wants to start main.exe needs to have the lapackpp-Lib > somewhere in his execution path. > > The easiest way tol solve this is to copy the library in the same > directory as the exe. Then the programm should execute fine. > > With regards > Dominik > > > -------- Original-Nachricht -------- > Betreff: Re: [Lapackpp-devel] question of including lapack++ in my makefile > Von: Abraham Chang-Tsan Lu <cha...@cm...> > An: lap...@li... > Datum: 16.11.2011 17:25 > >> Hi Dominik, >> >> >> Thank you very much. I try to follow your indication, so now the content >> of my makefile now is >> >> g++ -c -I/home/changtsl/lapackpp_lib/include/lapackpp main.cpp g++ >> -L/home/changtsl/lapackpp_lib/lib -llapackpp main.o -o main.exe >> >> >> I think the file "main.o" and "main.exe" are produced successfully. But >> when I execut "main.exe", the error message shows >> >> [changtsl@cee-changtsl EIG]$ ./main.exe >> ./main.exe: error while loading shared libraries: liblapackpp.so.14: >> cannot open shared object file: No such file or directory >> >> What should I do then? Thank you very much. >> >> >> Sincerely, >> changtsan >> >> >> >> On Tue, November 15, 2011 16:04, Dee wrote: >> Dear changtsan, >> >> >> first: Please do not write directly to the responder but to the mailing >> list so that everyone can read your further questions. (Usually you set the >> responder as CC, if you wish to.) >> >> Concerning your question: It's better to link the library when building >> the exe: >> >> g++ -L/home/changtsl/lapackpp_lib/lib -llapackpp main.o -o main.exe >> >> So you should delete the second g++-line in your makefile and change the >> third to the one above. >> >> With regards >> Dominik >> >> >> -------- Original-Nachricht -------- >> Betreff: Re: [Lapackpp-devel] question of including lapack++ in my >> makefile Von: Abraham Chang-Tsan Lu <cha...@cm...> >> An: Dee <de...@de...> >> Datum: 14.11.2011 16:24 >> >> >>> Hi Dominik, >>> >>> >>> >>> Thank you for your reply, and I am sorry to bother you again. I don't >>> know much about makefile, so the questions I am going to ask below may >>> be stupid. >>> >>> From the website you indicated, I see one line saying >>> >>> >>> >>> gcc -L/usr/local/lib -llapackpp foo.o >>> >>> Does the "lib" here refers to the "lib" under /lapackpp_lib? >>> >>> >>> >>> I have attached the updated makefile and error. >>> >>> >>> >>> Thank you very much. >>> >>> >>> >>> Sincerely, >>> changtsan >>> >>> >>> >>> On Sat, November 12, 2011 02:18, Dee wrote: >>> Hello, >>> >>> >>> >>> you forgot to link the Lapack-library in your Makefile. Please see >>> chapter "Library Usage" on http://lapackpp.sourceforge.net/ >>> >>> >>> >>> With regards >>> Dominik >>> >>> >>> >>> >>> -------- Original-Nachricht -------- >>> Betreff: [Lapackpp-devel] question of including lapack++ in my makefile >>> Von: Abraham Chang-Tsan Lu <cha...@cm...> >>> An: lap...@li... >>> Datum: 12.11.2011 00:18 >>> >>> >>> >>>> Dear Lapack++ Developer, >>>> >>>> >>>> >>>> >>>> I have some trouble in including lapack++ in my makefile. >>>> >>>> >>>> >>>> >>>> On my machine, Lapack++ is under the directory of >>>> /home/changtsl/lapackpp-2.5.4 >>>> and /home/changtsl/lapackpp_lib. >>>> >>>> >>>> I have attached my code, makefile, and the error message given in the >>>> terminal. The code is very short and only for testing. Would you >>>> please help me to solve the problem? Thank you very much. >>>> >>>> Sincerely, >>>> changtsan >>>> >>>> >>>> >>>> >>>> --------------------------------------------------------------------- >>>> -- >>>> -- >>>> ----- >>>> RSA(R) Conference 2012 >>>> Save $700 by Nov 18 >>>> Register now >>>> http://p.sf.net/sfu/rsa-sfdev2dev1 >>>> >>>> >>>> >>>> >>>> >>>> >>>> _______________________________________________ >>>> lapackpp-devel mailing list lap...@li... >>>> https://lists.sourceforge.net/lists/listinfo/lapackpp-devel >>> >>> >>> >>> >> >> >> >> > > > > |
From: Abraham Chang-T. L. <cha...@cm...> - 2011-11-16 17:34:50
|
Dear Dominik, I copy the whole file folder "lapackpp_lib" to the directory where main.exe is, but the same error message is shown. Do I have to change the path of lapackpp_lib in the makefile? Thank you. Sincerely, changtsan On Wed, November 16, 2011 11:28, Dee wrote: Dear changtsan, You link lapackpp-Library dynamically to your main.exe. This means everybody who wants to start main.exe needs to have the lapackpp-Lib somewhere in his execution path. The easiest way tol solve this is to copy the library in the same directory as the exe. Then the programm should execute fine. With regards Dominik -------- Original-Nachricht -------- Betreff: Re: [Lapackpp-devel] question of including lapack++ in my makefile Von: Abraham Chang-Tsan Lu <cha...@cm...> An: lap...@li... Datum: 16.11.2011 17:25 > Hi Dominik, > > > Thank you very much. I try to follow your indication, so now the content > of my makefile now is > > g++ -c -I/home/changtsl/lapackpp_lib/include/lapackpp main.cpp g++ > -L/home/changtsl/lapackpp_lib/lib -llapackpp main.o -o main.exe > > > I think the file "main.o" and "main.exe" are produced successfully. But > when I execut "main.exe", the error message shows > > [changtsl@cee-changtsl EIG]$ ./main.exe > ./main.exe: error while loading shared libraries: liblapackpp.so.14: > cannot open shared object file: No such file or directory > > What should I do then? Thank you very much. > > > Sincerely, > changtsan > > > > On Tue, November 15, 2011 16:04, Dee wrote: > Dear changtsan, > > > first: Please do not write directly to the responder but to the mailing > list so that everyone can read your further questions. (Usually you set the > responder as CC, if you wish to.) > > Concerning your question: It's better to link the library when building > the exe: > > g++ -L/home/changtsl/lapackpp_lib/lib -llapackpp main.o -o main.exe > > So you should delete the second g++-line in your makefile and change the > third to the one above. > > With regards > Dominik > > > -------- Original-Nachricht -------- > Betreff: Re: [Lapackpp-devel] question of including lapack++ in my > makefile Von: Abraham Chang-Tsan Lu <cha...@cm...> > An: Dee <de...@de...> > Datum: 14.11.2011 16:24 > > >> Hi Dominik, >> >> >> >> Thank you for your reply, and I am sorry to bother you again. I don't >> know much about makefile, so the questions I am going to ask below may >> be stupid. >> >> From the website you indicated, I see one line saying >> >> >> >> gcc -L/usr/local/lib -llapackpp foo.o >> >> Does the "lib" here refers to the "lib" under /lapackpp_lib? >> >> >> >> I have attached the updated makefile and error. >> >> >> >> Thank you very much. >> >> >> >> Sincerely, >> changtsan >> >> >> >> On Sat, November 12, 2011 02:18, Dee wrote: >> Hello, >> >> >> >> you forgot to link the Lapack-library in your Makefile. Please see >> chapter "Library Usage" on http://lapackpp.sourceforge.net/ >> >> >> >> With regards >> Dominik >> >> >> >> >> -------- Original-Nachricht -------- >> Betreff: [Lapackpp-devel] question of including lapack++ in my makefile >> Von: Abraham Chang-Tsan Lu <cha...@cm...> >> An: lap...@li... >> Datum: 12.11.2011 00:18 >> >> >> >>> Dear Lapack++ Developer, >>> >>> >>> >>> >>> I have some trouble in including lapack++ in my makefile. >>> >>> >>> >>> >>> On my machine, Lapack++ is under the directory of >>> /home/changtsl/lapackpp-2.5.4 >>> and /home/changtsl/lapackpp_lib. >>> >>> >>> I have attached my code, makefile, and the error message given in the >>> terminal. The code is very short and only for testing. Would you >>> please help me to solve the problem? Thank you very much. >>> >>> Sincerely, >>> changtsan >>> >>> >>> >>> >>> --------------------------------------------------------------------- >>> -- >>> -- >>> ----- >>> RSA(R) Conference 2012 >>> Save $700 by Nov 18 >>> Register now >>> http://p.sf.net/sfu/rsa-sfdev2dev1 >>> >>> >>> >>> >>> >>> >>> _______________________________________________ >>> lapackpp-devel mailing list lap...@li... >>> https://lists.sourceforge.net/lists/listinfo/lapackpp-devel >> >> >> >> > > > > -- Abraham Chang-Tsan Lu Civil and Environmental Engineering Carnegie Mellon University Pittsburgh, PA, 15213 |
From: Dee <de...@de...> - 2011-11-16 16:28:31
|
Dear changtsan, You link lapackpp-Library dynamically to your main.exe. This means everybody who wants to start main.exe needs to have the lapackpp-Lib somewhere in his execution path. The easiest way tol solve this is to copy the library in the same directory as the exe. Then the programm should execute fine. With regards Dominik -------- Original-Nachricht -------- Betreff: Re: [Lapackpp-devel] question of including lapack++ in my makefile Von: Abraham Chang-Tsan Lu <cha...@cm...> An: lap...@li... Datum: 16.11.2011 17:25 > Hi Dominik, > > Thank you very much. I try to follow your indication, so now the content > of my makefile now is > > g++ -c -I/home/changtsl/lapackpp_lib/include/lapackpp main.cpp > g++ -L/home/changtsl/lapackpp_lib/lib -llapackpp main.o -o main.exe > > I think the file "main.o" and "main.exe" are produced successfully. But > when I execut "main.exe", the error message shows > > [changtsl@cee-changtsl EIG]$ ./main.exe > ./main.exe: error while loading shared libraries: liblapackpp.so.14: > cannot open shared object file: No such file or directory > > What should I do then? Thank you very much. > > Sincerely, > changtsan > > > > On Tue, November 15, 2011 16:04, Dee wrote: > Dear changtsan, > > first: Please do not write directly to the responder but to the mailing > list so that everyone can read your further questions. (Usually you set > the responder as CC, if you wish to.) > > Concerning your question: It's better to link the library when building > the exe: > > g++ -L/home/changtsl/lapackpp_lib/lib -llapackpp main.o -o main.exe > > So you should delete the second g++-line in your makefile and change the > third to the one above. > > With regards > Dominik > > -------- Original-Nachricht -------- > Betreff: Re: [Lapackpp-devel] question of including lapack++ in my makefile > Von: Abraham Chang-Tsan Lu <cha...@cm...> > An: Dee <de...@de...> > Datum: 14.11.2011 16:24 > >> Hi Dominik, >> >> >> Thank you for your reply, and I am sorry to bother you again. I don't >> know much about makefile, so the questions I am going to ask below may be >> stupid. >> >> From the website you indicated, I see one line saying >> >> >> gcc -L/usr/local/lib -llapackpp foo.o >> >> Does the "lib" here refers to the "lib" under /lapackpp_lib? >> >> >> I have attached the updated makefile and error. >> >> >> Thank you very much. >> >> >> Sincerely, >> changtsan >> >> >> >> On Sat, November 12, 2011 02:18, Dee wrote: >> Hello, >> >> >> you forgot to link the Lapack-library in your Makefile. Please see chapter >> "Library Usage" on http://lapackpp.sourceforge.net/ >> >> >> With regards >> Dominik >> >> >> >> -------- Original-Nachricht -------- >> Betreff: [Lapackpp-devel] question of including lapack++ in my makefile >> Von: Abraham Chang-Tsan Lu <cha...@cm...> >> An: lap...@li... >> Datum: 12.11.2011 00:18 >> >> >>> Dear Lapack++ Developer, >>> >>> >>> >>> I have some trouble in including lapack++ in my makefile. >>> >>> >>> >>> On my machine, Lapack++ is under the directory of >>> /home/changtsl/lapackpp-2.5.4 >>> and /home/changtsl/lapackpp_lib. >>> >>> >>> I have attached my code, makefile, and the error message given in the >>> terminal. The code is very short and only for testing. Would you please >>> help me to solve the problem? Thank you very much. >>> >>> Sincerely, >>> changtsan >>> >>> >>> >>> >>> ----------------------------------------------------------------------- >>> -- >>> ----- >>> RSA(R) Conference 2012 >>> Save $700 by Nov 18 >>> Register now >>> http://p.sf.net/sfu/rsa-sfdev2dev1 >>> >>> >>> >>> >>> >>> _______________________________________________ >>> lapackpp-devel mailing list lap...@li... >>> https://lists.sourceforge.net/lists/listinfo/lapackpp-devel >> >> >> >> > > > > |
From: Abraham Chang-T. L. <cha...@cm...> - 2011-11-16 16:26:02
|
Hi Dominik, Thank you very much. I try to follow your indication, so now the content of my makefile now is g++ -c -I/home/changtsl/lapackpp_lib/include/lapackpp main.cpp g++ -L/home/changtsl/lapackpp_lib/lib -llapackpp main.o -o main.exe I think the file "main.o" and "main.exe" are produced successfully. But when I execut "main.exe", the error message shows [changtsl@cee-changtsl EIG]$ ./main.exe ./main.exe: error while loading shared libraries: liblapackpp.so.14: cannot open shared object file: No such file or directory What should I do then? Thank you very much. Sincerely, changtsan On Tue, November 15, 2011 16:04, Dee wrote: Dear changtsan, first: Please do not write directly to the responder but to the mailing list so that everyone can read your further questions. (Usually you set the responder as CC, if you wish to.) Concerning your question: It's better to link the library when building the exe: g++ -L/home/changtsl/lapackpp_lib/lib -llapackpp main.o -o main.exe So you should delete the second g++-line in your makefile and change the third to the one above. With regards Dominik -------- Original-Nachricht -------- Betreff: Re: [Lapackpp-devel] question of including lapack++ in my makefile Von: Abraham Chang-Tsan Lu <cha...@cm...> An: Dee <de...@de...> Datum: 14.11.2011 16:24 > Hi Dominik, > > > Thank you for your reply, and I am sorry to bother you again. I don't > know much about makefile, so the questions I am going to ask below may be > stupid. > > From the website you indicated, I see one line saying > > > gcc -L/usr/local/lib -llapackpp foo.o > > Does the "lib" here refers to the "lib" under /lapackpp_lib? > > > I have attached the updated makefile and error. > > > Thank you very much. > > > Sincerely, > changtsan > > > > On Sat, November 12, 2011 02:18, Dee wrote: > Hello, > > > you forgot to link the Lapack-library in your Makefile. Please see chapter > "Library Usage" on http://lapackpp.sourceforge.net/ > > > With regards > Dominik > > > > -------- Original-Nachricht -------- > Betreff: [Lapackpp-devel] question of including lapack++ in my makefile > Von: Abraham Chang-Tsan Lu <cha...@cm...> > An: lap...@li... > Datum: 12.11.2011 00:18 > > >> Dear Lapack++ Developer, >> >> >> >> I have some trouble in including lapack++ in my makefile. >> >> >> >> On my machine, Lapack++ is under the directory of >> /home/changtsl/lapackpp-2.5.4 >> and /home/changtsl/lapackpp_lib. >> >> >> I have attached my code, makefile, and the error message given in the >> terminal. The code is very short and only for testing. Would you please >> help me to solve the problem? Thank you very much. >> >> Sincerely, >> changtsan >> >> >> >> >> ----------------------------------------------------------------------- >> -- >> ----- >> RSA(R) Conference 2012 >> Save $700 by Nov 18 >> Register now >> http://p.sf.net/sfu/rsa-sfdev2dev1 >> >> >> >> >> >> _______________________________________________ >> lapackpp-devel mailing list lap...@li... >> https://lists.sourceforge.net/lists/listinfo/lapackpp-devel > > > > -- Abraham Chang-Tsan Lu Civil and Environmental Engineering Carnegie Mellon University Pittsburgh, PA, 15213 |
From: Dee <de...@de...> - 2011-11-15 21:04:29
|
Dear changtsan, first: Please do not write directly to the responder but to the mailing list so that everyone can read your further questions. (Usually you set the responder as CC, if you wish to.) Concerning your question: It's better to link the library when building the exe: g++ -L/home/changtsl/lapackpp_lib/lib -llapackpp main.o -o main.exe So you should delete the second g++-line in your makefile and change the third to the one above. With regards Dominik -------- Original-Nachricht -------- Betreff: Re: [Lapackpp-devel] question of including lapack++ in my makefile Von: Abraham Chang-Tsan Lu <cha...@cm...> An: Dee <de...@de...> Datum: 14.11.2011 16:24 > Hi Dominik, > > Thank you for your reply, and I am sorry to bother you again. I don't know > much about makefile, so the questions I am going to ask below may be > stupid. > > From the website you indicated, I see one line saying > > gcc -L/usr/local/lib -llapackpp foo.o > > Does the "lib" here refers to the "lib" under /lapackpp_lib? > > I have attached the updated makefile and error. > > Thank you very much. > > Sincerely, > changtsan > > > > On Sat, November 12, 2011 02:18, Dee wrote: > Hello, > > you forgot to link the Lapack-library in your Makefile. Please see > chapter "Library Usage" on http://lapackpp.sourceforge.net/ > > With regards > Dominik > > > -------- Original-Nachricht -------- > Betreff: [Lapackpp-devel] question of including lapack++ in my makefile > Von: Abraham Chang-Tsan Lu <cha...@cm...> > An: lap...@li... > Datum: 12.11.2011 00:18 > >> Dear Lapack++ Developer, >> >> >> I have some trouble in including lapack++ in my makefile. >> >> >> On my machine, Lapack++ is under the directory of >> /home/changtsl/lapackpp-2.5.4 >> and /home/changtsl/lapackpp_lib. >> >> >> I have attached my code, makefile, and the error message given in the >> terminal. The code is very short and only for testing. Would you please >> help me to solve the problem? Thank you very much. >> >> Sincerely, >> changtsan >> >> >> >> >> ------------------------------------------------------------------------- >> ----- >> RSA(R) Conference 2012 >> Save $700 by Nov 18 >> Register now >> http://p.sf.net/sfu/rsa-sfdev2dev1 >> >> >> >> >> _______________________________________________ >> lapackpp-devel mailing list lap...@li... >> https://lists.sourceforge.net/lists/listinfo/lapackpp-devel > > > > |