Code::Blocks Forums

User forums => Help => Topic started by: cracknut on January 28, 2012, 02:27:10 pm

Title: unable to connect to compiler!!
Post by: cracknut on January 28, 2012, 02:27:10 pm
guys!!,
i have recently switched over to code::blocks for programming in c,
and i am really pissed off to unable to identify where the problem is.

problem:
i have installed the code blocks along with the mingw compiler and edited the settings in settings>compiler and debugger>toolchain executables.. but even then i am unable to run even my "hello world"!!!!
 :( :( :(

i am attaching the snapshot of the debugging tab!!! please someone help me out.
thanks in advance.

error:
Compiling: main.c
mingw32-gcc.exe: pkg-config: No such file or directory
mingw32-gcc.exe: –cflags: No such file or directory
mingw32-gcc.exe: gtk+-2.0: No such file or directory
mingw32-gcc.exe: gmodule-export-2.0: No such file or directory
mingw32-gcc.exe: pkg-config: No such file or directory
mingw32-gcc.exe: –cflags: No such file or directory
mingw32-gcc.exe: libglade-2.0: No such file or directory
Process terminated with status 1 (0 minutes, 0 seconds)
0 errors, 0 warnings

 ??? ??? ???

[attachment deleted by admin]
Title: Re: unable to connect to compiler!!
Post by: ptDev on January 28, 2012, 02:38:06 pm
It isn't Code::Blocks who's complaining, it's GCC.

What are your project settings?
I'm confused as to why would GCC attempt to execute a pkg-config script, unless you are trying to compile a project intended for Linux or cygwin.
Title: Re: unable to connect to compiler!!
Post by: oBFusCATed on January 28, 2012, 07:12:35 pm
cracknut: Take a look at this page: http://wiki.codeblocks.org/index.php?title=FAQ-Compiling_%28errors%29

I guess you need to install pkg-config, but I'm not sure it works on windows.
Title: Re: unable to connect to compiler!!
Post by: Jenna on January 28, 2012, 07:56:07 pm
The messages look, like you do not use backticks ( "`" aka grave accent ) around the pkg-config statements.