Discussion:
"Error! E738: option requires a number" when using compiler option -et
(too old to reply)
Binarus
2014-02-24 09:09:54 UTC
Permalink
Hi all,

I just wanted to profile a DOS application and tried to compile using the compiler option -et. This produced the error which is mentioned in the subject. According to the manual (cguide.pdf), this option does not take additional parameters.

These are the flags I'm currently using for compiling:

CFLAGS = -5 -bt=DOS -d3 -e20 -ef -ei -er -fpi87 -fp5 -mh -od -wx -zdf -zff -zgf -zt256 -zu

This works, but as soon as I add -et, the error occurs. I am using OpenWatcom 1.9, running the compiler within Windows, but cross compiling for DOS.

Any ideas?

Thank you very much,

Binarus
Jiri Malak
2014-02-24 20:32:06 UTC
Permalink
You don't get much info as what compiler you use, what is real commnd line
etc.
I only deduce what happen.
It looks like you use wpp compiler (16-bit).
Unfortunately it doesn't support -et option, for it you must use wpp386
compiler (32-bit). cmdl parser recognize -et option as -e option with number
which is not entered.
Parser generates a little confusing diagnostics.

Jiri
Post by Binarus
Hi all,
I just wanted to profile a DOS application and tried to compile using the
compiler option -et. This produced the error which is mentioned in the
subject. According to the manual (cguide.pdf), this option does not take
additional parameters.
CFLAGS = -5 -bt=DOS -d3 -e20 -ef -ei -er -fpi87 -fp5 -mh -od -wx -zdf -zff -zgf -zt256 -zu
This works, but as soon as I add -et, the error occurs. I am using
OpenWatcom 1.9, running the compiler within Windows, but cross compiling
for DOS.
Any ideas?
Thank you very much,
Binarus
Binarus
2014-02-25 16:35:38 UTC
Permalink
Post by Jiri Malak
You don't get much info as what compiler you use, what is real commnd line
etc.
I only deduce what happen.
It looks like you use wpp compiler (16-bit).
Unfortunately it doesn't support -et option, for it you must use wpp386
compiler (32-bit). cmdl parser recognize -et option as -e option with number
which is not entered.
Parser generates a little confusing diagnostics.
Jiri
Jiri,

thank you very much for your answer which was very helpful.

It seems you are right. A complete command line is (example):

c:\watcom\binnt\wpp.exe -5 -bt=DOS -d3 -e20 -ef -ei -er -fpi87 -fp5 -mh -od -wx -zdf -zff -zgf -zt256 -zu -fo=test.obj test.cpp

I just did not come to the idea that there are differences in the command line options the different compilers understand. Therefore, I did not mention exactly what compiler I was using.

Since I am doing development using a virtual machine which runs XP Pro, I think I can use wpp386. I will now try to find out which compiler supports which targets - I need a compiler which supports the DOS target, and I hope that wpp386 does this.

Cheers

Binarus
Jiri Malak
2014-02-25 16:49:50 UTC
Permalink
wcc is 16-bit C compiler
wpp is 16-bit C++ compiler
wcc386 is 32-bit C compiler
wpp386 is 32-bit C++ compiler

All can compile for DOS with -bt=dos

Jiri
Post by Binarus
Post by Jiri Malak
You don't get much info as what compiler you use, what is real commnd
line etc.
I only deduce what happen.
It looks like you use wpp compiler (16-bit).
Unfortunately it doesn't support -et option, for it you must use wpp386
compiler (32-bit). cmdl parser recognize -et option as -e option with
number which is not entered.
Parser generates a little confusing diagnostics.
Jiri
Jiri,
thank you very much for your answer which was very helpful.
c:\watcom\binnt\wpp.exe -5 -bt=DOS -d3 -e20 -ef -ei -er -fpi87 -fp5 -mh
-od -wx -zdf -zff -zgf -zt256 -zu -fo=test.obj test.cpp
I just did not come to the idea that there are differences in the command
line options the different compilers understand. Therefore, I did not
mention exactly what compiler I was using.
Since I am doing development using a virtual machine which runs XP Pro, I
think I can use wpp386. I will now try to find out which compiler supports
which targets - I need a compiler which supports the DOS target, and I
hope that wpp386 does this.
Cheers
Binarus
Binarus
2014-02-27 19:08:56 UTC
Permalink
Post by Jiri Malak
wcc is 16-bit C compiler
wpp is 16-bit C++ compiler
wcc386 is 32-bit C compiler
wpp386 is 32-bit C++ compiler
All can compile for DOS with -bt=dos
Jiri
Jiri, thank you very much again. It works now.

Cheers,

Binarus

Loading...