www.digitalmars.com Home | Search | C & C++ | D | DMDScript | News Groups | index | prev | next
Archives

D Programming
D
D.gnu
digitalmars.D
digitalmars.D.bugs
digitalmars.D.dtl
digitalmars.D.dwt
digitalmars.D.announce
digitalmars.D.learn
digitalmars.D.debugger

C/C++ Programming
c++
c++.announce
c++.atl
c++.beta
c++.chat
c++.command-line
c++.dos
c++.dos.16-bits
c++.dos.32-bits
c++.idde
c++.mfc
c++.rtl
c++.stl
c++.stl.hp
c++.stl.port
c++.stl.sgi
c++.stlsoft
c++.windows
c++.windows.16-bits
c++.windows.32-bits
c++.wxwindows

digitalmars.empire
digitalmars.DMDScript

c++ - DMC++: No -U ??

↑ ↓ ← "Matthew" <admin stlsoft.dot.dot.dot.dot.org> writes:
Walter

Just working through the various configuration options for the different
compilers, and it seems that DMC does not support -U (to undefine a named
symbol). Is there another command for this? Also, how does one undefine all
symbols?

btw, congrats on "-cpp". :-)
Jul 10 2004
↑ ↓ "Walter" <newshound digitalmars.com> writes:
"Matthew" <admin stlsoft.dot.dot.dot.dot.org> wrote in message
news:ccq2vh$27bq$1 digitaldaemon.com...
 Walter

 Just working through the various configuration options for the different
 compilers, and it seems that DMC does not support -U (to undefine a named
 symbol). Is there another command for this? Also, how does one undefine

 symbols?

There is no -U, just a -u to undefine all the symbols.
Jul 10 2004
↑ ↓ "Matthew" <admin stlsoft.dot.dot.dot.dot.org> writes:
"Walter" <newshound digitalmars.com> wrote in message
news:ccq8mg$2emo$1 digitaldaemon.com...
 "Matthew" <admin stlsoft.dot.dot.dot.dot.org> wrote in message
 news:ccq2vh$27bq$1 digitaldaemon.com...
 Walter

 Just working through the various configuration options for the different
 compilers, and it seems that DMC does not support -U (to undefine a named
 symbol). Is there another command for this? Also, how does one undefine

 symbols?

There is no -U, just a -u to undefine all the symbols.

How about adding one? :-)
Jul 10 2004
↑ ↓ "Walter" <newshound digitalmars.com> writes:
"Matthew" <admin stlsoft.dot.dot.dot.dot.org> wrote in message
news:ccqa87$2gli$1 digitaldaemon.com...
 "Walter" <newshound digitalmars.com> wrote in message
 news:ccq8mg$2emo$1 digitaldaemon.com...
 "Matthew" <admin stlsoft.dot.dot.dot.dot.org> wrote in message
 news:ccq2vh$27bq$1 digitaldaemon.com...
 Walter

 Just working through the various configuration options for the



 compilers, and it seems that DMC does not support -U (to undefine a



 symbol). Is there another command for this? Also, how does one



 all
 symbols?

There is no -U, just a -u to undefine all the symbols.

How about adding one? :-)

Nobody has asked for it in 20 years. I've also never seen it used in any makefile. I've suspected from the beginning that it was a solution in search of a problem <g>.
Jul 10 2004
↑ ↓ "Matthew" <admin stlsoft.dot.dot.dot.dot.org> writes:
"Walter" <newshound digitalmars.com> wrote in message
news:ccqndj$1r1$1 digitaldaemon.com...
 "Matthew" <admin stlsoft.dot.dot.dot.dot.org> wrote in message
 news:ccqa87$2gli$1 digitaldaemon.com...
 "Walter" <newshound digitalmars.com> wrote in message
 news:ccq8mg$2emo$1 digitaldaemon.com...
 "Matthew" <admin stlsoft.dot.dot.dot.dot.org> wrote in message
 news:ccq2vh$27bq$1 digitaldaemon.com...
 Walter

 Just working through the various configuration options for the



 compilers, and it seems that DMC does not support -U (to undefine a



 symbol). Is there another command for this? Also, how does one



 all
 symbols?

There is no -U, just a -u to undefine all the symbols.

How about adding one? :-)

Nobody has asked for it in 20 years. I've also never seen it used in any makefile. I've suspected from the beginning that it was a solution in search of a problem <g>.

