Skip to main content

Posts

Showing posts with the label How To Compile

Compiling with gcc

Using gcc under unix or Linux is much easier: just enter gcc (or perhaps g++) followed by options and file names. For any but the most trivial projects, you will probably find it easier to write a make file. Just This Much will do i guess

Compiling with Visual C++ .NET

By default, VC++ tries to include all kinds of Microsoft junk. You can use this stuff if you want to, but the programs discussed in the course will be written in plain old vanilla C++. Use the following steps to create simple C++ programs: 1. Start VC++. 2. Select File/New/Project or press ctrl-shift-n. In the New Project window: (a) In the Project types: window, select Visual C++ Projects. (b) In the Templates: window, select Win32 Project. (c) In the Name: box, enter the name of your program. (d) In the Location: box, enter a path for your project. (e) In the Solution: box, you can enter the name of a directory for your project. It is probably better to say that you don’t want this option. (f) Click OK to finish this dialogue. VC++ will open an Application Wizard. 3. In the Application Wizard window: (a) Click Application Settings. (b) Under Application Type:, select Console application. (c) Under Additional Options:, check Empty Project. (d) Click Finish. 4. You...