c - How to configure codeblocks? -


why doesn't codeblock find compiler? tried install codeblocks(without mingw setup) c: , tried configure cygwin , since unsuccessful, uninstalled codeblocks , downloaded codeblocks mingw setup , installed on e:, thought have been preconfigured, settings older 1 remained:

enter image description here
had downloaded mingw setup , installed on e: : enter image description here

since had cygwin gcc selected compiler, site mentioned mingw setup had gcc/g++ compiler , debugger, i(thought) have select 1 list there many, selected one:

enter image description here
compiler produces error message:
enter image description here
if compiler included within installer, shouldn't had configured path itself? how configure codeblocks can start compiling c codes?

if codeblocks installer failed setup mingw you, here's how can manually add it. in global compiler settings dialog you're showing above:

  • select "gnu gcc compiler" (it should first option).
  • select "toolchain executables" tab
  • try hitting autodetect button. may or may not work if have multiple versions of mingw/tdm-gcc on computer.
  • if doesn't work:
    • hit "..." button , manually choose root folder of mingw version want use. (it's folder contains bin, include, , lib subfolders). call folder mingwroot.
    • select "search directories" tab, , select "compiler" subtab. hit add button , enter mingwroot\include
    • select "linker" subtab, hit add button , enter mingwroot\lib
    • select "resource compiler" subtab, hit add button , enter mingwroot\include

now whenever start new project, when wizard screen says "please select compiler use...", select "gnu gcc compiler" (again should first option).


Comments

Popular posts from this blog

java - SSE Emitter : Manage timeouts and complete() -

jquery - uncaught exception: DataTables Editor - remote hosting of code not allowed -

java - How to resolve error - package com.squareup.okhttp3 doesn't exist? -