Step by Step
From SmartWin Wiki
orbasreldom ractalicac4 This Wiki page is intended for those who are new to SmartWin++/Dev-C++ such as students and hobbyists who are beginning to learn C++.
Install and Test Dev-C++
First download Dev-C++ (http://www.bloodshed.net/dev/devcpp.html), a free IDE which includes full Mingw (http://www.mingw.org/) compiler system with GCC 3.4.2 (http://gcc.gnu.org/) and GDB 5.2.1 (http://www.gnu.org/software/gdb/gdb.html).
Components
- The GCC compiler--a program to turn your code into executable machine language.
- The GDB debugger--a program that lets you peek inside your program for debugging.
- Make--a program to control how programs are built.
- A linker--to assemble all the files in a program into one (or a few) executables.
- The Dev-C++ Development Environment a tool that lets you view and edit programs and contains hooks to the programs above that make it easy to compile, debug, and run programs.
After you have downloaded Dev-C++, run the installer. You will be prompted to decide if you want to create an index for code completion. Select Yes.
Test the Dev-C++ Installation We have to ensure that Dev-C++ is working before laying SmartWin++ on top of it. The installer is very good and this will usually succeed without incident.
- Create a new project using a template ("File|New|Project..."). Select "Console Application", "C Project", then hit OK.
- Enter the location where you want to save the project and hit OK.
- You will then see the Dev-C++ IDE. On the right side, you should see a large window that contains some source code similar to this.
#include <cstdlib> #include <iostream>
using namespace std;
int main(int argc, char *argv[])
{
system("PAUSE");
return EXIT_SUCCESS;
}
Add the following line after the {, and before the 'system("PAUSE");' line;
cout << "Hello World!\n";
Run the application via "Execute|Compile and Run" or F9. If you see the black box and "Hello World!" window then Dev-C++ is ready for the next stage.
Installing SmartWin++
SmartWin++ is available via the Dev-C++ / Devpak.org package manager. You can install the package directly from Dev-C++.
Installing SmartWin++ with the Package Manager
- Open Dev-C++.
- Select Tools -> Check for Updates/Packages.
- You should be presented with the WebUpdate window.
- Select "devpaks.org Community Devpaks" in the "Select Devpak server" box.
- Click "Check for updates."
- Click the "!!! Security Warning !!!," read and understand it. I have found the SmartWin package to be OK, but you are cautioned.
- Select SmartWin from the Available Updates list and click "Download selected."
- When the download completes, you will see a notification box. Click OK to install the package.
- The manager will unpack the package and run the setup utility. Click Next-> Next-> Finish.
- The SmartWin++ libraries are now installed.
- Check this out..Best site for quality paper writing service (http://www.besttermpaper.com/), term paper, research paper, course work, book report and resume writing. All writing services are guaranteed written by professional writers.
