Author Topic: Freepascal support in Code::Blocks  (Read 22767 times)

Offline saidus

  • Multiple posting newcomer
  • *
  • Posts: 12
Freepascal support in Code::Blocks
« on: November 07, 2015, 02:02:15 pm »
Hi !
Thank you CodeBlocks team for this wonderfull IDE.
I just wonder if you can (plane) make integration of the Freepascal FPC Compiler in the compiler list.
I tried to do that yesterday and I fail.
So ; is it possible to integrate it ?

Thanks you so much .

Online stahta01

  • Lives here!
  • ****
  • Posts: 7682
    • My Best Post
Re: Freepascal support in Code::Blocks
« Reply #1 on: November 07, 2015, 05:21:20 pm »
Operating System (OS) information and Code::Blocks (CB) version info will likely help some help you.

OS Name and version?
CB Version?
Can you self build CB from SVN or Git repositories?

Tim S.
 
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9693
Re: Freepascal support in Code::Blocks
« Reply #2 on: November 07, 2015, 05:56:15 pm »
While it maybe theoretically possible (similar to the Fortran support) Code::Blocks was designed to be primarily a C/C++ (Fortran) IDE. So you might be able to add required compiler calls yourself (see how to setup custom compilers and customised build steps) but a lot of functionality would not be working, like code completion, probably syntax highlighting and dependency checks.

So unless someone is willing to write a dedicated plugin for Pascal I doubt that we will support it anytime soon.

What about Lazarus?
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://wiki.codeblocks.org/index.php?title=FAQ

Offline saidus

  • Multiple posting newcomer
  • *
  • Posts: 12
Re: Freepascal support in Code::Blocks
« Reply #3 on: November 09, 2015, 10:29:34 am »
lazarus is good,
but I like CB and theoritically if possible to  integrate it (FPC) , I must do it.
CB : 13.12 release.
Win XP, Win 7
Thanks !

Online stahta01

  • Lives here!
  • ****
  • Posts: 7682
    • My Best Post
Re: Freepascal support in Code::Blocks
« Reply #4 on: November 09, 2015, 07:51:37 pm »
lazarus is good,
but I like CB and theoritically if possible to  integrate it (FPC) , I must do it.
CB : 13.12 release.
Win XP, Win 7
Thanks !

I am willing to help you; but, many things will NOT work.
Code-Completion and Debugging are two of the items way beyond my knowledge and ability.
I only have Windows 7 no XP.

And, before I will start you need to confirm the FPC can do compile and link of at least two source files on the command line.
And, post the three separate commands that does the below steps.

1. command to compile; but not link the first source file.
2. command to compile; but not link the second source file.
3. command to link the two output files (likely object files) into an exe file.

That is because I know enough to add a compiler that can do the above to the current Compiler Plugin.
I do NOT have the time or the knowledge to create a new CB Plugin that would be needed if FPC can not do it in three steps like above.

Edit: Just reread MortenMacFly post with "dependency checks" likely not being supported; I have no idea on how to add "dependency checks" if they do NOT work.

Edit2: You may wish to see how well an CB Custom Makefile will work with FPC.

Tim S.
« Last Edit: November 10, 2015, 06:16:53 am by stahta01 »
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

heyrajuchalbiru

  • Guest
Re: Freepascal support in Code::Blocks
« Reply #5 on: December 10, 2015, 05:11:25 pm »
Any other mirror except Sourceforge to try it? Our office blocks Sourceforge downloads (and probably rightly so, after their recent actions!). When is code::blocks moving to github?

Thanks!

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9693
Re: Freepascal support in Code::Blocks
« Reply #6 on: December 10, 2015, 05:54:42 pm »
Any other mirror except Sourceforge to try it?
There used to be some... but I am not aware of any nowadays. This is funny, you know because we once moved from berlios to SF because berlios was not accessible. Whatever we do it seems always some people are blocked.

However, you can d/l at home or use proxies to work around this issue. I think not many companies block sourceforge (why, btw?!).

We will move to github if we use git as primary version control system. Until then SF will be the base. There are github mirrors, btw but I believe they all do not provide releases.
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://wiki.codeblocks.org/index.php?title=FAQ