×

Discussion Board

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

    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,
    greg.fenton

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

    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.

    Cheers,
    Tim

Posting Permissions

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