This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: Linking Problems and undefined references to standart functions
- From: Sonya Blade <sonyablade2010 at hotmail dot com>
- To: "cygwin at cygwin dot com" <cygwin at cygwin dot com>
- Date: Tue, 30 Apr 2013 11:48:12 +0100
- Subject: Re: Linking Problems and undefined references to standart functions
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
One side note is that: After googling for a while it revealed that I
should add the libcygwin.a to the linker search paths, after adding
this compiler stops the complaints and application compiles but this
time raises the segmentation fault. Which I believe is unallocated
memory reference at the PetscInitialize.
I'm really suprised by that and I don't have any other option to try .
Your guidance will be appreciated.