From: John C. <jo...@we...> - 2007-12-09 00:00:43
|
I borrowed liberally from Rildo's test program tgui01 and associated files. I copied tgui02.c and renamed it bridge.c The only difference in the two files is 53c53 < int testgui02(char *data, int *size, char *scriptn) { --- > int bridge(char *data, int *size, char *scriptn) { The reference in the COBOL program is CALL "bridge" USING SITE-INFO SITE-INFO-SIZE SCREEN-NAME The script that serves the purpose of a Makefile reads: ------------------------------ htcobol -c -P -F -I. led003.cbl gcc -g -I/usr/local/include bridge.o -c bridge.c gcc -g -o led003 led003.o bridge.o -lhtcobol -lm -ltcl -ltk ----------------------------------------- The error message I get is ----------------------------------- bridge.c: In function 'bridge': bridge.c:58: warning: incompatible implicit declaration of built-in function 'memmove' bridge.c:75: warning: assignment discards qualifiers from pointer target type bridge.c:77: warning: incompatible implicit declaration of built-in function 'strlen' gcc: bridge.o: linker input file unused because linking not done ------------------------------------- Can anyone show me the error of my ways? John Culleton |