Recent

Author Topic: Problems with Free Pascal  (Read 5025 times)

leduykhongngu

  • Newbie
  • Posts: 5
Problems with Free Pascal
« on: March 09, 2018, 05:00:39 pm »
Hi, I just have installed FPC 3.0.4 on windows 10 64bit, but my FPC IDE has some problems that I'm unable to fix :'(
1. I think something was wrong with the background and color of FPC IDE. https://imgur.com/a/knRIh
https://imgur.com/a/vwDFe
I think the color of FPC IDE in my computer is much brighter than others.
2. [SOLVED] when I use math unit, it compiles too slowly: https://imgur.com/a/R6HVv, and it has some delay before it running my program ( https://imgur.com/a/b6Ux7) . It just happens when I use math unit :'( (I have tried some unit such as gStack, gVector).
Sorry, I'm bad at English
« Last Edit: March 10, 2018, 07:20:33 am by leduykhongngu »

jamie

  • Hero Member
  • *****
  • Posts: 6130
Re: Problems with Free Pascal
« Reply #1 on: March 09, 2018, 11:14:41 pm »
Try this, at the top below "Program NAME" do this -
{$MODE objfpc} {$H+}
The only true wisdom is knowing you know nothing

RAW

  • Hero Member
  • *****
  • Posts: 868
Re: Problems with Free Pascal
« Reply #2 on: March 09, 2018, 11:18:08 pm »
1. Take a look at Download.png

2. Install: 
    Standard Installer:
     lazarus-1.8.2-fpc-3.0.4-win64.exe  2018-02-26  152.8 MB    
   
    Installer to compile x86 programs on windows x64 (optional):
     lazarus-1.8.2-fpc-3.0.4-cross-i386-win32-win64.exe  2018-02-26  38.8 MB

3. After the installation go to:  PROJECT -> NEW PROJECT -> SIMPLE PROGRAM

This way you can create easy FreePascal Programs and GUI Programs (LCL or LCL + ...).

That's what I would do...  :)

Code: Pascal  [Select][+][-]
  1. PROGRAM HelloWorld;
  2.  
  3.  USES
  4.   Crt;
  5.  
  6. BEGIN
  7.  ClrScr;
  8.  WriteLn('HELLO WORLD');
  9.  ReadLn;
  10. END.
Windows 7 Pro (x64 Sp1) & Windows XP Pro (x86 Sp3).

leduykhongngu

  • Newbie
  • Posts: 5
Re: Problems with Free Pascal
« Reply #3 on: March 10, 2018, 03:23:16 am »
jamie: Thanks, but it seems to not work well
RAW: Thank you, but I want to use Free Pascal IDE, not Lazarus :'(
I think the color of FPC IDE in my computer is much brighter than others

Handoko

  • Hero Member
  • *****
  • Posts: 5153
  • My goal: build my own game engine using Lazarus
Re: Problems with Free Pascal
« Reply #4 on: March 10, 2018, 05:07:11 am »
@leduykhongngu

When thing isn't running as what it should be, you can try to disable the antivirus or Windows Defender.

leduykhongngu

  • Newbie
  • Posts: 5
Re: Problems with Free Pascal
« Reply #5 on: March 10, 2018, 06:08:47 am »
Handoko: Thanks, but it still doesn't work well :'(

taazz

  • Hero Member
  • *****
  • Posts: 5368
Re: Problems with Free Pascal
« Reply #6 on: March 10, 2018, 06:48:09 am »
which os?
in windows https://ss64.com/nt/chcp.html
Good judgement is the result of experience … Experience is the result of bad judgement.

OS : Windows 7 64 bit
Laz: Lazarus 1.4.4 FPC 2.6.4 i386-win32-win32/win64

leduykhongngu

  • Newbie
  • Posts: 5
Re: Problems with Free Pascal
« Reply #7 on: March 10, 2018, 06:59:48 am »
taazz: It's 437 https://imgur.com/a/7k08Y.

taazz

  • Hero Member
  • *****
  • Posts: 5368
Re: Problems with Free Pascal
« Reply #8 on: March 10, 2018, 07:02:18 am »
although I do not think that's the problem try to set it to utf8 and see if that helps at all.
Good judgement is the result of experience … Experience is the result of bad judgement.

OS : Windows 7 64 bit
Laz: Lazarus 1.4.4 FPC 2.6.4 i386-win32-win32/win64

leduykhongngu

  • Newbie
  • Posts: 5
Re: Problems with Free Pascal
« Reply #9 on: March 10, 2018, 07:18:18 am »
taazz: thank you very much, I just have solved my 2nd problem, but the first problem still doesn't solve :'(

bee

  • Sr. Member
  • ****
  • Posts: 393
Re: Problems with Free Pascal
« Reply #10 on: March 11, 2018, 04:26:34 am »
It's 2018 today. Unless you're on terminal server, I think you better use modern graphical editor instead of FPC's console/text IDE. I usually use VisualStudio Code to write non-GUI apps using Free Pascal. Take a look at the attached image, or a gif here: http://gph.is/2IhsDnJ
-Bee-

A long time pascal lover.

 

TinyPortal © 2005-2018