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 - Singular defines macros generating conflicts in Sagemath
Author Message
  Post subject:  Re: Singular defines macros generating conflicts in Sagemath  Reply with quote
IntegerDomain can be less public, that should solve this problem:
see https://github.com/Singular/Singular/commit/18bb792edcc6d3f65af0111f93ed61118123ffd1
Post Posted: Mon Dec 06, 2021 5:26 pm
  Post subject:  Singular defines macros generating conflicts in Sagemath  Reply with quote
Hi,
In SageMath, Singular generates the file factory.h which defines the macro #define IntegerDomain 1.
This conflict with Givaro's code using a class IntegerDomain with the Givaro namespace.

See the discussion here on sage-devel (sorry I can't post a link)


Would it be possible to avoid leaving C macros defined in the precompiler namespace, this is likely to generate such conflicts, especially with natural names in camel case like in this case.
- a first option could be to undefine the macro after it has been used
- or to rename the macro with a Singular specific prefix, like __SINGULAR

Thanks for your help.
Best.
Clément
Post Posted: Mon Dec 06, 2021 4:50 pm


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