Author Topic: Installing Pascal Compiler on C[]::Blocks Release 10.05  (Read 11975 times)

Offline heloworld99

  • Single posting newcomer
  • *
  • Posts: 2
Installing Pascal Compiler on C[]::Blocks Release 10.05
« on: May 26, 2011, 12:07:03 am »
Sadly, after believing that once I finished downloading this mega-cross-platform IDE, after noticing how many programming languages could be edited and compiled under Code::Blocks, I set out to use Pascal and even thought it highlights everything nicely within the code, when I try to Build & then Run the program, there is nothing happening with the compile (probably b/c it's missing):
"It seems that this file has not been built yet.  Do you want to build it now?" YES, NO, CANCEL.

If I hit Yes, it still does nothing; if I hit No, it takes me to the Run Screen where it says it's missing the .exe file and it ran the code in 0.00 seconds, but no output is delivered to this Run screen.  If I hit Cancel, nothing will occur - except it takes me back to the edit mode of the file I put in the following code:
//=======================
program habarnam;
begin
    writenln('hello habarnuam')
end.
//=======================
Clearly, I'm missing something; I need help installing the Pascal Compiler, if anyone is willing to walk me thru the steps, thanks in advance!

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9723
Re: Installing Pascal Compiler on C[]::Blocks Release 10.05
« Reply #1 on: May 26, 2011, 07:41:03 am »
Clearly, I'm missing something;
Yes, as said on the webpage clearly, Code::Blocks is a C/C++ IDE. Other languages are only supported by means of syntax highlighting. However, you could setup yourself a "hand-crafted" compiler using the Tools / Tools+ menu though.
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 heloworld99

  • Single posting newcomer
  • *
  • Posts: 2
Re: Installing Pascal Compiler on C[]::Blocks Release 10.05
« Reply #2 on: May 27, 2011, 03:52:29 am »
Any idea where I could get help with installing Pascal Compiler on C::B?
Don't be upset with me, I'm just as stupid when it comes to configuring IDEs (in general), as I am with repairing my car:  I pay a mechanic to fix it, I only know how to drive it.

I will also be refraining from posting a new message on your forum since you seem not to like newbies questions on particular subject sections and since I'm not sure where to find the help, I'll politely ask you for directions.

Thanks in advance (whether you want to help or not - at least for listening).

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9723
Re: Installing Pascal Compiler on C[]::Blocks Release 10.05
« Reply #3 on: May 27, 2011, 09:26:29 am »
Any idea where I could get help with installing Pascal Compiler on C::B?
I don't think such thing exist. IMHO you now have the following options:
- either you try to create yourself the required commands in the tools/tools+ menu, probably using macros to make it more generic
- you try to implement an own compiler, which requires patching/compiling the C::B sources - here an issue is that code completion will not work, but probably you can inspire yourself by the FortranProject plugin (http://darmar.vgtu.lt) -> embedding Fortran into Code::Blocks
- find an IDE dedicated to Pascal development - this would probably be the easiest, as (not being un-polite, just stating facts) Code::Blocks was designed for C/C++ and only for that.

Sorry.
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