miracle2k
24-Apr-2007, 09:24 AM
I just spent two hours debugging a problem in my build process, so I am posting this here in case anyone else has the same problem. Hopefully though, this will get fixed.
The problem was that ecc32.exe did not insert the map file into the exe after it had called dcc32, but also didn't output any warnings or error messages what so ever. Turns out my .dpr file was UTF-8 encoded, and had a Unicode signature at the beginning, which causes the parsing code of ecc32.exe to fail when trying to read the module name (not sure why it doesn't just use the project filename)?
Storing the project file as UTF-8 without a signature works fine, but possibly only as long as there are no characters outside of ANSI range before the program/library/etc. keyword.
The problem was that ecc32.exe did not insert the map file into the exe after it had called dcc32, but also didn't output any warnings or error messages what so ever. Turns out my .dpr file was UTF-8 encoded, and had a Unicode signature at the beginning, which causes the parsing code of ecc32.exe to fail when trying to read the module name (not sure why it doesn't just use the project filename)?
Storing the project file as UTF-8 without a signature works fine, but possibly only as long as there are no characters outside of ANSI range before the program/library/etc. keyword.