Post new topic Reply to topic  [ 1 post ] 
Author Message
 Post subject: A small trouble while compiling singular
PostPosted: Mon Dec 04, 2006 4:09 pm 

Joined: Mon Dec 04, 2006 3:56 pm
Posts: 3
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


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

It is currently Fri May 13, 2022 10:59 am
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group