Recent

Author Topic: FPC Compiler  (Read 8624 times)

peter-1

  • New Member
  • *
  • Posts: 11
Re: FPC Compiler
« Reply #15 on: January 30, 2022, 07:50:36 pm »
the directory is correct and I see it in the string, but it still isn't written to the directory.


MarkMLl

  • Hero Member
  • *****
  • Posts: 8035
Re: FPC Compiler
« Reply #16 on: January 30, 2022, 07:57:01 pm »
Look, you are /still/ not asking in the right place and I'm not happy being involved since I've not used Windows for years.

Stop the IDE. Start it again and tell us STEP BY STEP EXACTLY what you are doing. Make no assumptions and miss nothing out.

MarkMLl
MT+86 & Turbo Pascal v1 on CCP/M-86, multitasking with LAN & graphics in 128Kb.
Logitech, TopSpeed & FTL Modula-2 on bare metal (Z80, '286 protected mode).
Pet hate: people who boast about the size and sophistication of their computer.
GitHub repositories: https://github.com/MarkMLl?tab=repositories

peter-1

  • New Member
  • *
  • Posts: 11
Re: FPC Compiler
« Reply #17 on: January 31, 2022, 02:57:12 pm »
Thanks for your help. My only problem is that i can't save the .exe or .tpu. everything works without an error message. Saving .pas also works.


MarkMLl

  • Hero Member
  • *****
  • Posts: 8035
Re: FPC Compiler
« Reply #18 on: January 31, 2022, 03:03:34 pm »
We know what your problems are better than you do and if you don't answer the questions then you don't get any help.

I checked yesterday evening and the fp IDE /does/ save executables. But I'm not taking the time to do a full-blown tech-writing explanation of how to do it: say what you're doing and (subject to OS differences) I and no doubt others will try to duplicate it and find what's happening.

MarkMLl
MT+86 & Turbo Pascal v1 on CCP/M-86, multitasking with LAN & graphics in 128Kb.
Logitech, TopSpeed & FTL Modula-2 on bare metal (Z80, '286 protected mode).
Pet hate: people who boast about the size and sophistication of their computer.
GitHub repositories: https://github.com/MarkMLl?tab=repositories

peter-1

  • New Member
  • *
  • Posts: 11
Re: FPC Compiler
« Reply #19 on: January 31, 2022, 03:36:09 pm »
Excuse me.
I have the PC WIN7 prof. 64bit. freepascal IDE has been reloaded. there are no error messages. unfortunately the compiled file DIA_TPU.TPU cannot be found. that's the only mistake. probably a switch is not set correctly.


rvk

  • Hero Member
  • *****
  • Posts: 6585
Re: FPC Compiler
« Reply #20 on: January 31, 2022, 03:40:22 pm »
Did you put Writeln(paramstr(0)); in your program?
What did it say after you ran it?

You can set the output directory of the executable in the options so there is no telling for us to where it is.
Only you can give that answer with the value of paramstr(0).

MarkMLl

  • Hero Member
  • *****
  • Posts: 8035
Re: FPC Compiler
« Reply #21 on: January 31, 2022, 03:40:41 pm »
> DIA_TPU.TPU

Hardly surprising. What makes you think it's generating a file with that name?

MarkMLl
MT+86 & Turbo Pascal v1 on CCP/M-86, multitasking with LAN & graphics in 128Kb.
Logitech, TopSpeed & FTL Modula-2 on bare metal (Z80, '286 protected mode).
Pet hate: people who boast about the size and sophistication of their computer.
GitHub repositories: https://github.com/MarkMLl?tab=repositories

peter-1

  • New Member
  • *
  • Posts: 11
Re: FPC Compiler
« Reply #22 on: January 31, 2022, 03:47:39 pm »
it all worked fine in TurboPascal under WIN98, WINXP or old DOS. I only have to create a UNIT and cannot run the program like this.

peter-1

  • New Member
  • *
  • Posts: 11
Re: FPC Compiler
« Reply #23 on: January 31, 2022, 03:50:37 pm »
the header of the program.

rvk

  • Hero Member
  • *****
  • Posts: 6585
Re: FPC Compiler
« Reply #24 on: January 31, 2022, 03:52:08 pm »
You will get a .ppu somewhere. A .tpu is for Turbo Pascal. FPC generates .ppu files.

What do you want to do with such a .ppu file?
(It doesn't execute by itself)

PascalDragon

  • Hero Member
  • *****
  • Posts: 5759
  • Compiler Developer
Re: FPC Compiler
« Reply #25 on: January 31, 2022, 03:54:16 pm »
it all worked fine in TurboPascal under WIN98, WINXP or old DOS. I only have to create a UNIT and cannot run the program like this.

Free Pascal does not generate TPUs. Instead the compiled variants of units consist each of a .ppu and a .o, so in your case look for a DIA_TPU.ppu and DIA_TPU.o (both are important if you want to store them somewhere).

peter-1

  • New Member
  • *
  • Posts: 11
Re: FPC Compiler
« Reply #26 on: January 31, 2022, 05:26:27 pm »
OK !
Thank you, thank you, thank you ! :D
That was my stupid mistake. Now it works !
Peter


MarkMLl

  • Hero Member
  • *****
  • Posts: 8035
Re: FPC Compiler
« Reply #27 on: January 31, 2022, 06:20:58 pm »
[Chuckle] The problem is that we all interpreted what you were saying as that it didn't save a .exe anywhere... which is why I started off from the position of not even assuming that you were running FPC.

MarkMLl
MT+86 & Turbo Pascal v1 on CCP/M-86, multitasking with LAN & graphics in 128Kb.
Logitech, TopSpeed & FTL Modula-2 on bare metal (Z80, '286 protected mode).
Pet hate: people who boast about the size and sophistication of their computer.
GitHub repositories: https://github.com/MarkMLl?tab=repositories

 

TinyPortal © 2005-2018