Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Compiler Options and the DDK Build Environments

Compiler Options and the DDK Build Environments

Scheduled Pinned Locked Moved C / C++ / MFC
questionc++help
4 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    switang
    wrote on last edited by
    #1

    How do I specify compiler options in the DDK build environments? I trying to build with /EHsc to enable c++ exceptions... Thanks for any help.

    S 1 Reply Last reply
    0
    • S switang

      How do I specify compiler options in the DDK build environments? I trying to build with /EHsc to enable c++ exceptions... Thanks for any help.

      S Offline
      S Offline
      switang
      wrote on last edited by
      #2

      Got it: "USER_C_FLAGS = /EHsc" in the sources file.

      J 1 Reply Last reply
      0
      • S switang

        Got it: "USER_C_FLAGS = /EHsc" in the sources file.

        J Offline
        J Offline
        JudyL_MD
        wrote on last edited by
        #3

        Be very careful if you are recompiling drivers in the DDK with that flag. They may not be (in fact, probably are NOT) written to handle exceptions. If you're just compiling your own user-mode app from the DDK environment, no worries. Judy

        S 1 Reply Last reply
        0
        • J JudyL_MD

          Be very careful if you are recompiling drivers in the DDK with that flag. They may not be (in fact, probably are NOT) written to handle exceptions. If you're just compiling your own user-mode app from the DDK environment, no worries. Judy

          S Offline
          S Offline
          switang
          wrote on last edited by
          #4

          Thanks, I'll have to look at that since it's part of a printer driver :)

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups