Back to Forum | View unanswered posts | View active topics
Topic review - A small trouble while compiling singular |
Author |
Message |
|
|
Post subject: |
A small trouble while compiling singular |
|
|
Hello,
I had a small trouble while compiling Singular-3-0-2 with g++ 4.0.3:
gcc -O3 -w -fomit-frame-pointer -fPIC -I./h -I. -I/usr/local/Singular/ix86-Linux/include -DHAVE_CONFIG_H -c MP_Link.c MP_Link.c: In function ‘MP_EndMsgReset’: MP_Link.c:493: error: invalid lvalue in assignment MP_Link.c:494: error: syntax error before ‘}’ token MP_Link.c: In function ‘MP_InitMsg’: MP_Link.c:965: error: invalid lvalue in assignment MP_Link.c: In function ‘MP_SkipMsg’: MP_Link.c:1011: error: invalid lvalue in assignment make[1]: *** [MP_Link.o] Error 1
I solved it by changing line 988 of the file MP/MP.h:
Old code:
#define MP_ClearError(link) ((MP_Status_t) (link)->MP_errno = MP_Success)
Correction:
#define MP_ClearError(link) ((MP_Status_t) ((link)->MP_errno = MP_Success))
After that, the software compiled just fine, and appears to run correctly.
Sinisa
Hello,
I had a small trouble while compiling Singular-3-0-2 with g++ 4.0.3:
gcc -O3 -w -fomit-frame-pointer -fPIC -I./h -I. -I/usr/local/Singular/ix86-Linux/include -DHAVE_CONFIG_H -c MP_Link.c MP_Link.c: In function ‘MP_EndMsgReset’: MP_Link.c:493: error: invalid lvalue in assignment MP_Link.c:494: error: syntax error before ‘}’ token MP_Link.c: In function ‘MP_InitMsg’: MP_Link.c:965: error: invalid lvalue in assignment MP_Link.c: In function ‘MP_SkipMsg’: MP_Link.c:1011: error: invalid lvalue in assignment make[1]: *** [MP_Link.o] Error 1
I solved it by changing line 988 of the file MP/MP.h:
Old code:
#define MP_ClearError(link) ((MP_Status_t) (link)->MP_errno = MP_Success)
Correction:
#define MP_ClearError(link) ((MP_Status_t) ((link)->MP_errno = MP_Success))
After that, the software compiled just fine, and appears to run correctly.
Sinisa
|
|
|
|
Posted: Mon Dec 04, 2006 4:09 pm |
|
|
|
|
|
It is currently Fri May 13, 2022 10:56 am
|
|