Skip to content

Include

Kyle put the following code in his file:

  1. {$IFDEF CLR}
  2.   {$INCLUDE ../includes/dotnet.inc}
  3. {$ELSE}
  4.   {$INCLUDE ../includes/win32.inc}
  5. {$ENDIF}

During testing, everything worked as expected, but after checking in all the files, he got an email from the build machine telling him he broke the build.

What did he do wrong?

2 Comments

  1. I imagine Kyle might have a different search path configured for his local environment than what the build machine has.

    I also wouldn’t be surprised if only one version of the compiler supports slashes to separate path elements, and the other version requires backslashes. Maybe Kyle only tested his changes on one platform.

    Monday, April 7, 2008 at 8:04 am | Permalink
  2. Usually that means he forgot to check in the include files, but that seems like a simple out. I think Rob might have the right idea with the slash vs backslash or search path.

    Tuesday, April 8, 2008 at 11:31 am | Permalink

Post a Comment

Your email is never published nor shared. Required fields are marked *
*
*