A
Andy
Hello Fellows,
When I compiled my source code using make. It dumped out these error
msgs:
-------------------------------------------------------------------------------------------
gcc -O2 -g -Wall -fmessage-length=0 -c -o loadgraph.o loadgraph.c
gcc -O2 -g -Wall -fmessage-length=0 -c -o lib.o lib.c
gcc -O2 -g -Wall -fmessage-length=0 -c -o hashtbl.o hashtbl.c
gcc -O2 -g -Wall -fmessage-length=0 -c -o search.o search.c
gcc -O2 -g -Wall -fmessage-length=0 -c -o strhash.o strhash.c
gcc -O2 -g -Wall -fmessage-length=0 -c -o shingle.o shingle.c
In file included from heap.h:10,
from lib.h:12,
from shingle.h:12,
from shingle.c:1:
loadgraph.h:24: error: expected '=', ',', ';', 'asm' or
'__attribute__' before '*' token
make: *** [shingle.o] Error 1
-------------------------------------------------------------------------------------------
---------------------------------------<loadgraph.h>
......
23 extern char **n2gidHash;
24 extern SGL *gFSgl;
25 extern int gN;
26 extern int gC;
---------------------------------------
I guess it should be scope problem, but I have no clue.... I had this
kind of problem before. All I did is moving the functions around, then
it worked.
I am wondering where should I start to debug this kind of problem?
Thanks in advance!
~Andy .W
When I compiled my source code using make. It dumped out these error
msgs:
-------------------------------------------------------------------------------------------
gcc -O2 -g -Wall -fmessage-length=0 -c -o loadgraph.o loadgraph.c
gcc -O2 -g -Wall -fmessage-length=0 -c -o lib.o lib.c
gcc -O2 -g -Wall -fmessage-length=0 -c -o hashtbl.o hashtbl.c
gcc -O2 -g -Wall -fmessage-length=0 -c -o search.o search.c
gcc -O2 -g -Wall -fmessage-length=0 -c -o strhash.o strhash.c
gcc -O2 -g -Wall -fmessage-length=0 -c -o shingle.o shingle.c
In file included from heap.h:10,
from lib.h:12,
from shingle.h:12,
from shingle.c:1:
loadgraph.h:24: error: expected '=', ',', ';', 'asm' or
'__attribute__' before '*' token
make: *** [shingle.o] Error 1
-------------------------------------------------------------------------------------------
---------------------------------------<loadgraph.h>
......
23 extern char **n2gidHash;
24 extern SGL *gFSgl;
25 extern int gN;
26 extern int gC;
---------------------------------------
I guess it should be scope problem, but I have no clue.... I had this
kind of problem before. All I did is moving the functions around, then
it worked.
I am wondering where should I start to debug this kind of problem?
Thanks in advance!
~Andy .W