Problem compiling it on OSX
ToasterKTN opened this issue · comments
make all
c++ -g -c main.cpp -o main.o
main.cpp:363:18: error: reference to 'align' is ambiguous
ops.push_back(align);
^
main.cpp:20:77: note: candidate found by name lookup is 'operations::align'
enum operations{none,xflip, yflip, xyexchange, cw,ccw,rot,shift,scale,knive,align,killN,parameterize,overlay,makeabsolut,copies,comment,zxtilt,zytilt,alength};
^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/memory:5431:7: note: candidate found by name lookup is
'std::__1::align'
void* align(size_t __align, size_t __sz, void*& __ptr, size_t& __space);
^
main.cpp:549:10: error: reference to 'align' is ambiguous
if(op==align) //align is tranfsered into a shift operation
^
main.cpp:20:77: note: candidate found by name lookup is 'operations::align'
enum operations{none,xflip, yflip, xyexchange, cw,ccw,rot,shift,scale,knive,align,killN,parameterize,overlay,makeabsolut,copies,comment,zxtilt,zytilt,alength};
^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/memory:5431:7: note: candidate found by name lookup is
'std::__1::align'
void* align(size_t __align, size_t __sz, void*& __ptr, size_t& __space);
^
2 errors generated.
make: *** [main.o] Error 1
Maybe this is a "simple" Thing to fix, but i don't know how :-X
can you please give me the output of
c++ --version
Bernhard
On Mon, Jan 13, 2014 at 2:21 PM, Thomas Bucher notifications@github.comwrote:
make all
c++ -g -c main.cpp -o main.o
main.cpp:363:18: error: reference to 'align' is ambiguous
ops.push_back(align);
^
main.cpp:20:77: note: candidate found by name lookup is 'operations::align'
enum operations{none,xflip, yflip, xyexchange, cw,ccw,rot,shift,scale,knive,align,killN,parameterize,overlay,makeabsolut,copies,comment,zxtilt,zytilt,alength};
^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/memory:5431:7: note: candidate found by name lookup is
'std::__1::align'
void* align(size_t __align, size_t _sz, void& __ptr, size_t& __space);
^
main.cpp:549:10: error: reference to 'align' is ambiguous
if(op==align) //align is tranfsered into a shift operation
^
main.cpp:20:77: note: candidate found by name lookup is 'operations::align'
enum operations{none,xflip, yflip, xyexchange, cw,ccw,rot,shift,scale,knive,align,killN,parameterize,overlay,makeabsolut,copies,comment,zxtilt,zytilt,alength};
^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/memory:5431:7: note: candidate found by name lookup is
'std::_1::align'
void align(size_t __align, size_t _sz, void& __ptr, size_t& __space);
^
2 errors generated.
make: *_* [main.o] Error 1Maybe this is a "simple" Thing to fix, but i don't know how :-X
—
Reply to this email directly or view it on GitHubhttps://github.com//issues/1
.
Thomass-iMac:grecode thomas$ c++ --version
Apple LLVM version 5.0 (clang-500.2.79) (based on LLVM 3.3svn)
Target: x86_64-apple-darwin13.0.0
Thread model: posix
If you need more informations, let me know. Thank you.
what you can for sure do:
replace all "align" to "realign"
that should do the trick. But its something I have not experienced on my
platform yet.
Bernhard
On Mon, Jan 13, 2014 at 5:32 PM, Thomas Bucher notifications@github.comwrote:
—
Reply to this email directly or view it on GitHubhttps://github.com//issues/1
.
Hi Bernhard
Thank you for your fast response.
I replaced all the align with realign. This works.
Thank you!