Originally Posted by
mimi1981
I included the function that I pass as an argument to the fortran function in the c code. For the rest the problem is similar to the previous threads.
I compile like that :
gcc -c test2.c
ifort -c pseudoLMQN.f
gcc test2.c pseudoLMQN.o
and I get the following errors :
/usr/bin/ld: AVERTISSEMENT: architecture i386 du fichier d'entrée « pseudoLMQN.o » est incompatible avec la sortie i386:x86-64
test2.o(.text+0x100): In function `main':
: undefined reference to `pseudoLMQN_'
collect2: ld a retourné 1 code d'état d'exécution
Concerning the errors in french, it is all greek to me so I cannot really translate it. Sorry about that.
But I think there is still a problem with the way I link the two programs.
Any ideas ??
Thanks a lot.