1. Home
  2. Computing & Technology
  3. C / C++ / C#

C Tutorial - Lesson One Learning How to Compile With Open Watcom

By David Bolton, About.com

4 of 5

Compiling the Project

Compilation Screen Shot
We're now ready to compile. Press the F4 key or click Targets then Make on the menu that appears.

You'll see the IDE log.

It shows the batch file that was run to make your application. The first line switches into the project folder, then wmake (Watcom's Make tool) processes the project file ex1.mk. This runs wcc386 - the Watcom Compiler to compile example1.c into example1.obj. (If you look in the project folder you will see this file). Finally wlink (Watcom's Link utility) links example1.obj into ex1.exe.

cd C:\development\c\tutorials\lesson one
wmake -f "C:\development\c\tutorials\lesson one\ex1.mk" -h -e "C:\development\c\tutorials\lesson one\ex1.exe"
wcc386 example1.c -i=C:\WATCOM\h;C:\WATCOM\h\nt -w4 -e25 -zq -od -d2 -6r -bt=nt -mf
wlink name ex1 d all SYS nt op m op maxe=25 op q op symf @ex1.lk1
Execution complete
On the next page : Learn how to run the application.
Explore C / C++ / C#
About.com Special Features

Stay connected and entertained with reviews on tips on the latest HDTVs, cellphones and more. More >

Easy ways to connect two computers for networking purposes. More >

  1. Home
  2. Computing & Technology
  3. C / C++ / C#
  4. C
  5. C Tutorials
  6. Compiling the Project

©2009 About.com, a part of The New York Times Company.

All rights reserved.