@JLBorges the problem is not with Clang, mostly it's just me (I'm really blunt sometimes and I'm very sorry about that) and possibly it's my computer's fault too.
I re-installed everything. (downloaded new files, in case my last ones were broken)
Code::Blocks is in C:\CodeBlocks
MinGW is in C:\MinGW32
Clang is in C:\Clang
(I managed to set up PDCurses in C:\PDCurses-3.4 as well ^_^)
Clang still doesn't work, giving me the same error message I described before.
That's it, I'm moving on to Boost now.
I downloaded Boost 1.53.0 from boost.org and I tried setting it up, well Boost doesn't like me either.
I get something about STACK ITERATION OVERLOAD in cmd...
I think this laptop isn't capable of building Boost.
I managed to set up Clang on Linux and it works, but gives me errors when trying to compile the example.
vidminas@vidmino-ThinkPad-R50e:~/Desktop$ clang++ -std=c++11 -o multi main.cpp
In file included from main.cpp:3:
In file included from /usr/bin/../lib/gcc/i686-linux-gnu/4.6/../../../../include/c++/4.6/thread:37:
/usr/bin/../lib/gcc/i686-linux-gnu/4.6/../../../../include/c++/4.6/chrono:534:6: error:
no matching constructor for initialization of 'duration' (aka
'std::chrono::duration<long long, std::ratio<1, 1000000> >')
: __d(__t.time_since_epoch())
^ ~~~~~~~~~~~~~~~~~~~~~~
/usr/bin/../lib/gcc/i686-linux-gnu/4.6/../../../../include/c++/4.6/condition_variable:105:42: note:
in instantiation of function template specialization
'std::chrono::time_point<std::chrono::system_clock,
std::chrono::duration<long long, std::ratio<1, 1000000> >
>::time_point<std::chrono::duration<long long, std::ratio<1, 1000000000> >
>' requested here
const __clock_t::time_point __s_atime = __s_entry + __delta;
^
/usr/bin/../lib/gcc/i686-linux-gnu/4.6/../../../../include/c++/4.6/chrono:233:12: note:
candidate constructor not viable: no known conversion from
'duration<[...], ratio<[...], 1000000000>>' to 'duration<[...],
ratio<[...], 1000000>>' for 1st argument
constexpr duration(const duration&) = default;
^
/usr/bin/../lib/gcc/i686-linux-gnu/4.6/../../../../include/c++/4.6/chrono:239:23: note:
candidate template ignored: couldn't infer template argument ''
constexpr explicit duration(const _Rep2& __rep)
^
/usr/bin/../lib/gcc/i686-linux-gnu/4.6/../../../../include/c++/4.6/chrono:246:14: note:
candidate template ignored: couldn't infer template argument ''
constexpr duration(const duration<_Rep2, _Period2>& __d)
^
/usr/bin/../lib/gcc/i686-linux-gnu/4.6/../../../../include/c++/4.6/chrono:231:12: note:
candidate constructor not viable: requires 0 arguments, but 1 was provided
constexpr duration() : __r() { }
^
1 error generated.
|
I'll try this on another computer running Windows XP.
And
LB, thank you so much for your time.