You are not logged in.

#1 2015-12-15 08:18:31

asdfiex
Member
From: Eastern Europe
Registered: 2015-12-15
Posts: 71

[SOLVED]CodeBlocks compilation terminated with fatal error won't abort

I'm trying to compile the current file inside a project when I get the error. Tried unsuccesfully to abort but still it seems to be stuck somewhere.
I can compile again if I restart Codeblocks, otherwise still stuck even inside another projects. Any help?

gcc -Wall -g  -c /home/florea/Projects/lxsession-0.5.2#download/lxclipboard/clipboard.c -o obj/Debug/lxsession-0.5.2#download/lxclipboard/clipboard.o
In file included from /home/florea/Projects/lxsession-0.5.2#download/lxclipboard/clipboard.c:36:0:
/usr/include/gtk-3.0/gdk/gdk.h:30:27: fatal error: gdk/gdkconfig.h: No such file or directory
compilation terminated.
Aborting build...
Process aborted (killed).
Aborting build...
Process aborted (killed).

Later edit:
Seems to work fine after I told the compiler where to find headers and library files.
I used this path:

 Settings->Compiler settings->Other options 

And I added:

-I/usr/include/gtk-3.0
-I/usr/include/gtk-3.0/gdk

Last edited by asdfiex (2015-12-16 16:00:47)

Offline

#2 2015-12-15 18:56:50

donatom
Member
From: West Coast (California)
Registered: 2012-12-23
Posts: 30

Re: [SOLVED]CodeBlocks compilation terminated with fatal error won't abort

You don't really need Code Blocks or any other IDE. You can use vim, emacs, gedit etc after you install (from package manager) gcc, etc. I have used vim to do java coding with no problem. Using vim is easier than resorting to code blocks, etc.

Here is a website with more explanation:   http://www.cyberciti.biz/faq/howto-comp … -in-linux/

Offline

#3 2015-12-16 15:59:56

asdfiex
Member
From: Eastern Europe
Registered: 2015-12-15
Posts: 71

Re: [SOLVED]CodeBlocks compilation terminated with fatal error won't abort

There's more convenient for me to use an IDE, donatom! Thanks anyway for your solution, that was good to know about!

So far I experienced it got stuck whenever there were linking problems. I'll mark the topic as being solved.

Offline

Board footer

Powered by FluxBB