in QNX4.24, watcom C/C++ 10.6
How can I use the debug option?
Usually in UNIX, ‘g++ -D_ANY_DEBUG_OPTION_ sample.cpp’. etc.
But I can’t use option ‘-D’ in watcom C/C++.
Please help me.
use “-g2” or “-g3”
“¸ñ¶õ²É” schrieb:
in QNX4.24, watcom C/C++ 10.6
How can I use the debug option?
Usually in UNIX, ‘g++ -D_ANY_DEBUG_OPTION_ sample.cpp’. etc.
But I can’t use option ‘-D’ in watcom C/C++.
Please help me.
–
Dr. Jörg Kampmann - IBK-Consult for Real-Time and Embedded Systems
D-31228 Peine - Tel.:+49-177-276-3140 - Fax: +49-5171-13385
http://www.ibk-consult.de
===== QNX is the better Choice for Real-Time: http://www.qnx.com ====
Thanks but ‘-g2, -g3’ options are ‘debug information’ options.
I want to use ‘#ifndef DEBUG_OPTION, #define DEBUG_OPTION, #endif’…
help me plz.
“Joerg Kampmann” <joerg.kampmann@ibk-consult.de> wrote in message
news:3B7E225B.B85E8549@ibk-consult.de…
use “-g2” or “-g3”
“¸ñ¶õ²É” schrieb:
in QNX4.24, watcom C/C++ 10.6
How can I use the debug option?
Usually in UNIX, ‘g++ -D_ANY_DEBUG_OPTION_ sample.cpp’. etc.
But I can’t use option ‘-D’ in watcom C/C++.
Please help me.–
Dr. Jörg Kampmann - IBK-Consult for Real-Time and Embedded Systems
D-31228 Peine - Tel.:+49-177-276-3140 - Fax: +49-5171-13385
http://www.ibk-consult.de
===== QNX is the better Choice for Real-Time: > http://www.qnx.com > ====
“¸ñ¶õ²É” <mograhn@gauri.co.kr> wrote in message
news:9lkpqk$hnk$1@inn.qnx.com…
in QNX4.24, watcom C/C++ 10.6
How can I use the debug option?
Usually in UNIX, ‘g++ -D_ANY_DEBUG_OPTION_ sample.cpp’. etc.
But I can’t use option ‘-D’ in watcom C/C++.
Please help me.
if you use “cc” command then look at -D option:
cc - compile command (UNIX)
cc [options | operands]…
Options:
-D name=define Define name=define for preprocessor.
if you use wcc386 or wpp386 then look at -d option:
Usage: wcc386 [options] file [options]
Options:
-d[=text] precompilation #define name [text]
Usage: wpp386 [options] file [options]
Options:
-d[=text] precompilation #define name [text]
// wbr
i am sorry - I misunderstood you, look at ian’s posting
Jörg
??? schrieb:
Thanks but ‘-g2, -g3’ options are ‘debug information’ options.
I want to use ‘#ifndef DEBUG_OPTION, #define DEBUG_OPTION, #endif’…
help me plz.
“Joerg Kampmann” <> joerg.kampmann@ibk-consult.de> > wrote in message
news:> 3B7E225B.B85E8549@ibk-consult.de> …
use “-g2” or “-g3”“¸ñ¶õ²É” schrieb:
in QNX4.24, watcom C/C++ 10.6
How can I use the debug option?
Usually in UNIX, ‘g++ -D_ANY_DEBUG_OPTION_ sample.cpp’. etc.
But I can’t use option ‘-D’ in watcom C/C++.
Please help me.–
Dr. Jörg Kampmann - IBK-Consult for Real-Time and Embedded Systems
D-31228 Peine - Tel.:+49-177-276-3140 - Fax: +49-5171-13385
http://www.ibk-consult.de
===== QNX is the better Choice for Real-Time: > http://www.qnx.com > ====
–
Dr. Jörg Kampmann - IBK-Consult for Real-Time and Embedded Systems
D-31228 Peine - Tel.:+49-177-276-3140 - Fax: +49-5171-13385
http://www.ibk-consult.de
===== QNX is the better Choice for Real-Time: http://www.qnx.com ====
ian zagorskih <ianzag@novosoft-us.com> wrote:
“” <> mograhn@gauri.co.kr> > wrote in message
news:9lkpqk$hnk$> 1@inn.qnx.com> …
in QNX4.24, watcom C/C++ 10.6
How can I use the debug option?
Usually in UNIX, ‘g++ -D_ANY_DEBUG_OPTION_ sample.cpp’. etc.
But I can’t use option ‘-D’ in watcom C/C++.
Please help me.if you use “cc” command then look at -D option:
cc - compile command (UNIX)
cc [options | operands]…
Options:
-D name=define Define name=define for preprocessor.if you use wcc386 or wpp386 then look at -d option:
Usage: wcc386 [options] file [options]
Options:
-d[=text] precompilation #define name [text]Usage: wpp386 [options] file [options]
Options:
-d[=text] precompilation #define name [text]
Note: We strongly recommend that you use cc, rather than invoking
wcc386/wpp386 directly. Invoking them directly is NOT a supported
option.
-David
QNX Training Services
dagibbs@qnx.com