Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Clang fixes #713

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

Merged
merged 1 commit into from
Feb 27, 2012
Merged

Clang fixes #713

merged 1 commit into from
Feb 27, 2012

Conversation

mdboom
Copy link
Member

@mdboom mdboom commented Feb 23, 2012

This makes compilation finish when using OS-X Lion's clang compiler.

@astrofrog
Copy link
Contributor

Sorry for not replying before on the list (just realized that you had replied), the above fix works for me - thanks!

@astrofrog astrofrog mentioned this pull request Feb 27, 2012
mdboom added a commit that referenced this pull request Feb 27, 2012
@mdboom mdboom merged commit 7c72db9 into matplotlib:v1.1.x Feb 27, 2012
@rajeeja
Copy link

rajeeja commented May 19, 2012

Still getting the same error on Mac OSX 10.7 and XCode 4.3

Python 2.7.3 (default, May 19 2012, 14:23:28)
[GCC 4.2.1 Compatible Apple Clang 3.1 (tags/Apple/clang-318.0.58)] on darwin
Type "help", "copyright", "credits" or "license" for more information.

...
XX/cxxextensions.c -o build/temp.macosx-10.4-x86_64-2.7/CXX/cxxextensions.o
/usr/bin/clang -fno-strict-aliasing -Os -w -pipe -march=native -Qunused-arguments -fwrapv -DNDEBUG -g -fwrapv -O3 -Wall -DPY_ARRAY_UNIQUE_SYMBOL=MPL_ARRAY_API -DPYCXX_ISO_CPP_LIB=1 -I/usr/local/Cellar/python/2.7.3/lib/python2.7/site-packages/numpy/core/include -I. -I/usr/local/Cellar/python/2.7.3/lib/python2.7/site-packages/numpy/core/include -Isrc -Iagg24/include -I. -I/usr/local/Cellar/python/2.7.3/lib/python2.7/site-packages/numpy/core/include -I/usr/X11/include/freetype2 -I/usr/X11/include -I. -I/usr/local/Cellar/python/2.7.3/include/python2.7 -c src/backend_agg.cpp -o build/temp.macosx-10.4-x86_64-2.7/src/backend_agg.o
In file included from src/backend_agg.cpp:11:
In file included from src/_backend_agg.h:34:
agg24/include/agg_renderer_outline_aa.h:1368:45: error: binding of reference to type
'agg::line_profile_aa' to a value of type 'const agg::line_profile_aa' drops qualifiers
line_profile_aa& profile() { return *m_profile; }
^~~~~~~~~~
1 error generated.
error: command '/usr/bin/clang' failed with exit status 1

@rajeeja
Copy link

rajeeja commented May 19, 2012

Added the const and it works now...it's not modified in the pip or easyinstall....please update that, thanks !

@mdboom mdboom deleted the clang-fixes branch March 3, 2015 18:43
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