skiplist icon indicating copy to clipboard operation
skiplist copied to clipboard

pragma mark on gcc 11.4.0

Open 13MaxG opened this issue 2 years ago • 0 comments

When running pip install orderedstructs I got

In file included from src/cpp/SkipList.h:546,
from src/cpp/SkipList.cpp:15:
src/cpp/Node.h:47: error: ignoring ‘#pragma mark ’ [-Werror=unknown-pragmas]
47 | #pragma mark -
| compilation terminated due to -Wfatal-errors.

on my Ubuntu with gcc 11.4.0

Quick workaround was to

pip install orderedstructs --no-clean --verbose 
cd /tmp/pip-install-2trguabw/orderedstructs_9e35897d0af3405b8af47356cb93a4e4/
vi setup.py  
python setup.py bdist_wheel
python setup.py install

Where these two lines are removed from setup.py

    '-Werror',
    '-Wfatal-errors',

13MaxG avatar Nov 02 '23 20:11 13MaxG