Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix C++ compilation on newer compilers #342

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

rurban
Copy link

@rurban rurban commented Nov 2, 2024

e.g. needed for stp, which compiles it with C++ and -fpermissive

e.g. needed for stp, which compiles it with C++ and -fpermissive
@@ -243,10 +243,29 @@ static inline int Aig_WordFindFirstBit( unsigned uWord )
return -1;
}

ifdef __cplusplus
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You dropped this: #

@sterin
Copy link
Contributor

sterin commented Nov 10, 2024

I can't seem to reproduce any problems with the existing code on Ubuntu 22.04 with g++ 11.4 using

make ABC_USE_NAMESPACE=xxx 

Which by default compiles the code as C++ in a namespace xxx with -fpermissive. Could you be more specific on the problems you encounter and how to reproduce them?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants