G
geek
Hi all,
I am trying to create a global structure and want to use it in other
file.
Here is the file that contains the global structure.
typedef struct {
int a;
int b;
}test;
When I try to compile it with gcc I get linker error:
Undefined first referenced
symbol in file
main
/usr/global/lib/gcc-lib/sparc-sun-solaris2.5.1/2.95.2/crt1.o
ld: fatal: Symbol referencing errors. No output written to a.out
collect2: ld returned 1 exit status
Can somebody please help me with this.
Thanks in advance.
-Metrri
I am trying to create a global structure and want to use it in other
file.
Here is the file that contains the global structure.
typedef struct {
int a;
int b;
}test;
When I try to compile it with gcc I get linker error:
Undefined first referenced
symbol in file
main
/usr/global/lib/gcc-lib/sparc-sun-solaris2.5.1/2.95.2/crt1.o
ld: fatal: Symbol referencing errors. No output written to a.out
collect2: ld returned 1 exit status
Can somebody please help me with this.
Thanks in advance.
-Metrri