|
From: Mario de S. <ms...@fe...> - 2009-03-31 13:41:56
|
On Sunday 22 March 2009 06:13, takeshi ikeya wrote: > Hi Mario! > I tried 'make' in logic/iec/. > Thw error message is > main.cc: In function 'int main(int, char**)': > main.cc: 99: error: 'strcmp' was not declared iin this sope > make: *** [main.o] error > At this point, 'make' stopped, and main.o wasn't made. > So, I add '#include <string.h>' in main.cc. > This time, the first error disappeared, and main.o was created. > But next error concerning string operation occurs in generate_cc.cc. > That is > generate_cc.cc: 112: error: 'strcasecmp' was not declared iin this sope > > What is happening ? > > Ikeya Hi Ikeya, Sorry about the delay. Only now did I see your post. Regarding the Makefile.depend warnings, you can ignore them safely. They are related to the way we use 'make', and do not have any relation to the code itself. The strcasecmp() function is defined in the strings.h library. Please try adding #include <strings.h> to the generate_cc.cc and function_call_param_iterator.cc files. Cheers, Mario. |