1

I installed Dev C++ using Wine on Ubuntu 18.04 and the program is compiling but it not showing any output screen.

N0rbert
  • 99,918
  • 3
    Hi, if you do not have a really specific purpose to use Dev C++ which is native for windows you can take a look on various different IDE don't need an additional layer to work on linux. An example here: https://www.tecmint.com/best-linux-ide-editors-source-code-editors/ – AtomiX84 Sep 18 '18 at 17:32

2 Answers2

1

Code::Blocks from the default Ubuntu repositories is an alternative to Dev-C++ with similar features. Code::Blocks is a cross-platform Integrated Development Environment (IDE). It is based on a self-developed plugin framework allowing unlimited extensibility. Most of its functionality is already provided by plugins. Plugins included in the base package are:

  • Compiler frontend to many free compilers
  • Debugger frontend for GDB
  • Source formatter (based on AStyle)
  • Wizard to create new C++ classes
  • Code-completion / symbols-browser (work in progress)
  • Default MIME handler
  • Wizard to create new Code::Blocks plugins
  • To-do list
  • Extensible wizard based on scripts
  • Autosave (saves your work in the unfortunate case of a crash)

Compare this functionality to the functionality of Dev-C++ and you'll see the resemblance, so it's worth a try.

To install Code::Blocks open the terminal and type:

sudo apt install codeblocks g++ xterm gdb # optional g++-8
karel
  • 114,770
1

Ubuntu's official repository still has Code::Blocks 16.01 but the latest is 17.12. The command provided by Karel in this answer will install Code::Blocks v16.01. To install Code::Blocks v17.12, download it from here. Then run:

tar -xf codeblocks_17.12-1_amd64_stable.tar.xz
sudo dpkg -i *17.12*.deb
sudo apt-get install -f

Reference: N0rbert's answer

Kulfy
  • 17,696