>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 files use toupper function and i want to declare it in my pascal file. (i know it is very easy to being implemented in c..but now just for curusity.)
so declaring external is reverse of what i want to do. I also tried with _toupper.didnt work,although i
turned off underscoring of exporting function in c compiler.
also tobjdump says unknown file.i cant dump c compiler generated .obj files.
regards,
roozbeh
____________________________________________________________________________________ 8:00? 8:25? 8:40? Find a flick in no time
with the Yahoo! Search movie showtime shortcut.
http://tools.search.yahoo.com/shortcuts/#news