Belboz99 wrote:
Hey all.
I'm taking an introductory course to C++ this fall at my local community college. I was kind of hoping that I could just use Linux to do all my work. (Debian 3.1 Sarge).
Anyway, I installed Anjuta but I couldn't figure out how to create an EXE. I guess it can't be done in Anjunta?
Are there any IDEs that will create EXE's from Linux?
My second option was to WINE one of the IDEs that came with the book. However, both of them failed to install on WINE.
They were:
Microsoft Visual C++ 6.0 Introductory Edition
Borland Visual C++ Builder, v.5
Is there a decent Windows based IDE that runs well on WINE?
Thanks,
Dan O.
There's Anjuta or KDevelop. However, as far you're problem is concerned, you have to understand the file system of Linux. A file is an executable, a text file, an image file, et al. UNIX/Linux doesn't need file suffixes (*.exe's, *.txt's, et al), instead, it knows the file is an executable because the file in itself is an executable.
If you want to know what the file type is, use the
file command:
#file myFile
This should give you an output. Now, if you want to write C++ code in BASH (using nano or your preferred text editor), just use the following command:
#g++ mysource.cpp
This should give you a file titled a.out, however, if you want to specify your own file name, use the following command:
#g++ -o myExecutable mysource.cpp
This should give you an executable file called
myExecutable. If you want to run it, just use the ./ format:
#g++ -o myExecutable mysource.cpp
#./myExecutable