Tyler Palmer writes:
Hello.
I'm trying to compile Ciao on an SGI running Irix 6.5, but get the following error:
cc -O -DATOMGC -DTHREADS -DFOREIGN_FILES -DIRIX -Dmips -c -o prolog_tasks.o prolog_tasks.c "prolog_tasks.c", line 327: error(1133): expression must be a modifiable lvalue Thread_Create_GoalId(make_backtracking, ^
Hum. That is strange. I have just compiled 1.6p1 in an SGI (running Irix 6.2) and everything went smooth. I hope the different O.S. version does not make any difference: Thread_Create_GoalId is just a macro which calls a POSIX thread function. Just in case, you can try to wrap the macro between brackets, as shown below:
if (create_thread) { goal->action |= NEEDS_FREEING; { Thread_Create_GoalId(make_backtracking, goal, goal->thread_id, (THREAD_T)goal->thread_handle); } exec_result = TRUE; } else ...
Please do tell us if this solves the problem --- and also if it does not, and we'll try to find a workaround.
A note to the rest of the users: some of you have approached us asking for newer (beta) versions of Ciao (the development version is currently 1.7p23). We were slowed down by disk storage problems. We are now in a much better shape, and we hope to release a beta version in short. We'll send a message to the list with updates.
MCL & the Ciao Prolog Crew
________________________________________________________ Virtuosity is no big deal, if you don't mind practicing.