Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to code and compile Pascal using Code Block?

Can I using CodeBlocks to code, compile, and debug Pascal file? If possible, how to do?

like image 447
giaosudauto Avatar asked Dec 07 '25 10:12

giaosudauto


2 Answers

As far as I know, CodeBlocks is primarily a C/C++ IDE.

The featurelist of CodeBlocks tells:

Multiple compiler support:
GCC (MingW / GNU GCC) MSVC++
clang
Digital Mars
Borland C++ 5.5
Open Watcom
...and more

Some other languages are supported with syntax highlighting. But you could try to configure your own compiler settings in

"Settings -> Compiler and debugger -> Global compiler settings -> [your compiler] -> Toolchain executables"

But you'll definitely have to install a separate pascal compiler before.

If you're looking for a free opensource pascal IDE, you should definitely take a look at lazarus

like image 58
Alexander Baltasar Avatar answered Dec 10 '25 14:12

Alexander Baltasar


According to http://wiki.codeblocks.org/index.php/Languages_supported_by_Code::Blocks_lexers CodeBlocks supports Pascal. I agree, however, that Lazarus is an excellent IDE for Object Pascal.

like image 21
jwdietrich Avatar answered Dec 10 '25 16:12

jwdietrich



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!