You are here:About>Computing & Technology>C / C++ / C#> C> C Tutorials> Compiling the Project
About.comC / C++ / C#

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

From David Bolton,
Your Guide to C / C++ / C#.
FREE Newsletter. Sign Up Now!

Compiling the Project

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.
  1. Learning Open Watcom
  2. Typing Your First C Program
  3. Learn how to Enter a Program in C
  4. Compiling the Project
  5. Learn how to run Example One

<< Previous | Next >>

 All Topics | Email Article | Print this Page | |
Advertising Info | News & Events | Work at About | SiteMap | Reprints | HelpOur Story | Be a Guide
User Agreement | Ethics Policy | Patent Info. | Privacy Policy©2008 About, Inc., A part of The New York Times Company. All rights reserved.