quick question about linking Fortran and C
- From: otto.pivner@xxxxxxxxx
- Date: Fri, 17 Aug 2007 13:48:29 -0000
Hello,
The gist of my problem is that when I compile testc.c
int
MAIN__( int argc, char* argv[] )
{printf("argc is %i", argc);
return(0);}
with icc -c testc.c
and link with
ifort -o test testc.o
I get garbage for argc and a bad address for argv. This works fine
with gfortran, but g77 and ifort both give problems.
Any advice is appreciated; many thanks in advance.
.
- Follow-Ups:
- Re: quick question about linking Fortran and C
- From: Gordon Sande
- Re: quick question about linking Fortran and C
- From: Arjen Markus
- Re: quick question about linking Fortran and C
- Prev by Date: Re: Fun with allocatables. Is this legal code?
- Next by Date: Re: quick question about linking Fortran and C
- Previous by thread: avoiding out of bounds errors
- Next by thread: Re: quick question about linking Fortran and C
- Index(es):
Relevant Pages
|
|