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

rTorrent fails to build with clang #14

Closed
gardnermj opened this issue Dec 13, 2011 · 3 comments
Closed

rTorrent fails to build with clang #14

gardnermj opened this issue Dec 13, 2011 · 3 comments

Comments

@gardnermj
Copy link

rTorrent 0.9.0 fails to build with clang on Mac OS X 10.7:

/Developer/usr/bin/clang++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../..  -I/opt/local/include  -pipe -O2 -arch x86_64 -DNDEBUG -I/opt/local/include/sigc++-2.0 -I/opt/local/lib/sigc++-2.0/include   -I/opt/local/include   -I/opt/local/include   -MT window_http_queue.o -MD -MP -MF .deps/window_http_queue.Tpo -c -o window_http_queue.o window_http_queue.cc
window_file_list.cc:126:19: error: variable length array of non-POD element type 'iterator' (aka 'torrent::FileListIterator')
  iterator entries[m_canvas->height() - 1];
                  ^
1 error generated.
@rakshasa
Copy link
Owner

The iterator in this instance should be a POD under C++11, but not C++03. There's a 'c++11' branch of rtorrent you could try, with:

CXX_FLAGS="-Wall -O2 -std=gnu++0x"
or
CXX_FLAGS="-Wall -O2 -std=c++0x"

@rakshasa
Copy link
Owner

I just merged C++11 compatibility changes to master, if you could try to compile it under gnu++11 (using '-std=gnu++0x') it should/could work.

In any case I'll test it out with clang once it finishes compiling.

@rakshasa
Copy link
Owner

Everything should compile with clang now.

@dishather dishather mentioned this issue Aug 9, 2014
This was referenced Sep 3, 2014
rakshasa pushed a commit that referenced this issue Jun 11, 2018
rakshasa pushed a commit that referenced this issue Jun 11, 2018
rakshasa pushed a commit that referenced this issue Jun 11, 2018
KopfKrieg pushed a commit to KopfKrieg/rtorrent that referenced this issue Mar 23, 2023
KopfKrieg pushed a commit to KopfKrieg/rtorrent that referenced this issue Mar 23, 2023
KopfKrieg pushed a commit to KopfKrieg/rtorrent that referenced this issue Mar 23, 2023
KopfKrieg pushed a commit to KopfKrieg/rtorrent that referenced this issue Mar 23, 2023
KopfKrieg pushed a commit to KopfKrieg/rtorrent that referenced this issue Mar 23, 2023
KopfKrieg pushed a commit to KopfKrieg/rtorrent that referenced this issue Mar 23, 2023
KopfKrieg pushed a commit to KopfKrieg/rtorrent that referenced this issue Mar 23, 2023
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

No branches or pull requests

2 participants