Mike
e-mail: mfr...@home.com
Michael Frayn <mfr...@home.com> wrote:
: I think I've pulled off the first stumper of all the newsgroups :( As
What library functions are you calling?
Are you linking in TP7 with the C-libraries too?
Norm
Michael Frayn <mfr...@home.com> wrote in article
<Vriu3.16262$C6.1...@news2.rdc1.on.home.com>...
I have personally done this, so if you give me a tiny example file of the
'C' and 'Pas' and email it, I will show you how in a few days. (After I
do it)
like
unit hello;
procedure somefunction:byte;
{$L something.obj}
imp;
begin
somfunction;
end;
--
Charles Wood
REMOVEME...@worldnet.att.net
Michael Frayn wrote in message ...
int square ( int x )
{
return x * x;
}
had a header file which just contained a forward declaration of the
function, a cpp file which had the function itself, compiled it into a .OBJ
file, tried to include into TP7.0 with {$L square.obj} and it said:
"invalid object file" (maybe: "invalid object file record")
Any ideas?
Michael Frayn
e-mail: mfr...@home.com
Norm Dresner wrote in message <01bee8e9$cbaba3c0$05ed4e0c@nilrem>...
>Are you trying to write C or C++?
>
>What library functions are you calling?
>
>Are you linking in TP7 with the C-libraries too?
>
> Norm
>
>Michael Frayn <mfr...@home.com> wrote in article
><Vriu3.16262$C6.1...@news2.rdc1.on.home.com>...
>> I think I've pulled off the first stumper of all the newsgroups
>As
extern "C" {
int square ( int x ){
return (x*x);
}
}
Hope this helps,
Cheers,
MvdW
Michael Frayn <mfr...@home.com> wrote in article
<Xcru3.17970$C6.2...@news2.rdc1.on.home.com>...
> All I did was write a simple function in c:
>
> int square ( int x )
> {
> return x * x;
> }
>
> had a header file which just contained a forward declaration of the
> function, a cpp file which had the function itself, compiled it into a