Technical support > Windows

R24362 - Codeblocks: Compilation Errors

<< < (2/6) > >>

odie:

--- Quote from: Destructavator on May 07, 2009, 12:45:12 pm ---Muton says he got it to work, I'm going to try his method and see how it works out on my system.

I'd recommend, BTW, not overwriting the old codeblocks with the new one, but instead unzipping the new codeblocks to a new, different folder or directory (As if you were starting from scratch, except you really aren't).


--- End quote ---

Hey Destructavator,

I seemed to try combining Codeblocks and it seemed to hav progressed much further.

Now my errors seemed gtk related:


--- Code: ---||=== ufo2map, windows_debug ===|
c:\development\Codeblocks\mingw\include\jconfig.h|25|warning: "HAVE_STDLIB_H" redefined|
c:\development\Codeblocks\mingw\include\SDL\SDL_config.h|67|warning: this is the location of the previous definition|
||=== ufo, windows_debug ===|
C:\SVN Update\src\client\renderer\r_error.h|49|warning: 'R_CheckErrorDebug' defined but not used|
||=== uforadiant, windows_debug ===|
||warning: command line option "-Wno-non-virtual-dtor" is valid for C++/ObjC++ but not for C|
||warning: command line option "-Wno-non-virtual-dtor" is valid for C++/ObjC++ but not for C|
C:\SVN Update\src\tools\radiant\libs\gtkutil\filechooser.cpp|149|warning: 'shortcutFoldersInBaseDir' defined but not used|
C:\SVN Update\src\tools\radiant\libs\gtkutil\glfont.cpp|25|error: gtk/gtkglwidget.h: No such file or directory|
C:\SVN Update\src\tools\radiant\libs\gtkutil\glfont.cpp||In function 'GLFont glfont_create(const char*)':|
C:\SVN Update\src\tools\radiant\libs\gtkutil\glfont.cpp|31|error: 'PangoFontDescription' was not declared in this scope|
C:\SVN Update\src\tools\radiant\libs\gtkutil\glfont.cpp|31|error: 'font_desc' was not declared in this scope|
C:\SVN Update\src\tools\radiant\libs\gtkutil\glfont.cpp|31|error: 'pango_font_description_from_string' was not declared in this scope|
C:\SVN Update\src\tools\radiant\libs\gtkutil\glfont.cpp|33|error: 'PangoFont' was not declared in this scope|
C:\SVN Update\src\tools\radiant\libs\gtkutil\glfont.cpp|33|error: 'font' was not declared in this scope|
C:\SVN Update\src\tools\radiant\libs\gtkutil\glfont.cpp|33|error: 'gdk_gl_font_use_pango_font' was not declared in this scope|
C:\SVN Update\src\tools\radiant\libs\gtkutil\glfont.cpp|36|error: 'PangoFontMetrics' was not declared in this scope|
C:\SVN Update\src\tools\radiant\libs\gtkutil\glfont.cpp|36|error: 'font_metrics' was not declared in this scope|
C:\SVN Update\src\tools\radiant\libs\gtkutil\glfont.cpp|36|error: 'pango_font_get_metrics' was not declared in this scope|
C:\SVN Update\src\tools\radiant\libs\gtkutil\glfont.cpp|38|error: 'pango_font_metrics_get_ascent' was not declared in this scope|
C:\SVN Update\src\tools\radiant\libs\gtkutil\glfont.cpp|39|error: 'pango_font_metrics_get_descent' was not declared in this scope|
C:\SVN Update\src\tools\radiant\libs\gtkutil\glfont.cpp|40|error: 'PANGO_PIXELS' was not declared in this scope|
C:\SVN Update\src\tools\radiant\libs\gtkutil\glfont.cpp|42|error: 'pango_font_metrics_unref' was not declared in this scope|
C:\SVN Update\src\tools\radiant\libs\gtkutil\glfont.cpp|45|error: 'pango_font_description_free' was not declared in this scope|
||=== Build finished: 15 errors, 6 warnings ===|
C:\SVN Update\src\tools\radiant\libs\gtkutil\glwidget.cpp|29|error: gtk/gtkglwidget.h: No such file or directory|
C:\SVN Update\src\tools\radiant\libs\gtkutil\glwidget.cpp|45|error: 'GDK_GL_RGBA' was not declared in this scope|
C:\SVN Update\src\tools\radiant\libs\gtkutil\glwidget.cpp|46|error: 'GDK_GL_DOUBLEBUFFER' was not declared in this scope|
C:\SVN Update\src\tools\radiant\libs\gtkutil\glwidget.cpp|47|error: 'GDK_GL_BUFFER_SIZE' was not declared in this scope|
C:\SVN Update\src\tools\radiant\libs\gtkutil\glwidget.cpp|48|error: 'GDK_GL_ATTRIB_LIST_NONE' was not declared in this scope|
C:\SVN Update\src\tools\radiant\libs\gtkutil\glwidget.cpp|52|error: 'GDK_GL_RGBA' was not declared in this scope|
C:\SVN Update\src\tools\radiant\libs\gtkutil\glwidget.cpp|53|error: 'GDK_GL_DOUBLEBUFFER' was not declared in this scope|
C:\SVN Update\src\tools\radiant\libs\gtkutil\glwidget.cpp|54|error: 'GDK_GL_BUFFER_SIZE' was not declared in this scope|
C:\SVN Update\src\tools\radiant\libs\gtkutil\glwidget.cpp|55|error: 'GDK_GL_ATTRIB_LIST_NONE' was not declared in this scope|
C:\SVN Update\src\tools\radiant\libs\gtkutil\glwidget.cpp|69|error: expected initializer before '*' token|
||=== Build finished: 25 errors, 6 warnings ===|

