Author Topic: Update problem from older C::B version  (Read 3129 times)

StefanLi

  • Guest
Update problem from older C::B version
« on: March 22, 2007, 03:20:12 pm »
I was using C::B (CB_20060423_rev2370_win32) for my D development for a while. Now I decided to update to CB_20070321_rev3736_win32.
After updating and C::B´s converting of C::B´s configuration file my D project did not build anymore. It failed compiling a *.rc file.
I copied the <macros> element from my old configuration into the new configuration within the <dmd> element:
            <macros>
               <COMPILE_SINGLE_FILE_TO_OBJECT_FILE>
                  <str>$compiler $options $includes -c $file -of$object</str>
               </COMPILE_SINGLE_FILE_TO_OBJECT_FILE>
               <COMPILE_WIN32_RESOURCE_FILE>
                  <str>$rescomp $file -o$resource_output -32 -r</str>
               </COMPILE_WIN32_RESOURCE_FILE>
               <LINK_OBJECT_FILES_TO_EXECUTABLE>
                  <str>$linker $exe_output $link_options $link_objects $link_resobjects $libs</str>
               </LINK_OBJECT_FILES_TO_EXECUTABLE>
               <LINK_OBJECT_FILES_TO_CONSOLE_EXECUTABLE>
                  <str>$linker $exe_output $link_options $link_objects $exe_output.def $link_resobjects $libs</str>
               </LINK_OBJECT_FILES_TO_CONSOLE_EXECUTABLE>
               <LINK_OBJECT_FILES_TO_DYNAMIC_LIBRARY>
                  <str>$linker $exe_output $link_options $link_objects $libs $link_resobjects</str>
               </LINK_OBJECT_FILES_TO_DYNAMIC_LIBRARY>
               <LINK_OBJECT_FILES_TO_STATIC_LIBRARY>
                  <str>$lib_linker $static_output $link_options $link_objects</str>
               </LINK_OBJECT_FILES_TO_STATIC_LIBRARY>
            </macros>

With that C::B is now able to build my D project.
However, in the old version I could define those "macros" within the IDE. The new C::B recognizes them, but I did not found a possibility to define them within the new version.

Is manual editing of the configuration files the right way? Did I miss something?