Re: Common settings for multiple configurations of projects in VC++ 6.0

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: muchan (usenet_at_usenet.usenet)
Date: 08/04/04

  • Next message: Gary Chang: "Re: Remove duplicate symbols from static library?"
    Date: Wed, 04 Aug 2004 12:05:54 +0200
    
    

    Abhisek wrote:

    > Hi Ajay,
    >
    > That Option is available with cl.exe, but I want to use nmake to
    > build my project. Is it possible that if I pass the command file at
    > nmake level and those commands will be available to all invocations of
    > cl.exe?
    >
    > Also please let me know that how can I write my options in the command
    > file? I mean to say is there any particular format for this?
    >
    > I have tried to write a command file with /D "Hello" /D "World" but I
    > am getting the error for missing double quotation.
    >
    > By passing these options I want to do the conditional compilation.
    >
    > Please help me out.
    >
    > Regards
    > Abhishek
    >

    I'm using nmake for my projects, and I translate the debug version and
    release version the same way, (i.e. always debug compile option) and
    just call linker with no debug info option to make release version.

    I may be missing some funcy things about compiling two versions,
    and I maybe missing some optimization possibility, but I had nightmares
    having some problems that appeared only in release versions, now I'm
    free from such kind of bugs. What I test is what users get. :)

    For some kinds of special debug build, like similating devices, or to
    test on computer not supposed to run the release version, etc.,
    I define some constant in header files.
    So, I rather make debug version at source level, than compiler level.

    Just as info, HIH, though it may not help you.

    muchan


  • Next message: Gary Chang: "Re: Remove duplicate symbols from static library?"

    Relevant Pages

    • Re: Disable new operator in debug version
      ... > when I do multiplies I sometimes get a floating point overflow". ... > while another compilation uses a different implementation of 'new'. ... Therefore, you should either go without use of debug new, perhaps by ...
      (microsoft.public.vc.mfc)
    • Re: deciphering gprof (profiling) output
      ... On Sat, 15 Jan 2005, Tim Prince wrote: ... > this is called in the compilation of your source code. ... Without a debug ... codes, but as you mention, the libraries probably don't have debug ...
      (comp.lang.fortran)
    • RE: VC++ 6 SP5 with pp pack wont compile .exe on machine with .net 2.
      ... The debug version is stable -- no crashes. ... > I get memory cannot be addressed errors and crash it goes. ... I get no errrors at compilation or in the log. ... Am I missing something on building a release using visual styles? ...
      (microsoft.public.vc.ide_general)
    • Re: Can I change my code depending on the build type?
      ... is debug. ... is depend on the web.config file's <compilation debug=xxx> setting. ... the ASP.NET dev team has provided a web deployment project that can help ... control the precompilation more convenient which include specifying the ...
      (microsoft.public.dotnet.framework.aspnet)
    • Re: Can I change my code depending on the build type?
      ... The setting in web.config is only used if the web server does the compilation. ... The release version puts data in a buffer and saves them when the buffer is full or has lived a certain time, but the debug version flushes the buffer for each record so that they show up in the database immediately. ...
      (microsoft.public.dotnet.framework.aspnet)