From mboxrd@z Thu Jan 1 00:00:00 1970 From: Claudiu BRASOVEAN To: gcc-help@gcc.gnu.org Subject: need help Date: Tue, 02 May 2000 09:31:00 -0000 Message-id: <390F02F0.F265AF25@rdscj.ro> X-SW-Source: 2000-05/msg00001.html Hello.... Please excuse my childish question but I am new in the field and I am lost due to a very simple problem. Here is my problem: Main program: //main.c #include #include "funct.h" void main(void){ printf("Calling external function\n"); foo(3); } //////////////////// //funct.h ..... extern void foo(int); ..... //////////////////// //funct.c #include #include "funct.h" .......... void foo(int x){printf("My parameter was:%d\n",x);}; .................. Here is what i get from gcc (in fact is ld, isn't it?) /tmp/ccahK6eu1.o: In function `main': /tmp/ccahK6eu1.o(.text+0x29): undefined reference to `foo' I do not understand why ld can not resolve symbol. The compiling phase works fine I do have a SuSE 6.3 Linux distribution whith gcc-2.7.2.3-63 on it. Thank you in advance. Â