syntax error - Code::Blocks, process terminated with status 2 unexpected "(" C programming language -


i've installed code::blocks. check if worked created new project made hello world program in c went this.

#include<stdio.h> main() {   printf("hello, world"); } 

however when go compile error.

-------------- build: src in code::blocks wx2.8.x (compiler: gnu gcc compiler)---------------  g++ -wall (invalid) -pipe -mthreads -fmessage-length=0 -fexceptions -winvalid-pch -dhave_w32api_h -d__wxmsw__ -dwxusingdll -dcbdebug -dcb_precomp -dwx_precomp -dwxuse_unicode -dbuilding_plugin -iquote.objs/include -i.objs/include -i. -i"(invalid)/include" -i"(invalid)/lib/gcc_dll/mswu" -isdk/wxscintilla/include -isdk/wxpropgrid/include -iinclude/tinyxml -iinclude -iinclude/scripting/include -iinclude/scripting/sqplus -iinclude/mozilla_chardet -iinclude/mozilla_chardet/mfbt -iinclude/mozilla_chardet/nsprpub/pr/include -iinclude/mozilla_chardet/xpcom -iinclude/mozilla_chardet/xpcom/base -iinclude/mozilla_chardet/xpcom/glue -c /home/jackphd/trunk/src/include/sdk.h -o .objs/include/sdk.h.gch /bin/sh: 1: syntax error: "(" unexpected process terminated status 2 (0 minute(s), 0 second(s)) 0 error(s), 0 warning(s) (0 minute(s), 0 second(s)) 

when select source dialogue comes select src tick this target contains target contains project's main executable , run host in terminal

i've tried changing project file, getting rid of parenthesis looking same program on web see if syntax had changed since documentation i'm reading had been published no avail.

you can try this. i'm not sure work you. setting->compiler->toolchain executable->auto detect , ok.


Comments

Popular posts from this blog

google chrome - Developer tools - How to inspect the elements which are added momentarily (by JQuery)? -

angularjs - Showing an empty as first option in select tag -

php - Cloud9 cloud IDE and CakePHP -