Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.c++ > #37143 > unrolled thread
| Started by | Doug Mika <dougmmika@gmail.com> |
|---|---|
| First post | 2015-07-17 09:56 -0700 |
| Last post | 2015-07-18 11:20 +1200 |
| Articles | 8 — 4 participants |
Back to article view | Back to comp.lang.c++
tutorialspoint codinground down on and off. Doug Mika <dougmmika@gmail.com> - 2015-07-17 09:56 -0700
Re: tutorialspoint codinground down on and off. Öö Tiib <ootiib@hot.ee> - 2015-07-17 10:31 -0700
Re: tutorialspoint codinground down on and off. Doug Mika <dougmmika@gmail.com> - 2015-07-17 10:53 -0700
Re: tutorialspoint codinground down on and off. Öö Tiib <ootiib@hot.ee> - 2015-07-17 11:25 -0700
Re: tutorialspoint codinground down on and off. "K. Frank" <kfrank29.c@gmail.com> - 2015-07-17 13:31 -0700
Re: tutorialspoint codinground down on and off. Doug Mika <dougmmika@gmail.com> - 2015-07-17 12:38 -0700
Re: tutorialspoint codinground down on and off. Öö Tiib <ootiib@hot.ee> - 2015-07-18 04:23 -0700
Re: tutorialspoint codinground down on and off. Ian Collins <ian-news@hotmail.com> - 2015-07-18 11:20 +1200
| From | Doug Mika <dougmmika@gmail.com> |
|---|---|
| Date | 2015-07-17 09:56 -0700 |
| Subject | tutorialspoint codinground down on and off. |
| Message-ID | <6e12acde-aaef-4017-8d4a-3b25caa20f2c@googlegroups.com> |
Hi I'm using the online version of a C++11 IDE at tutorialspoint. It however is constantly down and unavailable for the last 3 days at least. Does anyone know of another good online C++11 IDE that supports threads? Thanks Doug
[toc] | [next] | [standalone]
| From | Öö Tiib <ootiib@hot.ee> |
|---|---|
| Date | 2015-07-17 10:31 -0700 |
| Message-ID | <a9f20932-e388-48ce-a14f-ed402dda6934@googlegroups.com> |
| In reply to | #37143 |
On Friday, 17 July 2015 19:56:54 UTC+3, Doug Mika wrote: > I'm using the online version of a C++11 IDE at tutorialspoint. It however is > constantly down and unavailable for the last 3 days at least. Does anyone > know of another good online C++11 IDE that supports threads? Can you elaborate why you do that? Why not to put your code projects into online repos (like github) and to use local IDE? Every IDE I've ever touched (NetBeans, QtCreator, Eclipse, Visual Studio, XCode etc.) are far better than those online IDEs.
[toc] | [prev] | [next] | [standalone]
| From | Doug Mika <dougmmika@gmail.com> |
|---|---|
| Date | 2015-07-17 10:53 -0700 |
| Message-ID | <d731d6e2-e288-4790-95b1-6030092611d7@googlegroups.com> |
| In reply to | #37145 |
On Friday, July 17, 2015 at 12:32:15 PM UTC-5, Öö Tiib wrote: > On Friday, 17 July 2015 19:56:54 UTC+3, Doug Mika wrote: > > I'm using the online version of a C++11 IDE at tutorialspoint. It however is > > constantly down and unavailable for the last 3 days at least. Does anyone > > know of another good online C++11 IDE that supports threads? > > Can you elaborate why you do that? > Why not to put your code projects into online repos (like github) and to > use local IDE? > Every IDE I've ever touched (NetBeans, QtCreator, Eclipse, Visual Studio, > XCode etc.) are far better than those online IDEs. I have NetBeans with MinGW installed, and I have not been able to figure out how to get threads to work on it...for a while now. Tutorialspoint IDE allowed for threading with merely the -pthreads tag.
[toc] | [prev] | [next] | [standalone]
| From | Öö Tiib <ootiib@hot.ee> |
|---|---|
| Date | 2015-07-17 11:25 -0700 |
| Message-ID | <6ab37063-41fb-4bf0-97f4-056535c685fb@googlegroups.com> |
| In reply to | #37146 |
On Friday, 17 July 2015 20:54:00 UTC+3, Doug Mika wrote: > On Friday, July 17, 2015 at 12:32:15 PM UTC-5, Öö Tiib wrote: > > On Friday, 17 July 2015 19:56:54 UTC+3, Doug Mika wrote: > > > I'm using the online version of a C++11 IDE at tutorialspoint. It however is > > > constantly down and unavailable for the last 3 days at least. Does anyone > > > know of another good online C++11 IDE that supports threads? > > > > Can you elaborate why you do that? > > Why not to put your code projects into online repos (like github) and to > > use local IDE? > > Every IDE I've ever touched (NetBeans, QtCreator, Eclipse, Visual Studio, > > XCode etc.) are far better than those online IDEs. > > I have NetBeans with MinGW installed, and I have not been able to figure out how to get threads to work on it...for a while now. Tutorialspoint IDE allowed for threading with merely the -pthreads tag. Not sure what the trick is with you. If to select pthread from the mingw-w64 installer then threads work out of the box. Hmm ... perhaps it is because you use win32? Last 6 years it has been quite unlikely to buy new computer that is incapable of running 64 bit operating system. If you for whatever reason use mingw-w32 then perhaps you need to take std::thread and sync primitives implementation for it from somewhere. That looks good: https://github.com/meganz/mingw-std-threads
[toc] | [prev] | [next] | [standalone]
| From | "K. Frank" <kfrank29.c@gmail.com> |
|---|---|
| Date | 2015-07-17 13:31 -0700 |
| Message-ID | <822b2923-add8-4417-a3f8-02ea88d118a2@googlegroups.com> |
| In reply to | #37149 |
Hello Doug (and Öö)! On Friday, July 17, 2015 at 2:26:00 PM UTC-4, Öö Tiib wrote: > On Friday, 17 July 2015 20:54:00 UTC+3, Doug Mika wrote: > > ... > > I have NetBeans with MinGW installed, and I have not been able to figure out how to get threads to work on it...for a while now. Tutorialspoint IDE allowed for threading with merely the -pthreads tag. > > Not sure what the trick is with you. If to select pthread from the mingw-w64 > installer then threads work out of the box. > > Hmm ... perhaps it is because you use win32? Last 6 years it has been quite > unlikely to buy new computer that is incapable of running 64 bit operating > system. > > If you for whatever reason use mingw-w32 then perhaps you need to take > std::thread and sync primitives implementation for it from somewhere. > That looks good: https://github.com/meganz/mingw-std-threads (As an aside, the last time I looked at mingw-std-threads, it wasn't really there yet. But that was at least half a year ago, if not more.) Just to clarify, mingw and mingw-w64 are two separate projects, the latter a fork of the former, and they have two separate mailing lists. mingw does not support (non-native-windows) threads out of the box, and does not support std::thread. mingw-w64 does offer versions that support both pthreads (posix c-style threads) and std::thread (c++11 threads) out of the box. (But you will need to tell g++ to turn on c++11 features to get std::thread, e.g., "-std=c++11" or "-std=c++14" or similar.) You can run the mingw version with pthreads-win32 (a separate download), to get pthreads, but this won't get you std::thread. I have been using mingw-w64 with std::thread for some time now. (I don't really use pthreads.) (Also, mingw offers only a 32-bit version -- runs as a 32-bit application and produces 32-bit code -- while mingw-w64 offers both 32-bit and 64-bit versions. mingw will run, of course, on 64-bit windows as a 32-bit application. It will produce 32-bit applications that will run on 64-bit windows. But if you need to produce 64-bit applications, you will need mingw-w64.) If you have further questions about either of these two ports of gcc to windows, you are likely to get better-informed responses on their respective mailing lists. Happy Multi-Threaded hacking! K. Frank
[toc] | [prev] | [next] | [standalone]
| From | Doug Mika <dougmmika@gmail.com> |
|---|---|
| Date | 2015-07-17 12:38 -0700 |
| Message-ID | <9cf4221b-fdb4-4d61-aefd-841ff031acfb@googlegroups.com> |
| In reply to | #37143 |
On Friday, July 17, 2015 at 11:56:54 AM UTC-5, Doug Mika wrote: > Hi > > I'm using the online version of a C++11 IDE at tutorialspoint. It however is constantly down and unavailable for the last 3 days at least. Does anyone know of another good online C++11 IDE that supports threads? > > Thanks > Doug You mean, when installing mingw-w64 there is an option during installation to select pthread, which allows threads to work?
[toc] | [prev] | [next] | [standalone]
| From | Öö Tiib <ootiib@hot.ee> |
|---|---|
| Date | 2015-07-18 04:23 -0700 |
| Message-ID | <7fcd72d2-1173-443c-b4e9-8d958f8a2ed9@googlegroups.com> |
| In reply to | #37154 |
On Friday, 17 July 2015 22:39:00 UTC+3, Doug Mika wrote: > On Friday, July 17, 2015 at 11:56:54 AM UTC-5, Doug Mika wrote: > > Hi > > > > I'm using the online version of a C++11 IDE at tutorialspoint. It however is constantly down and unavailable for the last 3 days at least. Does anyone know of another good online C++11 IDE that supports threads? > > > > Thanks > > Doug > > You mean, when installing mingw-w64 there is an option during installation to select pthread, which allows threads to work? Yes. If you do not want to choose, download and unpack the 7-zip file for configuration you want from sourceforge yourself then there is an installer. Mingw-w64 installer asks immediately for settings (to choose configuration). I trust posix thread are there as default selection.
[toc] | [prev] | [next] | [standalone]
| From | Ian Collins <ian-news@hotmail.com> |
|---|---|
| Date | 2015-07-18 11:20 +1200 |
| Message-ID | <d0tgtuF4ji9U3@mid.individual.net> |
| In reply to | #37143 |
Doug Mika wrote: [Please wrap your lines!] > Hi > > I'm using the online version of a C++11 IDE at tutorialspoint. It > however is constantly down and unavailable for the last 3 days at > least. Does anyone know of another good online C++11 IDE that > supports threads? Don't bother! If you are using windows and want to minimise the pain, use the community edition of Visual Studio. -- Ian Collins
[toc] | [prev] | [standalone]
Back to top | Article view | comp.lang.c++
csiph-web