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


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. 		 	   		  

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