Discussion Board

Results 1 to 2 of 2
  1. #1
    Registered User
    Join Date
    Dec 2004

    How to suppress -DNDEBUG

    I am working with a large code base that has a bunch of debugging code in #ifndef NDEBUG blocks.

    I notice that my CW project is passing -DNDEBUG to gcc on the command line. I want to suppress this for my newly created target. Where do I go in the project to disable this (or enable this to be suppressed) ?

    Thanks in advance,

  2. #2
    Nokia Developer Expert
    Join Date
    Dec 2004
    Austin, TX

    Re: How to suppress -DNDEBUG

    Depends on which set of prefs your SDK is using (Symbian Linker or Symbian Linker v2; see Target Settings pref).

    If it's Symbian Linker, then try to add -UNDEBUG to the Additional Command Line in the Symbian Target. Or add it to a prefx file listed in the same pref and #undef it there.

    If it's Symbian Linker v2, there will be a Symbian Compiler pref with the arguments in an edit box you can just remove.


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts