Вниз
Скачать: CL | DM;

little bug 2.37 + fpc   Найти похожие ветки 

 
Thaddy   (2006-08-23 11:49) [0]

Vladimir,

There"s a small bug with FPC and 2.37, which compiles with delphi but is really a bug anyway:

iSqrt should take an int64 as parameter, not an integer.
Freepascal catches this correctly and aborts compilation, Delphi doesn"t but should have!

Can you change it into:

function iSqrt(X:Int64):integer;

This does not break any code and has the least impact.


 
Thaddy   (2006-08-24 17:40) [1]

NO bug, bug in conditional defines. Fixed.


 
Vladimir Kladov   (2006-08-24 18:32) [2]

{$IFNDEF _D4orHigher}
{$IFNDEF FPC} //+++
 Int64 = I64;
 PInt64 = PI64;
{$ENDIF} //+++
{$ENDIF}


Так достаточно?


 
Thaddy   (2006-08-25 10:53) [3]

No, I forgot about difference between FPC and FPC2: They are hugely different (FPC2 is almost 100% Delphi 7 compliant!) so I had to undefine FPC and define _Delphi7orHigher to work with Freepascal. I have submitted request to be able to identify FP version from defines to FP team.


 
Vladimir Kladov   (2006-10-21 13:36) [4]

я скачал free pascal 2.0.4. Но там нет заголовочных файлов. Например, для gtk - эти я взял на их ftp. Это так задумано, что тот, кому надо заголовочные файлы, должен их на ftp скачивать? Что-то на сайте freepascal.org не нашел такой информации.



Страницы: 1 вся ветка

Скачать: CL | DM;



Память: 0.45 MB
Время: 0.027 c
15-1178792569
ArtemESC
2007-05-10 14:22
2007.06.03
OpenSuse...


2-1178960077
mr1Andersen
2007-05-12 12:54
2007.06.03
Что можно(нужно) сделать, чтобы Delphi запомнил


15-1178185081
db2admin
2007-05-03 13:38
2007.06.03
Вопрос совместимости


3-1173464796
databaser
2007-03-09 21:26
2007.06.03
Поиск в найденном


2-1179162994
Просто_новичок
2007-05-14 21:16
2007.06.03
Запись в фал значений из динамического массива




   Наверх