c++ IDE on usb? [closed] - c++

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed last year.
Improve this question
is there any c++ compiler i can put on a usb or external harddrive and use it on any other computer? the school computjers in my library dont have an ide... or a compiler installed...
P.S the school computers are very tight on securty. i cant even download things from the internet, no websites like facebook, so can i install it on one of the computers? or can i just run it as the actual executable file and run it straight from my usb?
there are several computers with windows 7, and 3 imacs

I'd try Eclipse. And if it doesn't work straight away, try one of those USB-stick program-hosting softwares like U3 (it comes on some Sandisk thumb drives).

Code::Blocks can easily be made portable by setting custom environment variables, described here
At the back-end, C::B can use mingw, which doesn't require any specific install information other than a few environment variables. (namely PATH). These can be set temporarily using SET PATH=%PATH%;./mingw/, which should be possible without elevated privileges.

You might try some of the tools at portableapps.com. They're a group that modifies open source software to run off of USB sticks. I've used their versions of Notepad++, Gimp, and Filezilla for years.
In particular, maybe look at they're development tools: http://portableapps.com/apps/development
It looks like they even have some programs to make other apps portable as well, which you might try with Eclipse, as John suggested. (I think Eclipse may also just run off a USB stick without any modification.)

Dev-C++ might be a good choice if you only use Windows.
If you want an IDE that works in both Windows and Mac, you can choose Emacs, which is a very powerful text editor and is a part of the GNU project. But as it's only a text editor, you will need to download the C++ compiler yourself. MinGW might be a good choice in Windows. Since I have never used a Mac, I cannot give you more suggestion for the Mac environment. But as it's a Unix based system, I guess it has a C++ compiler itself.

What you're looking for is a portable c++ ide. Google gave me the following:
devcpp-portable
Netbeans portable config
But go through google to find more

There is portable code blocks.

Related

