O/S: Windows
Dev-C++ v: 4.9.9.2
I installed all the libs for GTK+ through webupdate(devpack.org:GTK)
I have downloaded the GTK bundle for windows(libs and runtimes) from gtk.org extracted it to C:\GTK
added C:\GTK\BIN\ to PATH system environment variable
Added directories in dev-c++:
Binaries: C:\GTK\bin\
Lib:C:\GTK\lib
C++ Includes: C:\GTK\includes
when I run the basic program I get the fallowing error:
cc1plus.exe C:\Users\James\Documents\C++Apps\MyFirstApp\cc1plus.exe unrecognized command line option "-fcflags"
I didn't add any extra commands, all of them are default from the Dev-C++ I am new to C++(I have C-like experience) and wanted to compile a basic GTK+ program(which I created by default and hit compile) to test if everything was working
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
O/S: Windows
Dev-C++ v: 4.9.9.2
I installed all the libs for GTK+ through webupdate(devpack.org:GTK)
I have downloaded the GTK bundle for windows(libs and runtimes) from gtk.org extracted it to C:\GTK
added C:\GTK\BIN\ to PATH system environment variable
Added directories in dev-c++:
Binaries: C:\GTK\bin\ Lib:C:\GTK\lib
C++ Includes: C:\GTK\includes
when I run the basic program I get the fallowing error:
cc1plus.exe C:\Users\James\Documents\C++Apps\MyFirstApp\cc1plus.exe unrecognized command line option "-fcflags"
Compile log:
Compiler: Default compiler
Building Makefile: "C:\Users\James\Documents\C++Apps\MyFirstApp\Makefile.win"
Executing make...
make.exe -f "C:\Users\James\Documents\C++Apps\MyFirstApp\Makefile.win" all
g++.exe -c main.cpp -o obj/main.o -I"C:/Dev-Cpp/lib/gcc/mingw32/3.4.2/include" -I"C:/Dev-Cpp/include/c++/3.4.2/backward" -I"C:/Dev-Cpp/include/c++/3.4.2/mingw32" -I"C:/Dev-Cpp/include/c++/3.4.2" -I"C:/Dev-Cpp/include" -I"C:/GTK/include"
pkg-config --cflags gtkmm-2.4
-fexpensive-optimizations -O3cc1plus.exe: error: unrecognized command line option "-fcflags"
g++.exe:
pkg-config: No such file or directory g++.exe: gtkmm-2.4
: No such file or directorymake.exe: *** [obj/main.o] Error 1
Execution terminated
If they were the default settings I would not have mentioned it would I!?
Most DevPaks have a project template. Did you use that?
>
pkg-config --cflags gtkmm-2.4
What are the strange ` characters doing around that part?
> -fexpensive-optimizations -O3
When you are having problems getting anything to work, don't complicate teh issue by adding additional options.
> --cflags
I checked the GNU GCC documentation and there is no such option. What dod you intend it to do?
I didn't add any extra commands, all of them are default from the Dev-C++ I am new to C++(I have C-like experience) and wanted to compile a basic GTK+ program(which I created by default and hit compile) to test if everything was working
Do you have tutorial on setting up dev-c++ with GTK+2(preferably 2.12+), gtkmm on windows?
"all of them are default from the Dev-C++ "
No, they are not the default.
Have you tried compiling a simple hello world example?
Wayne