--- End code ---

Here's wat i did:
1) Used back my old working CB (original from wiki).
2) Downloaded Mattn's latest CB, extracted the MingGW stuff

Destructavator:
Hmmm... This issue seems to be very technical and a bit beyond my expertise - I've done plenty of programming and coding before, worked with other IDEs, but I'm new to Codeblocks and know less about C/C++ than Java and other languages.  I think I'm going to let Mattn, Muton, and other coders work this out in the other thread.  I'm sure there's a solution, but the others would probably be more likely to find it than I would.

In the meantime, I've got a few ideas for the gunshot sounds I might try...

odie:

--- Quote from: Destructavator on May 08, 2009, 07:09:05 am ---Hmmm... This issue seems to be very technical and a bit beyond my expertise - I've done plenty of programming and coding before, worked with other IDEs, but I'm new to Codeblocks and know less about C/C++ than Java and other languages.  I think I'm going to let Mattn, Muton, and other coders work this out in the other thread.  I'm sure there's a solution, but the others would probably be more likely to find it than I would.

In the meantime, I've got a few ideas for the gunshot sounds I might try...

--- End quote ---
:P

Thanks Destructavator....

Actually, i used to be a C programmer.... lol. Abt 10 years back from sch and after sch.... for my FYP (Final year proj) it was a c project too..... just tat i have lost touch and getting lazier.... :P

Nvm, i saw mattn suggesting some CB new package? hmmmm, trying it and waiting for him to show me the direct latest link.... so mani on sites now i am confused BIG time. lol.

happy gunshooting......

Destructavator:
Yeah, I started out programming on Commodore computers way back in the '80s as a child, various languages, even got to work with assembly language on those things.  I also wrote a lot of games for the Commodore 64, but often got frustrated because I constantly wanted something for a game that computers - any typical home computer at the time - just wasn't capable of because the technology wasn't developed to where it is now.  Things sure have changed...

odie:

--- Quote from: Destructavator on May 08, 2009, 07:20:04 am ---Yeah, I started out programming on Commodore computers way back in the '80s as a child, various languages, even got to work with assembly language on those things.  I also wrote a lot of games for the Commodore 64, but often got frustrated because I constantly wanted something for a game that computers - any typical home computer at the time - just wasn't capable of because the technology wasn't developed to where it is now.  Things sure have changed...

--- End quote ---
I agree i agree! Computers have evolved TONS. i still rmbr my first AT and XT..... fonds of those 4 colors screen. lol

Ops.... sidetracked. Lol.

Okie, i tried using CB 5545, I need to know why the gtk not working as like last time....
I tried including the 2 files i mentioned earlier and i looked into the codes:

--- Code: ---G_BEGIN_DECLS

gboolean      gtk_widget_set_gl_capability (GtkWidget    *widget,
                                            GdkGLConfig  *gl_config,
                                            GdkGLContext *share_list,
                                            gboolean      direct,
                                            int           render_type);

gboolean      gtk_widget_is_gl_capable     (GtkWidget    *widget);

--- End code ---

See that GdkGLConfig *gl_config......?

That is where the codes' stuck..... i am not familar with gtkradiant at all.... anione can advise on tat?
Whether the 2 header files are valid at all... (See attached zip file i have attached earlier)

Ops, my bad.... the file is here attached again for all.

[attachment deleted by admin]

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version