User forums > Using Code::Blocks
Setting up a gtk Project ?
vmars316:
stahta01,
"crystal balls and divining mirrors"?
I am only asking for help,
I don't want to fight.
Anyways, I got cb to accept the paths stuff.
And i am trying to get the run the test prog
here:
file:///C:/GTKplus/share/gtk-doc/html/gdk/gdk-Testing.html
#include <gdk/gdk.h>
void gdk_test_render_sync (GdkWindow *window);
gboolean gdk_test_simulate_button (GdkWindow *window,
gint x,
gint y,
guint button,
GdkModifierType modifiers,
GdkEventType button_pressrelease);
gboolean gdk_test_simulate_key (GdkWindow *window,
gint x,
gint y,
guint keyval,
GdkModifierType modifiers,
GdkEventType key_pressrelease);
The next prob is, i am getting errors:
-------------- Build: Debug in vmProj041912-07 ---------------
Compiling: main.c
In file included from C:\GTKplus\include\gtk-2.0/gdk/gdkcairo.h:28,
from C:\GTKplus\include\gtk-2.0/gdk/gdk.h:33,
from C:\Users\vmars\AppData\Roaming\codeblocks\vmProjects\vmProj041912-07\main.c:1:
C:\GTKplus\include\gtk-2.0/gdk/gdkpixbuf.h:37:35: error: gdk-pixbuf/gdk-pixbuf.h: No such file or directory
Is there a prob with the forwardSlash / and backwardSlash \ ?
The file "gdk-pixbuf/gdk-pixbuf.h" is definitely there.
Thanks for your help...vm
stahta01:
Goodbye,
You really need to read the links posted to help you and read the rules you agreed to follow.
http://forums.codeblocks.org/index.php/topic,9996.0.html
Tim S.
vmars316:
The gtk source file in CB looks like this:
/* GDK - The GIMP Drawing Kit
* Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the
* Free Software Foundation, Inc., 59 Temple Place - Suite 330,
* Boston, MA 02111-1307, USA.
*/
/*
* Modified by the GTK+ Team and others 1997-2000. See the AUTHORS
* file for a list of people on the GTK+ Team. See the ChangeLog
* files for a list of changes. These files are distributed with
* GTK+ at ftp://ftp.gtk.org/pub/gtk/.
*/
#if defined(GTK_DISABLE_SINGLE_INCLUDES) && !defined (__GDK_H_INSIDE__) && !defined (GDK_COMPILATION)
#error "Only <gdk/gdk.h> can be included directly."
#endif
#ifndef __GDK_PIXBUF_H__
#define __GDK_PIXBUF_H__
#include <cairo.h>
#include <gdk/gdktypes.h>
#include <gdk/gdkrgb.h>
#include <gdk-pixbuf/gdk-pixbuf.h>
G_BEGIN_DECLS
/* Rendering to a drawable */
void gdk_pixbuf_render_threshold_alpha (GdkPixbuf *pixbuf,
GdkBitmap *bitmap,
int src_x,
int src_y,
int dest_x,
int dest_y,
int width,
int height,
int alpha_threshold);
#ifndef GDK_DISABLE_DEPRECATED
void gdk_pixbuf_render_to_drawable (GdkPixbuf *pixbuf,
GdkDrawable *drawable,
GdkGC *gc,
int src_x,
int src_y,
int dest_x,
int dest_y,
int width,
int height,
GdkRgbDither dither,
int x_dither,
int y_dither);
void gdk_pixbuf_render_to_drawable_alpha (GdkPixbuf *pixbuf,
GdkDrawable *drawable,
int src_x,
int src_y,
int dest_x,
int dest_y,
int width,
int height,
GdkPixbufAlphaMode alpha_mode,
int alpha_threshold,
GdkRgbDither dither,
int x_dither,
int y_dither);
#endif /* GDK_DISABLE_DEPRECATED */
void gdk_pixbuf_render_pixmap_and_mask_for_colormap (GdkPixbuf *pixbuf,
GdkColormap *colormap,
GdkPixmap **pixmap_return,
GdkBitmap **mask_return,
int alpha_threshold);
#ifndef GDK_MULTIHEAD_SAFE
void gdk_pixbuf_render_pixmap_and_mask (GdkPixbuf *pixbuf,
GdkPixmap **pixmap_return,
GdkBitmap **mask_return,
int alpha_threshold);
#endif
/* Fetching a region from a drawable */
GdkPixbuf *gdk_pixbuf_get_from_drawable (GdkPixbuf *dest,
GdkDrawable *src,
GdkColormap *cmap,
int src_x,
int src_y,
int dest_x,
int dest_y,
int width,
int height);
GdkPixbuf *gdk_pixbuf_get_from_image (GdkPixbuf *dest,
GdkImage *src,
GdkColormap *cmap,
int src_x,
int src_y,
int dest_x,
int dest_y,
int width,
int height);
G_END_DECLS
#endif /* __GDK_PIXBUF_H__ */
stahta01:
This thread NEEDS to be locked!
Tim S.
http://forums.codeblocks.org/index.php/topic,9996.0.html
--- Quote ---1. This is NOT a general programming board. "How do I write a program that....", "Can anybody teach me how to", "I have this homework", "My program doesn't run and I don't have the slightest idea of why because I'm a C++ newcomer", "What is a compiler", "What does gcc do" is the kind of questions that is FORBIDDEN to ask.
2. Compiler/Linker errors are NOT Code::Blocks errors. Usually, C++ newcomers tend to confuse the Editor/IDE (Code::Blocks) with the Compiler (MINGW / GCC). You may see some errors in the compiler output because you missed to do something right in your code. But that's not Code::Blocks troubleshooting, that's C++ troubleshooting and does not belong in here. If your program doesn't compile, READ THE C++ MANUAL.
3. Is your problem library, framework specific? There are appropriate forums for it, not the Code::Blocks forum.
--- End quote ---
MortenMacFly:
Topic locked as you are not willing to read/understand what and how to post.
WE CANNOT HELP YOU with the information you are providing here.
Try again, but follow the rules.
Navigation
[0] Message Index
[*] Previous page
Go to full version