Re: [fpc-devel] re: using generated obj files with vs or gcc in fpc?

2007-03-11 Thread Evgeniy Ivanov
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

Re: [fpc-devel] re: using generated obj files with vs or gcc in fpc?

2007-03-11 Thread Daniël Mantione
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

[fpc-devel] re: using generated obj files with vs or gcc in fpc?

2007-03-11 Thread 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 check this with objdump. >> >>Dani=EBl Well actually my problem is c object

Re: [fpc-devel] re: using generated obj files with vs or gcc in fpc?

2007-03-11 Thread Daniël Mantione
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

[fpc-devel] re: using generated obj files with vs or gcc in fpc?

2007-03-11 Thread 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 compiler. i guess there is a problem in linker,ie you cant use external pas

Re: [fpc-devel] re: using generated obj files with vs or gcc in fpc?

2007-03-08 Thread Yury Sidorov
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. ___

[fpc-devel] re: using generated obj files with vs or gcc in fpc?

2007-03-08 Thread Roozbeh GHolizadeh
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