Forum > Options

Compiler options fail to replicate fpc -Mtp

(1/3) > >>

Ed:
I was migrating code from Turbo Pascal 7 for DOS to linux, and have most of it compiling using the command line fpc source -Mtp.  I just started using Lazarus.  I get new errors, and have now chosen ONLY the -So option for the project compiler options.  It still gives a pointer to a procedure error that -Mtp does not.  I see no other source code tricks I can use to sidestep the compiler error, so feel that I need to keep the pointer comparison such as:

IntHandler: pointer;

If (IntHandler <> @SomeIntHandler) then...

I tried the $T+ and $T-, but nothing changes.  I get "expected longint but got ^procedure(Word,word...)

I see no way to force any other options, or specifically -Mtp.

Vincent Snijders:
Please, give a more complete code sample, including variable and type declarations.

Anonymous:

--- Quote from: "Vincent" ---Please, give a more complete code sample, including variable and type declarations.
--- End quote ---


I will do that, but the code is at home.  Tthe main part of the question is why does the command line execution of fpc compile but the same code from Lazarus does not?  Lazarus runs the same compiler, does it not?

Anonymous:
Yes, but the options passed might be different.

Vincent Snijders:
Somehow, the forum forgot who I am.

Navigation

[0] Message Index

[#] Next page

Go to full version