What C(++) compiler(s) do you use?

Pages: 12
Maybe it is going to be updated/it is being updated because of C++11. Or maybe not. Who knows.


It is... but it's called Orwell Dev-C++ now.
Of course, some people are disappointed by the fact that it's the unofficial version, as if such a thing exists in the free software world -- especially when the original official authors stop maintaining it.
Wow, this thread is, now, pretty much a Dev C++ thread (=P). Well, thanks, guys! I never knew how outdated what I was using was. In fact, I'm not even using the latest version of Dev C++. I'm using Version 4.9.9.2 (a 1991 version).
I like QtCreator as an IDE


Just tried it: how do you set up the linker? I am getting trouble with
 
#include <pthread.h> 


.../trunk/Debug/../calculator.cpp:212: error: undefined reference to `pthread_create'

Tried playing with the project settings, but I couldn't figure it out.
[Edit:] It also gives me: warning: unused parameter. How can I turn off this warning flag?
Last edited on
I'm guessing you're using g++ as your compiler.

If you need to link with a library, then you can add some linking flags to your LIBS variable in your .pro file with the line... That's the hard way that *I* use. There's a much simpler way here: http://doc.qt.nokia.com/qtcreator-2.5/creator-project-qmake-libraries.html

As for turning off warnings, you could add flags to QMAKE_CXXFLAGS_WARN_OFF. I think the flag you're interested in would be -Wnouninitialized.

Have fun!

-Albatross
Last edited on
To spare tition having to dig up the man page, pthread library is sometimes (but by no means always) linked with the switch -pthread on the command line call (not -lpthread; it's an odd one, for historical reasons).
Last edited on
It's sometimes -pthreads.
Topic archived. No new replies allowed.
Pages: 12