This is the mail archive of the
cygwin
mailing list for the Cygwin project.
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 08:18:26 +0100
- Subject: Linking Problems and undefined references to standart functions
Dear All,
I tried to use the Petsc library, compiled without any error during cygwin terminalcompilation,
with gfortran (which works in Code Block editor) and tried to run some of the examples which
flawlessly works in C but not in gfortran.
Although I used and set the same library in linking, headers and search as is in C when it
comes to gfortran it raises the following errors. I don't think that its related to the Petsc
instead due to some wrong configuration I get such and error.
Does any body can help?
cygdrive/c/Users/...../Downloads/petsc-3.3-p6/src/sys/ftn-custom/zstart.c:262: undefined reference to `__getreent'
/cygdrive/c/Users/...../Downloads/petsc-3.3-p6/src/sys/ftn-custom/zstart.c:263: undefined reference to `__getreent'
C:/Users/...../Downloads/petsc-3.3-p6/arch-mswin-c-debug/lib/libpetsc.a(mal.c.o): In function `PetscMallocAlign':
/cygdrive/c/Users/...../Downloads/petsc-3.3-p6/src/sys/memory/mal.c:30: undefined reference to `memalign'
C:/Users/...../Downloads/petsc-3.3-p6/arch-mswin-c-debug/lib/libpetsc.a(pinit.c.o): In function `PetscInitialize':
/cygdrive/c/Users/...../Downloads/petsc-3.3-p6/src/sys/objects/pinit.c:650: undefined reference to `__getreent'
/cygdrive/c/Users/...../Downloads/petsc-3.3-p6/src/sys/objects/pinit.c:651: undefined reference to `__getreent'
C:/Users/...../Downloads/petsc-3.3-p6/arch-mswin-c-debug/lib/libpetsc.a(pinit.c.o): In function `PetscFinalize':
/cygdrive/c/Users/...../Downloads/petsc-3.3-p6/src/sys/objects/pinit.c:1002: undefined reference to `__getreent'
/cygdrive/c/Users/...../Downloads/petsc-3.3-p6/src/sys/objects/pinit.c:1130: undefined reference to `__getreent'
/cygdrive/c/Users/...../Downloads/petsc-3.3-p6/src/sys/objects/pinit.c:1151: undefined reference to `__getreent'
C:/Users/...../Downloads/petsc-3.3-p6/arch-mswin-c-debug/lib/libpetsc.a(mprint.c.o): In function `PetscSynchronizedFGets':
/cygdrive/c/Users/...../Downloads/petsc-3.3-p6/src/sys/fileio/mprint.c:661: undefined reference to `__errno'
C:/Users/...../Downloads/petsc-3.3-p6/arch-mswin-c-debug/lib/libpetsc.a(options.c.o): In function `PetscOptionsValidKey':
/cygdrive/c/Users/...../Downloads/petsc-3.3-p6/src/sys/objects/options.c:256: undefined reference to `_imp____ctype_ptr__'
/cygdrive/c/Users/...../Downloads/petsc-3.3-p6/src/sys/objects/options.c:257: undefined reference to `_imp____ctype_ptr__'
C:/Users/...../Downloads/petsc-3.3-p6/arch-mswin-c-debug/lib/libpetsc.a(options.c.o): In function `PetscOptionsInsert':
/cygdrive/c/Users/...../Downloads/petsc-3.3-p6/src/sys/objects/options.c:599: undefined reference to `__getreent'