Menu

a gtk project error

2003-01-18
2012-09-26
  • Nobody/Anonymous

    i try a new project of GUI >gtk
    i am failed
    i can't know why,can anybody help me?
    thanks in advance.

    in compiler:
    cc1.exe F:\cy\Dev-Cpp\myp\gtk1\cc1.exe
    unrecognized option `-fnative-struct'
    F:\cy\Dev-Cpp\myp\gtk1\Makefile.win
    [Build Error]  [main.o] Error 1

    in compile log:
    Compiler: Default compiler
    Building Makefile: "F:\cy\Dev-Cpp\myp\gtk1\Makefile.win"
    Executing  make...
    make.exe -f "F:\cy\Dev-Cpp\myp\gtk1\Makefile.win" all
    gcc.exe -c main.c -o main.o -I"F:/cy/Dev-Cpp/include"  -I"F:\cy\Dev-Cpp\\include\gtk-2.0" -I"F:\cy\Dev-Cpp\\include\gtkdeps-2.0" -I"F:\cy\Dev-Cpp\\lib\gtk-2.0\include" -I"F:\cy\Dev-Cpp\\include\atk-1.0" -I"F:\cy\Dev-Cpp\\include\pango-1.0" -I"F:\cy\Dev-Cpp\\include\glib-2.0" -I"F:\cy\Dev-Cpp\\lib\glib-2.0" -I"F:\cy\Dev-Cpp\\lib\glib-2.0\include" -fnative-struct

    cc1.exe: unrecognized option `-fnative-struct'

    make.exe: *** [main.o] Error 1

    Execution terminated

     
    • Nobody/Anonymous

      Remove
      -fnative-struct option
      and add
      -mms-bitfields
      That will compile your program

       

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.