When I try to run `make` again after setting RUN_TIME to 1 in setup.h, I get:
gcc -o clips main.o -L. -lclips -lm /usr/bin/ld: main.o: in function `main': main.c:(.text.startup+0x6): undefined reference to `InitCImage_1' collect2: error: ld returned 1 exit status make: *** [makefile:94: clips] Error 1
CLIPS Support
unread,
Apr 10, 2024, 8:00:56 PMApr 10
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to CLIPSESG
If you use make to build the run time executable, you need to add the files generated by constructs-to-c to the make file. When I create run time executables for testing, I just create them using "gcc -o clips -DRUN_TIME=1 *.c"
Ryan Johnston
unread,
Apr 11, 2024, 10:24:04 AMApr 11
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to CLIPSESG
Thanks, Gary, that seems to have done it. I added the following to my makefile for convenience: