2004-02-18, 01:09 | Link #2 | |
Senior Member
Join Date: Jan 2004
Location: somewhere else
|
Quote:
http://www.thefreecountry.com/compilers/index.shtml |
|
2004-02-26, 04:16 | Link #3 |
Junior Member
Join Date: Feb 2004
|
afaik microsoft is the only vendor of a VB compiler so you don't really have much of a choice there. C++ on the other hand you have a few alternatives: MinGW (gcc ported to windows), Cygwin(another compiler based off gcc), Borland's free 5.5 compiler, & Digital Mars C/C++ Compiler. So take your pick.
One more note, C/C++ source are in plain ascii text files so yes it will work if you write it up in notepad or any other kind of text editor. As long as there're no syntax errors in there it'll compile your source. |
2004-03-24, 02:11 | Link #5 | |
Senior Member
Join Date: Jan 2004
|
Quote:
Your code files are text files. Use notepad. Or some other Integrated Development Environment, like emacs. Your code generation calls gcc from a command line. Like: C:\> gcc hello.c -o hello.exe |
|
2004-03-24, 02:25 | Link #6 | |
Zoro
Join Date: Nov 2003
|
Quote:
btw: does anyone know where i can learn about the computer? a book? a college? like right now, im having problem helping a friend with some NSIS problem. I know more than the average guy, but not enough to do any "techie" things. i become quite useless in any problem beyond the basic "cant find this file please specify where it is" |
|
2004-03-24, 02:33 | Link #7 | |
Senior Member
Join Date: Jan 2004
|
Quote:
|
|
2004-03-24, 03:46 | Link #8 | |
Junior Member
Join Date: Feb 2004
|
Quote:
Say you typed up your source and called the file hello.cpp. Here's how you compile it: 1. crack open the command prompt 2. get into the directory where your hello.cpp resides 3. from there, type in the full pathname of where you installed the compiler followed by the name of the compiler.exe then a space then the name of the source you want to compile -- it would be hello.cpp in this example. The switches and options for compiling will vary a little between compilers but usually you don't have to worry about that when you're starting out. It's usually enough to just type in the compiler.exe followed by the source you want to compile. lavalyn already showed you an example of how to compile under gcc. Here's another example for compiling using the Borland 5.5 compiler: Code:
E:\Borland\myworkspace>E:\Borland\bcc55\bin\bcc32.exe hello.cpp *enter* Additionally, if you're familar with the environment path under windows, you can add in the path of the compiler to this environment path. By doing this, you can avoid typing out the entire path of where your compiler resides everytime you need to compile something -- the environment path will tell the computer where to look for your compiler.exe. That's basically it. Last edited by Greatwolf; 2004-03-24 at 04:01. |
|
Thread Tools | |
|
|