Hi Emmanuel, I saw the latest release of SCAMP 1.6.2, but when I run "make", I receive the following error:
cc -DHAVE_CONFIG_H -I. -I.. -D_REENTRANT -g -O2 -MT astrefcat.o -MD -MP -MF .deps/astrefcat.Tpo -c -o astrefcat.o astrefcat.c
astrefcat.c: In function 'save_astreffield':
astrefcat.c:1082: error: lvalue required as left operand of assignment
make[3]: *** [astrefcat.o] Error 1
Do you have any idea...??
Thanks a lot for the help.
After doing a bit of googling, it looks like you can't cast an assignment. I took out the (char*) from the line - i will try adding it back in in a seperate line - and it compiled that bit.
Though it's not the only time in the program that this occurs, so I will try and see if i can get the whole program to compile and i will post my list of changes.
ps. the source i used for the changes was
here
Yup all sorted now, just two changes documented:
src/astrefcat.c: 1082
(char *)objkeys[k].ptr += (char *)&objsample - (char *)&refsample; /* a trick */
to:
objkeys[k].ptr += (char *)&objsample - (char *)&refsample; /* a trick */
objkeys[k].ptr = (char*)objkeys[k].ptr;
src/catout.c: 97
(char *)key->ptr += (char *)&msample - (char *)&refmergedsample;
to:
key->ptr += (char *)&msample - (char *)&refmergedsample;
key->ptr = (char*)key->ptr;
Hope this is the right way to fix it, or at least ok!
Thanks guys, and sorry for the error. I had actually made a last minute change to the code to fix a warning given by the INTEL compiler, but I hadn't noticed that gcc wouldn't accept that.
I commited a new version and swapped the previous version of the source archive with the correct one (still called V1.6.2).
Thanks again!
- Emmanuel.
Hi Emmanuel (and srwalker101), many thanks for the help.