What is the use of Cygwin exactly? [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 5 years ago.
Improve this question
I installed Cygwin on my laptop. After going through the instructions on netbeans site, i found that i need to change the path directory.
My path directory initially shows some java thing on that and if i change it then will it create some problem?
I basically Want to run C/C++ programs by NetBeans so I installed Cygwin thinking that it would help me.
Please Suggest me what to do.
Took this from the original guide
Cygwin is a Linux-like environment for Windows. It consists of a DLL
(cygwin1.dll), which acts as an emulation layer providing substantial
POSIX (Portable Operating System Interface) system call functionality,
and a collection of tools, which provide a Linux look and feel. The
Cygwin DLL works with all x86 and AMD64 versions of Windows NT since
Windows XP SP3. The API follows the Single Unix Specification as much
as possible, and then Linux practice. The major differences between
Cygwin and Linux is the C library (newlib instead of glibc). With
Cygwin installed, users have access to many standard UNIX utilities.
They can be used from one of the provided shells such as bash or from
the Windows Command Prompt. Additionally, programmers may write Win32
console or GUI applications that make use of the standard Microsoft
Win32 API and/or the Cygwin API. As a result, it is possible to easily
port many significant UNIX programs without the need for extensive
changes to the source code. This includes configuring and building
most of the available GNU software (including the development tools
included with the Cygwin distribution).

C++ debuggers for linux similar to MS Visual Studio's debugger? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 7 years ago.
Improve this question
A little background: for a while I've been using a free IDE for my C++ projects named CodeBlocks. Recently I've got a licence for Microsoft Visual Studio 2013 and I've got to say it's a completely different experience. The auto-complete is better, sensitive and accurate error checking as you're typing, a visual resource manager for MFC applications. And while these things you can get in pretty much any text editor with the right plugins, what I found especially appealing about MS Visual Studio is its very nice and visually appealing debugger (way easier to use and provides more information than the one in CodeBlocks).
I've been thinking for a while to switch over to a linux-based system since, to me at least, it seems to provide better tools for general purpose programming. However, I just can't bring myself to losing the MS VS debugger and going back to something like the one in CodeBlocks. I've been searching for various debuggers for linux but I can't really find one similar to the one in MSVS2013. Can anybody help me with this? What is a good debugger that I can use?
Functionality that I'm looking for:
an "Auto" watch tab/window which tracks variables that have been used recently or that are likely to be used, including a "this" pointer when inside class methods;
a "Locals" watch tab/window which tracks strictly local variables (without having to input them manually)
highlighting of variables that have changed when stepping from one instruction to another
being able to set multiple Watch windows/tabs and easily switch between them
being able to expand objects being watched in order to see their members' values
being able to easily see the values stored at addresses which watched pointers are pointing to
Well, you aren't short of options.
The classic Linux debugger - gdb - has a command-line gui based on ncurses which is activated by launching with the -tui argument. Admittedly it's a little bit basic compared to IDE integration, but it's incredibly powerful.
A stand-alone GUI for gdb called ddd is popular in certain circles. The interface isn't particularly modern, but it supports the full range of gdb capabilities.
If you're looking for an integrated development environment, then Jetbrains CLion is a relative newcomer but features reasonable gdb integration. If you're looking for a free alternative then Eclipse CDT is fairly well integrated.
My personal favourite option is a commercial plugin called VisualGDB which integrates VisualStudio with GDB, allowing you to compile and debug without leaving VisualStudio. It's quite flexible, and is actively supported and developed.
I used and loved DDD debugger (a GUI on top of the standard gdb) which felt very native and easy-to-learn coming from many years of MS VisualStudio environment.
You can do all those "standard" debugging tasks like drilling down into data structures with a mouse, setting breakpoints, inspecting variables, etc.
It is called Data Display Debugger and you can find more info on it at the GNU website which also includes screenshots so you can quickly judge if this tool is right for you:
http://www.gnu.org/software/ddd/
2017 edit:
The new MS Visual Studio 2017 (all editions, including the free one) now has a built-in Linux support which includes debugging Linux programs remotely with the MS VC's built-in debugger. That even includes the edit-and-continue support(!)
Here's a video that demonstrates this
You might use the GNU emacs editor to type -and even compile- your C++ code.
It can run the gdb debugger, the GCC compiler (for your C++ code you could invoke it as g++ -Wall -Wextra -g to get warnings and debug information), the GNU make build automation tool, the git version control tool, etc etc...
If you need a graphical interface for gdb outside of emacs consider xgdb or ddd.

How to write C++ on Mac? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 2 years ago.
Improve this question
Taking my first C++ class in college. I need to download C++ and my teacher gave us a direct link to download it, but it only works on Windows. Is there a way I can format it to work on my Mac or is there a Mac-friendly version I can download?
A compiler for C++ is already built into Mac (try g++ main.cpp in terminal). If you mean an IDE for C++, use Xcode 5, available in app store.
It's developed by Apple, has git integration too if that's useful to you. Also has templates and such available to entice you to work on OS X/iOS projects, which might be a nice way in for you (I'm just starting out too, and I think that could be good).
For command-line projects though, I find it best to write in Xcode, then compile and run from the terminal. It's easier for file I/O and passing arguments to stdin IMO.
You can utilize something called Xcode IDE to write your programs on C++, I have been using that for a quite a while now, and it's definitely fun. You can find the app from free on APP store or just by clicking the link below. This is one of the many things I like about MAC.
click here to get XCODE
On Mac, since you are just starting out, use XCode. Its a pretty neat IDE with built in C++ compiler so you can write C++, compile with a click and run.
I think you kinda have the wrong idea of c++.
C++ is a programming language and what you are asking about is a development environment.
For example Xcode is such an environment. Since I also have my favorite I would use Eclipse since it is useful for many other purposes too.
Eclipse C++ Download

C++/Assembly IDE on Linux [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 4 years ago.
Improve this question
What I'm looking for is an IDE that will run on Linux, that has support for C++ and x86 assembly syntax highlighting. I've already tried Code::Blocks, but that won't let me run the program as I need to, so that didn't work well.
My needs:
Able to compile programs by issuing a "make all" in a certain directory
Able to run programs by issuing a custom command instead of running a certain executable
Graphical (not vim/emacs/etc) and will run in GNOME/Fedora 14
What would be very helpful:
Git integration
Autoversioning (like Code::Blocks does)
Eclipse doesn't work for me, as it no matter what I set it tries to do an auto-build/error check of the entire program, using the wrong toolchain, and errors out everything, even if I disable CDT.
Assembly syntax highlighting is not a requirement but would be useful. It does, however, have to have C++ syntax highlighting.
EDIT: By "Graphical" I mean that I already tried vim/emacs some time ago, and found them too challenging to learn how to use in a short amount of time without loosing my sanity.
EDIT 2: The given editor should also store project files in just one file, as I don't want to have to "git add" a whole new directory each time the editor silently adds some file there.
What do you think about KDevelop?
Vim
Be sure to look at
C++ Omni Completion
ctags and TagList
I use ctags --exclude=packagedir -R --c++-kinds=+p --fields=+iaS --extra=+q .
cscope (here and here)
Simply the best editor and will work anywhere - including in your remote terminal under screen :)
Eclipse CDT
Eclipse can import existing makefile projects and will not clobber the makefile :)
Eclipses intellisense is nice
I use Eclipse HELIOS on linux. It supports
profiling,
memchecking with valgrind
GDB debugging, remote debugging
call graph visualization, comprehensive symbol XRef (the usual eclipse shortcuts apply), simple refactorings
coverage GCov
oprofile
...
It should be portable so I expect most of this to work on windows.
If you are willing to go the commercial route there is SlickEdit, which works on multiple platforms and with multiple languages (including the two you have mentioned).
http://www.slickedit.com/products/slickedit/
Today, the best IDE for assembler on LINUX is SASM. Official site of SASM
I think emacs is the best multi-language editor.

Is is possible to develop for windows, in C++, without Visual Studio? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 4 years ago.
Improve this question
I'm aspiring to work in real-time 3D graphics. I work almost exclusively in C++, with a healthy smattering of win32. Realistically, do I have any sane alternatives?
You can use the MSVC compiler without the IDE. That's probably your best bet. It's a good compiler, and it is the de facto standard for Windows development.
There is definitely nothing wrong with ditching the IDE and simply using the compiler.
I believe the MSVC compiler can be used from the Code::Blocks IDE with no problems.
Alternatively, invoking the compiler from the command-line is a tried and true approach too.
Eclipse: http://www.eclipse.org/
Code::Blocks is pretty cool: http://www.codeblocks.org/
Depends...
Cygwin/Mingwin gives you a compiler. Qt or wxWidgets gives you a GUI toolkit that's easy to use and both are portable.
I agree with the question though. Visual Studio is a pig. Its debugger is pretty nice, but the rest is a pig to work with (particularly coming from a OSS background where the tools don't generally try to lock you in).
You could also look at nmake and calling the VC++ compiler tools directly from the command line.
We use VC++ as a compiler / linker but use Jam to drive the builds. The actual Visual Studio is only used as a debugger. The benefit is that once we set up Jam to build a project in Windows, it takes minimal effort (frequently none) to get it working for Unix.
The Zeus IDE works just fine as a MSVC alternative. It can even import MSVC project and solution files.
A bit late to the party, but I'd like to add that in 2018 there finally begins to show up a viable alternative that is good enough to promise emancipation from the monopoly of VS on Windows C++ development:
Sublime Text as editor, with the following plugins:
EasyClangComplete, a decent (like, just working) replacement for Intellisense;
[optionally] Clang Format, for much more flexible source formatting experience than MS would ever come up with;
Clang-cl as a wrapper around Clang compiler aimed for maximum MSVC compatibility.
Unfortunately, Microsoft Build Tools are still needed for standard library headers, but the download size is nothing compared to the whole VS behemoth. The upside is that Clang-cl picks them up automagically and Build Tools somehow don't mandate that you let their executables go online to sign in and activate your free license yet!
Setting this all up to a working configuration is a bit more complicated than slapping together a VS project/solution, but it's totally worth it. As a bonus, setting things up manually might give you a better understanding of what goes on under the hood of an IDE.
One thing to miss might be the superb VS debugger... Well, if you're ready to break habits, the open source x64dbg might come to the rescue, ability to view and step through source code via .pdb files included (and yes, Clang can generate them now!).
Update: As of 2019, a much better and future-proof alternative to EasyClangComplete is using Clangd via LSP plugin.
Absolutely, but it's just a lot easier to use Microsoft's IDE to develop for a Microsoft operating system. When in Rome...
Eclipse is a good alternative.
The Code::Blocks IDE comes with the MinGW C++ compiler and support for wxWidgits. The IDE is pretty minimalist which may or may not be what you are looking for - I really like it.
Dev-C++ I have found very useful, and free :)
Very possible, Qt is your friend. Qt Creator is in RC stage too so something to look forward to. Until then you can use it with something like Code::Blocks. Code::Blocks itself is a great environment alone, and also has a lot of support for wxWidgets. If you're just looking for an IDE change, as previously mentioned, Code::Blocks can use compilers from other IDE's as well.
-John
SlickEdit (or a number of other editors that support ctags or something similar) makes for a pretty decent 'IDE'.
You can use these editors with makefiles (or other build tools) to drive pretty much whatever compiler you want (MVCS, mingw, Comeau, Digital Mars, whatever).
A couple employers ago, that's exactly what we did. We used MS compilers driven by makefiles and the main editor used was SlickEdit. We used the Debugging Tools for Windows package for debugging (a lot of what we did was kernel-mode). Worked out pretty well.
Wascana Desktop Developer is a distribution of Eclipse CDT configured specifically for developing on Windows.
I would recommend giving Notepad++, MSBuild, and the Windows SDK a look over. You could also use XBuild, but that is more MONO specific. Mind you, MSBuild, and XBuild are just automation tools, so you'd be spending more time with Windows SDK.
I'm sure to receive a lot of flak for this, but I find C++Builder to be a much easier IDE/compiler to develop Windows C++ apps with than MSVC. It may not be the cheapest solution, or have all the same bells+whistles, or be the most language-compliant (its 32bit compiler does not support C++11 yet, but its 64bit compiler does), but you can't really beat its visual UI designer and 3rd party component market.