This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Linking Problems and undefined references to standart functions


Hi Sonya,

On Tue, Apr 30, 2013 at 12:48 PM, Sonya Blade  wrote:
> gfortran command to compile the code is as follow :
>
> gfortran.exe  -o bin\Debug\Petsc_Fortran.exe obj\Debug\main.o    C:\Users\....\Downloads\petsc-3.3-p6\arch-mswin-c-debug\lib\libpetsc.a C:\cygwin\lib\libX11.a C:\Users\mehmet\Downloads\libblas.lib C:\Users\.....\Downloads\liblapack.lib C:\Users\....\Downloads\liblapacke.lib C:\cygwin\lib\libcygwin.a
> Output size is 16.90 MB

I'm not familiar with gfortran, but it seems to me that you are mixing
Cygwin (libpetsc.a, libX11.a, libcygwin.a) and non-Cygwin libraries
(libblas.lib, liblapack.lib). This will not work.
Are you really using Cygwin's gfortran?

Csaba
-- 
GCS a+ e++ d- C++ ULS$ L+$ !E- W++ P+++$ w++$ tv+ b++ DI D++ 5++
The Tao of math: The numbers you can count are not the real numbers.
Life is complex, with real and imaginary parts.
"Ok, it boots. Which means it must be bug-free and perfect. " -- Linus Torvalds
"People disagree with me. I just ignore them." -- Linus Torvalds

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]