[fpc-devel] resource compilation fails, if cpp is not on the path

Vincent Snijders vsnijders at quicknet.nl
Fri Sep 28 21:53:00 CEST 2007


Yury Sidorov schreef:
> From: "Vincent Snijders" <vsnijders at quicknet.nl>
>> Yury Sidorov schreef:
>>> From: "Vincent Snijders" <vsnijders at quicknet.nl>
>>>
>>>
>>>> I created the attached patch. What do you think?
>>>
>>> Use FindFile and FindExe functions to search for "cpp". The same way 
>>> as windres binary is searched above:
>>>
>>>  resfound:=false;
>>>  if utilsdirectory<>'' then
>>>
>>> resfound:=FindFile(utilsprefix+bin+source_info.exeext,utilsdirectory,false,resbin); 
>>> if not resfound then
>>>    resfound:=FindExe(utilsprefix+bin,false,resbin);
>>>
>>
>> utilsprefix is not necessary, don't you think? Or do you have 
>> i386-win32-cpp on linux for cross compilation?
> 
> You are right. There is no need for prefix or path search in case of cpp.
> Your patch is correct.
> 
>

Thanks for the review. I committed the patch in r8670.

Vincent



More information about the fpc-devel mailing list