User forums > Using Code::Blocks

setting up Code::Blocks to compile gtkmm 3.0 applicatons

<< < (2/2)

darrylctx:
Tim,

Thanks for the help.  Restarting code blocks fixed the gtkmm 2.0 reference.  Damn linux.....you never have to restart it, so you get used to not going through the whole reboot, restart routine every time you have a problem ;-). 

I am still getting the no input files error.  See below.

g++ -Wall 'pkg-config --cflags gtk+-3.0' -g -pthread -I/usr/include/gtk-3.0 -I/usr/include/at-spi2-atk/2.0 -I/usr/include/at-spi-2.0 -I/usr/include/dbus-1.0 -I/usr/lib/arm-linux-gnueabihf/dbus-1.0/include -I/usr/include/gtk-3.0 -I/usr/include/gio-unix-2.0/ -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/harfbuzz -I/usr/include/pango-1.0 -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libpng12 -I/usr/include/glib-2.0 -I/usr/lib/arm-linux-gnueabihf/glib-2.0/include -pthread -I/usr/include/gtkmm-3.0 -I/usr/lib/arm-linux-gnueabihf/gtkmm-3.0/include -I/usr/include/atkmm-1.6 -I/usr/include/gtk-3.0/unix-print -I/usr/include/gdkmm-3.0 -I/usr/lib/arm-linux-gnueabihf/gdkmm-3.0/include -I/usr/include/giomm-2.4 -I/usr/lib/arm-linux-gnueabihf/giomm-2.4/include -I/usr/include/pangomm-1.4 -I/usr/lib/arm-linux-gnueabihf/pangomm-1.4/include -I/usr/include/glibmm-2.4 -I/usr/lib/arm-linux-gnueabihf/glibmm-2.4/include -I/usr/include/gtk-3.0 -I/usr/include/at-spi2-atk/2.0 -I/usr/include/at-spi-2.0 -I/usr/include/dbus-1.0 -I/usr/lib/arm-linux-gnueabihf/dbus-1.0/include -I/usr/include/gtk-3.0 -I/usr/include/gio-unix-2.0/ -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/harfbuzz -I/usr/include/pango-1.0 -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 -I/usr/include/sigc++-2.0 -I/usr/lib/arm-linux-gnueabihf/sigc++-2.0/include -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libpng12 -I/usr/include/glib-2.0 -I/usr/lib/arm-linux-gnueabihf/glib-2.0/include -I/usr/include/cairomm-1.0 -I/usr/lib/cairomm-1.0/include  -c /home/pi/cpp/test1/test1/test1.cpp -o obj/Debug/test1.o
g++: fatal error: no input files
compilation terminated.

darrylctx:
As I expected, it was a silly error.   The compiler is looking for .cc files.....I had called it .cpp.

Thanks for the help.

BlueHazzard:

--- Quote ---Thanks for the help.  Restarting code blocks fixed the gtkmm 2.0 reference.  Damn linux.....you never have to restart it,
--- End quote ---
i think this is a codeblocks issue... As soon as you alter the build settings (or even only hit OK in the build settings) it should do the caching.... Not only after restarting codeblocks...

stahta01:

--- Quote from: BlueHazzard on July 17, 2018, 09:48:19 pm ---
--- Quote ---Thanks for the help.  Restarting code blocks fixed the gtkmm 2.0 reference.  Damn linux.....you never have to restart it,
--- End quote ---
i think this is a codeblocks issue... As soon as you alter the build settings (or even only hit OK in the build settings) it should do the caching.... Not only after restarting codeblocks...

--- End quote ---

I seem to be the only one that has this problem most of the time; but, I am on Windows OS.
The people on Linux seem to have good luck closing the project and reopening it.
I think what we need is a project reload feature that fixes the issue on both Linux and Windows.
An clear project cache option would also likely be a good work around.

Tim S.

Navigation

[0] Message Index

[*] Previous page

Go to full version