Current Best Suggestions for C++ Compiler / IDE?
-
- KVRAF
- 2256 posts since 29 May, 2012
Codeblocks is OK in such oddball platforms. Works with almost any compiler.
With Wine you can only target Wine, though. It's not a good test case for targeting Windows. Its API emulation is far from being perfect. As for the compiler, any compiler which can compile Wine from its source code is OK. On Linux GCC is the most common one. You can link libwine (whatever its name actually is) and generate a typical Linux executable with Windows API's. Or possibly you can compile GCC from its source code, and have a cross compiler for Windows working under Linux (MinGW is a good source for the needed Windows libraries for this case). Perhaps MinGW compiler itself could work on Linux under Wine and can generate Windows executables. Either way in the end this route doesn't really make sense because in any case you'll need to test that plugin on Windows, possibly on several different versions with several different hosts (you'll find that 'slmgr -rearm' feature to be handy in this case, as buying a license for each version of Windows just for testing probably won't make much sense). That's why it's a waste of time. Plus, nothing beats the Visual Studio debugger
With Wine you can only target Wine, though. It's not a good test case for targeting Windows. Its API emulation is far from being perfect. As for the compiler, any compiler which can compile Wine from its source code is OK. On Linux GCC is the most common one. You can link libwine (whatever its name actually is) and generate a typical Linux executable with Windows API's. Or possibly you can compile GCC from its source code, and have a cross compiler for Windows working under Linux (MinGW is a good source for the needed Windows libraries for this case). Perhaps MinGW compiler itself could work on Linux under Wine and can generate Windows executables. Either way in the end this route doesn't really make sense because in any case you'll need to test that plugin on Windows, possibly on several different versions with several different hosts (you'll find that 'slmgr -rearm' feature to be handy in this case, as buying a license for each version of Windows just for testing probably won't make much sense). That's why it's a waste of time. Plus, nothing beats the Visual Studio debugger
~stratum~
- KVRAF
- 2554 posts since 4 Sep, 2006 from 127.0.0.1
Code::Blocks is a flexible IDE, it runs on windows/linux/etc.. and supports a bunch of compilers, and also external makefiles
on windows, you could use the M$ compiler, or MinGW gcc
on linux you can probably use a cross-compiler (mingw) directly, so you can code your plugins in the coazy environment
but i also think that using Wine as a testing substitute for windows is probably not a good idea
using a cross-compiler can minimize the time you have to spend running windows (only during testing)
on windows, you could use the M$ compiler, or MinGW gcc
on linux you can probably use a cross-compiler (mingw) directly, so you can code your plugins in the coazy environment
but i also think that using Wine as a testing substitute for windows is probably not a good idea
using a cross-compiler can minimize the time you have to spend running windows (only during testing)
It doesn't matter how it sounds..
..as long as it has BASS and it's LOUD!
irc.libera.chat >>> #kvr
..as long as it has BASS and it's LOUD!
irc.libera.chat >>> #kvr
- KVRAF
- 7897 posts since 12 Feb, 2006 from Helsinki, Finland
You could also just use one of the more flexible text editors (eg. Atom, Sublime and VSCode are popular if you're not into Vim or Emacs). Personally I use Atom on OSX and the work-flow is just about as efficient as Visual Studio on Windows (until you need a debugger, but there's nothing really that can match the VS debugger).
- KVRAF
- 2245 posts since 25 Sep, 2014 from Specific Northwest
I use Xcode since it's free and has an okay debugger. I'm just looking for a basic, yet possibly complete Windows solution that will run in Wine. As long as the compiler spits out a line number for an error, I won't necessarily need a debugger since the majority of code already has been debugged. There's just a few lines of Windows-specific code that I need to massage.
I was hoping someone else had gone down this road before me and could point the way and save me from hitting the potholes and taking wrong turns. Looks like that is a negatory, though...
I was hoping someone else had gone down this road before me and could point the way and save me from hitting the potholes and taking wrong turns. Looks like that is a negatory, though...
I started on Logic 5 with a PowerBook G4 550Mhz. I now have a MacBook Air M1 and it's ~165x faster! So, why is my music not proportionally better?
-
- KVRist
- 210 posts since 11 Feb, 2006
I use XCode mainly. Clion is a nice Mac/Windows C++ IDE, with lots of advanced features. For quick Windows tests i use Visual Studio in Parallels, though it works fine in Virtualbox (free) is you have a quick enough mac.
-
- KVRAF
- 4007 posts since 8 Jan, 2005 from Hamilton, New Zealand
Miles1981 wrote:Visual Studio 2017 hands down. You won't be able to find anything better for free.
*PFFFFT*
Bullshit.
Codelite + Nuwen Mingw (which is put together by one of the main MS devs).
"hands down".
I make music: progressive-acoustic | electronica/game-soundtrack work | progressive alt-metal
Win 10/11 Simplifier | Also, Specialized C++ containers
Win 10/11 Simplifier | Also, Specialized C++ containers
-
- KVRian
- 1379 posts since 26 Apr, 2004 from UK
An IDE that can't handle projects (no CMake support) and that uses the "great" GDB for debugging?metamorphosis wrote:Codelite + Nuwen Mingw (which is put together by one of the main MS devs).
"hands down".
hahahaha.
- KVRian
- 872 posts since 6 Aug, 2005 from England
VS has a great text editor, I especially like the the way I can edit collumns and remove square blocks of code without the need to grab a mouse - Just hold Shift and Alt & cursor select.
Dave Hoskins. http://www.quikquak.com
- KVRAF
- 2245 posts since 25 Sep, 2014 from Specific Northwest
Interesting! Why have I never heard of this Earth-thing called Codelite? Will have to give it a try to see if it can break the Xcode hegemony since Xcode is zero-configurable.metamorphosis wrote:Miles1981 wrote:Visual Studio 2017 hands down. You won't be able to find anything better for free.
*PFFFFT*
Bullshit.
Codelite + Nuwen Mingw (which is put together by one of the main MS devs).
"hands down".
I started on Logic 5 with a PowerBook G4 550Mhz. I now have a MacBook Air M1 and it's ~165x faster! So, why is my music not proportionally better?
- KVRAF
- 2245 posts since 25 Sep, 2014 from Specific Northwest
I opened up an Xcode project in it and it compiled right away using clang. I even tried the MacBundler, but it doesn't actually make a bundle, it just stubs out the main plist file and creates an icon. I would have to extend that plugin for it to work properly to build an app/vst automatically.
Codelite editor is pretty nice with proper code folding at the bracket level, not Xcode's utterly pointless and poorly executed method level. But this seems to be the only advantage so far.
So, it's not quite an Xcode killer, but could be with a little work. However, it's closer than anything else, except maybe the Jetbrains clone.
Codelite editor is pretty nice with proper code folding at the bracket level, not Xcode's utterly pointless and poorly executed method level. But this seems to be the only advantage so far.
So, it's not quite an Xcode killer, but could be with a little work. However, it's closer than anything else, except maybe the Jetbrains clone.
I started on Logic 5 with a PowerBook G4 550Mhz. I now have a MacBook Air M1 and it's ~165x faster! So, why is my music not proportionally better?
-
- KVRAF
- 2256 posts since 29 May, 2012
It has a few problems on windows, it couldn't use the microsoft compiler as it is (version problem probably) and with mingw it was OK but didn't detect gdb automatically. Not bad and probably not better than codeblocks (I didn't spent much time with it, though). My only problem with codeblocks (I use it on linux) is that if you edit the text file locations in the 'find in files' result set, line numbers are not updated automatically so you have to search again to find the exact line locations after editing the related text files. If codelite does this better it would be an improvement (I didn't try).
edit: 'Find in files' works better in Codelite and it updates the line numbers as text files are edited.
edit: 'Find in files' works better in Codelite and it updates the line numbers as text files are edited.
~stratum~
-
- KVRAF
- 7404 posts since 17 Feb, 2005
After using notepad for a few days, I think keyword highlighting is the #1 missed feature. #2 would be file tabs. #3 is probably autocompletion.
I've been using MinGWx64 for my plugins. https://sourceforge.net/projects/mingw-w64/files/
I've been using MinGWx64 for my plugins. https://sourceforge.net/projects/mingw-w64/files/
- KVRAF
- 7897 posts since 12 Feb, 2006 from Helsinki, Finland
I actually tend to miss rainbow parens a lot more than traditional syntax highlight. You need Viasfora (well, there's probably other choices too) to get it into Visual Studio, but once you get used to those it feels really miserable not having them.camsr wrote:After using notepad for a few days, I think keyword highlighting is the #1 missed feature. #2 would be file tabs. #3 is probably autocompletion.
That said, writing any non-trivial amount of code without auto-indenting (and reindenting) would be pretty terrible really. Fortunately that's something you can usually find in almost any editor (as well as tabs and clang-autocomplete).
-
- KVRAF
- 2256 posts since 29 May, 2012
It's a bit odd that there isn't a single really good C++ IDE for linux.
The last time I had tried Eclipse was unusable because of the directory structure it insisted on having, Netbeans was a memory hog, and QT-creator didn't have an option to set command line arguments for the program to be run, and none had support for multi-process debugging.
The last time I had tried Eclipse was unusable because of the directory structure it insisted on having, Netbeans was a memory hog, and QT-creator didn't have an option to set command line arguments for the program to be run, and none had support for multi-process debugging.
~stratum~