On Sun, 11 Mar 2007 20:17:49 +0300, Roozbeh GHolizadeh
<[EMAIL PROTECTED]> wrote:
The problem is the name mangling. Try to declare it
like:
function toupper(ch :
integer):integer;cdecl;external name 'toupper';
... if the external name is 'toupper'. It might also
be '_toupper'. You =
c
Op Sun, 11 Mar 2007, schreef Roozbeh GHolizadeh:
> >>The problem is the name mangling. Try to declare it
> like:
> >>
> >>function toupper(ch :
> integer):integer;cdecl;external name 'toupper';
> >>
> >>... if the external name is 'toupper'. It might also
> be '_toupper'. You =
> >>
> >>can chec
>>The problem is the name mangling. Try to declare it
like:
>>
>>function toupper(ch :
integer):integer;cdecl;external name 'toupper';
>>
>>... if the external name is 'toupper'. It might also
be '_toupper'. You =
>>
>>can check this with objdump.
>>
>>Dani=EBl
Well actually my problem is c object
Op Sun, 11 Mar 2007, schreef Roozbeh GHolizadeh:
> Well everything is now ok,but in my .c source i've
> used 'toupper' function,
> now when i try to declare it in my pascal file like
>
> function toupper(ch : integer):integer;cdecl;
>
> still i get undefined symbol toupper error from
> compile
Well everything is now ok,but in my .c source i've
used 'toupper' function,
now when i try to declare it in my pascal file like
function toupper(ch : integer):integer;cdecl;
still i get undefined symbol toupper error from
compiler.
i guess there is a problem in linker,ie you cant use
external pas
From: "Roozbeh GHolizadeh" <[EMAIL PROTECTED]>
Well testing it with evc4,i get this error
test2.pas(5) Error: Failed reading coff file, illegal
reloctype $000F while read
ing my.o
Try external linker.
and well if it work,does .lib files work too?
.lib files should work.
Yury Sidorov.
___
Well testing it with evc4,i get this error
test2.pas(5) Error: Failed reading coff file, illegal
reloctype $000F while read
ing my.o
and well if it work,does .lib files work too?
Looking for earth-friendly a