Menu

GTK Compiling/Installation problems

James2432
2009-02-17
2012-09-26
  • James2432

    James2432 - 2009-02-17

    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 -O3

    cc1plus.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 directory
    make.exe: *** [obj/main.o] Error 1

    Execution terminated

     
    • cpns

      cpns - 2009-02-19

      If they were the default settings I would not have mentioned it would I!?

      Most DevPaks have a project template. Did you use that?

       
    • cpns

      cpns - 2009-02-17

      > 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?

       
      • James2432

        James2432 - 2009-02-17

        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

         
      • James2432

        James2432 - 2009-02-17

        Do you have tutorial on setting up dev-c++ with GTK+2(preferably 2.12+), gtkmm on windows?

         
    • Wayne Keen

      Wayne Keen - 2009-02-18

      "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

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.