How to compile C++ in windows + Editplus

---Install---

  1. Download full.exe, an about 14 megabyte executable
  2. Run the downloaded executable. This will install g++.
  3. Locate where the bin folder was created for the g++ installation. On my Windows XP machine, it was created in the following path:
    C:\cygnus\cygwin-b20\H-i586-cygwin32\bin  
    You now should add it to the PATH environment variable. You do that by following:
        

    (This step for win Vista only for XP do the next step)

     

    this point you can see the PATH variable either in the User Variables or in the System Variables. Add the g++ path into the PATH variable. You add it to the end of the existing value separated by a semicolon (';'). Make sure that you do not lose the original value. You are just appending more to the end separated by a semicolon.

    ---How to use with command line---

You should now be able to run g++ from a DOS (Command Prompt) window. For example, to compile a file called C:\cpptest\iScheduler.cpp, connect to the C:\mine folder and enter

       g++ -g iScheduler.cpp -o myprogram.exe -lm


You'll then be able to run the compiled program by entering myprogram.exe in the DOS window.

 

---How to use with Edit plus---

(see picture i'm so lazy right now to explain)

 

FOR COMPILE USER PROGRAM

--------Compile--------

command :
g++

Argument :
-g $(FileName) -o $(FileNameNoExt).exe -lm

Inital dir :
$(FileDir)

ONLY Check on box "Capture output" and "Save open files"

 

----Run---

command :
$(FileNameNoExt)

Argument :

Inital dir :
$(FileDir)

Check on box "Save open files" ONLY!!!!

.

 

 

^-^"

Sorry, page layout is so suck (but it work!! haha)

 


By : Pol-P-Pol (5/12/2008)

Dec , 2008 | Pol-P-Pol® | www.polppol.com | E-mail : webmaster@polppol.com : MSN : polppol@polppol.com