Discussion:
fpc(free pascal compiler) linking problem
(too old to reply)
Michael
2004-10-05 13:05:03 UTC
Permalink
Hi,
I am unable to make the hello test progrqamme. It fails with the
following error message.

link.res: file not recognized: Bad file descriptor

If I make the link.res file empty, the error is the same. So not
something in the file that causes it. Deleting the file, gives the error
file not found, as expected, so it is being found. I can call ld and
link hello from the command line, so assume everything is in place.

Is anybody else using fpc with success ? Any clues please, gone round in
circles several times, and can find nothing on the web about fpc
relating to Beos.

Running plain Beos 5.0.3

Not there yet but the plan is to try BePascal. A great deal of work
seems to have been done on it. Not much of an idiots guide though. ;-(

Thanks,
Michael
Michael
2004-10-11 13:35:58 UTC
Permalink
Post by Michael
I am unable to make the hello test progrqamme. It fails with the
following error message.
link.res: file not recognized: Bad file descriptor
If I make the link.res file empty, the error is the same. So not
something in the file that causes it. Deleting the file, gives the error
file not found, as expected, so it is being found. I can call ld and
link hello from the command line, so assume everything is in place.
Is anybody else using fpc with success ? Any clues please, gone round in
circles several times, and can find nothing on the web about fpc
relating to Beos.
Running plain Beos 5.0.3
Not there yet but the plan is to try BePascal. A great deal of work
seems to have been done on it. Not much of an idiots guide though. ;-(
Replying to my own post, in the hope the answer helps some one else.

This applies to fpc vesion 1.0.10a for Beos

The problem was with the original beos linker, I downloaded a newer
openbeos version, and it worked fine.

Michael
carl
2004-10-18 18:57:27 UTC
Permalink
Post by Michael
Post by Michael
I am unable to make the hello test progrqamme. It fails with the
following error message.
link.res: file not recognized: Bad file descriptor
If I make the link.res file empty, the error is the same. So not
something in the file that causes it. Deleting the file, gives the error
file not found, as expected, so it is being found. I can call ld and
link hello from the command line, so assume everything is in place.
Is anybody else using fpc with success ? Any clues please, gone round in
circles several times, and can find nothing on the web about fpc
relating to Beos.
Running plain Beos 5.0.3
Not there yet but the plan is to try BePascal. A great deal of work
seems to have been done on it. Not much of an idiots guide though. ;-(
Replying to my own post, in the hope the answer helps some one else.
This applies to fpc vesion 1.0.10a for Beos
The problem was with the original beos linker, I downloaded a newer
openbeos version, and it worked fine.
Greetings,
It worked by simply changing the linker version?? I did the
BeOS port quite a while back, but i will add it to the FPC faq so it
can help other people... What was the previous version of your
linker?? (The one that did not work? And what is the new version?)...

Thanks for all information you can supply!
please CC a ***@yahoo.ca

Carl Eric Codère

Loading...