Post a reply
Username:
Note:If not registered, provide any username. For more comfort, register here.
Subject:
Message body:
Enter your message here, it may contain no more than 60000 characters. 

Smilies
:D :) :( :o :shock: :? 8) :lol: :x :P :oops: :cry: :evil: :twisted: :roll: :wink: :!: :?: :idea: :arrow: :| :mrgreen:
Font size:
Font colour
Options:
BBCode is ON
[img] is ON
[flash] is OFF
[url] is ON
Smilies are ON
Disable BBCode
Disable smilies
Do not automatically parse URLs
Confirmation of post
To prevent automated posts the board requires you to enter a confirmation code. The code is displayed in the image you should see below. If you are visually impaired or cannot otherwise read this code please contact the %sBoard Administrator%s.
Confirmation code:
Enter the code exactly as it appears. All letters are case insensitive, there is no zero.
   

Topic review - A small trouble while compiling singular
Author Message
  Post subject:  A small trouble while compiling singular  Reply with quote
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
Post Posted: Mon Dec 04, 2006 4:09 pm


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