I use it a lot, to stop Win32 compilers from thinking that they're on Win32, when I want to test some UNIX code.
Jul 11 2004
↑ ↓ "Walter" <newshound digitalmars.com> writes:
"Matthew" <admin stlsoft.dot.dot.dot.dot.org> wrote in message
news:ccr0oe$fdh$1 digitaldaemon.com...
 "Walter" <newshound digitalmars.com> wrote in message
 news:ccqndj$1r1$1 digitaldaemon.com...
 There is no -U, just a -u to undefine all the symbols.

How about adding one? :-)

Nobody has asked for it in 20 years. I've also never seen it used in any makefile. I've suspected from the beginning that it was a solution in


 of a problem <g>.

I use it a lot, to stop Win32 compilers from thinking that they're on

 I want to test some UNIX code.

#undef _WIN32 will work, too.
Jul 11 2004
↑ ↓ "Matthew" <matthew hat.stlsoft.dot.org> writes:
"Walter" <newshound digitalmars.com> wrote in message
news:ccsev1$2dqp$1 digitaldaemon.com...
 "Matthew" <admin stlsoft.dot.dot.dot.dot.org> wrote in message
 news:ccr0oe$fdh$1 digitaldaemon.com...
 "Walter" <newshound digitalmars.com> wrote in message
 news:ccqndj$1r1$1 digitaldaemon.com...
 There is no -U, just a -u to undefine all the symbols.

How about adding one? :-)

Nobody has asked for it in 20 years. I've also never seen it used in



 makefile. I've suspected from the beginning that it was a solution in


 of a problem <g>.

I use it a lot, to stop Win32 compilers from thinking that they're on

 I want to test some UNIX code.

#undef _WIN32 will work, too.

But that's in code. How would I insert that in the command-line of the Arturius tool-chain?
Jul 12 2004
↑ ↓ "Walter" <newshound digitalmars.com> writes:
"Matthew" <matthew hat.stlsoft.dot.org> wrote in message
news:ccv1iv$8o5$1 digitaldaemon.com...
 "Walter" <newshound digitalmars.com> wrote in message
 news:ccsev1$2dqp$1 digitaldaemon.com...
 "Matthew" <admin stlsoft.dot.dot.dot.dot.org> wrote in message
 news:ccr0oe$fdh$1 digitaldaemon.com...
 "Walter" <newshound digitalmars.com> wrote in message
 news:ccqndj$1r1$1 digitaldaemon.com...
 There is no -U, just a -u to undefine all the symbols.

How about adding one? :-)

Nobody has asked for it in 20 years. I've also never seen it used in



 makefile. I've suspected from the beginning that it was a solution




 search
 of a problem <g>.

I use it a lot, to stop Win32 compilers from thinking that they're on

 I want to test some UNIX code.

#undef _WIN32 will work, too.

But that's in code. How would I insert that in the command-line of the Arturius tool-chain?

You can add: -HImatthew.h where matthew.h contains: #undef _WIN32
Jul 12 2004
↑ ↓ → "Matthew Wilson" <dmd synesis.com.au> writes:
"Walter" <newshound digitalmars.com> wrote in message
news:ccv4cj$cl2$1 digitaldaemon.com...
 "Matthew" <matthew hat.stlsoft.dot.org> wrote in message
 news:ccv1iv$8o5$1 digitaldaemon.com...
 "Walter" <newshound digitalmars.com> wrote in message
 news:ccsev1$2dqp$1 digitaldaemon.com...
 "Matthew" <admin stlsoft.dot.dot.dot.dot.org> wrote in message
 news:ccr0oe$fdh$1 digitaldaemon.com...
 "Walter" <newshound digitalmars.com> wrote in message
 news:ccqndj$1r1$1 digitaldaemon.com...
 There is no -U, just a -u to undefine all the symbols.

How about adding one? :-)

Nobody has asked for it in 20 years. I've also never seen it used





 any
 makefile. I've suspected from the beginning that it was a solution




 search
 of a problem <g>.

I use it a lot, to stop Win32 compilers from thinking that they're




 Win32, when
 I want to test some UNIX code.

#undef _WIN32 will work, too.

But that's in code. How would I insert that in the command-line of the Arturius tool-chain?

You can add: -HImatthew.h where matthew.h contains: #undef _WIN32

That's pretty cool. :) I can just have a well-known directory associated with the Arturius installation, and then translate -U for DMC++ to the above. And you call me devious ... ;)
Jul 13 2004