![]() |
|
|
#201 | ||||||||
Senior Member
![]()
|
My Assembly app of spambot blockage!
Code:
.data
msg: .asciz "STFU!!!!\n"
len = . - msg - 1
spam: .long 1
.text
.globl start
start:
pushl $len
pushl $msg
pushl $1
movl $4, %eax
cmp $1, spam
jb end
call syscall
addl $12, %esp
jmp start
end:
pushl $0
movl $1, %eax
call syscall
syscall:
int $0x80
ret
Edit: I forgot to clean the stack. :S Fixed. Edit: Oh, and to build on top of my earlier rant about high level language suckage, I made this same thing in C, and it used about twice as much memory. Which shows that our compilers are absolute shite. They should be optimizing the resultant Assembly to pretty damn near what you would get if you wrote it directly in Assembly. And, on top of that, I have absolutely no experience in Assembly, so my code is probably shite, and it could probably be done much better. So our compilers are in a sad state. -_- (oh, I used GCC, BTW) Edit: And C is what I find somewhat acceptable. I just did the same thing in interpreted Python, and it used nearly 20 TIMES THE RAM! This is the shite that everyone wants to move to. Twenty times worse performance, and all of it could be avoided by a little more effort from the dev. Edit: Ruby isn't as bad as Python, but it still uses about ten times as much RAM as assembly. Which is still horrible. Edit: Oh, and on to the worst of all. Java. It doesn't even have any of the advantages of a usual high level language. Except that it uses 100 times the memory. ![]() Edit: Flash uses somewhere around 80 times the memory of Assembly. But that is a flawed stat. Since I'm just printing stuff to the debug console, and not using a shitty UI like most Flash apps. Also, because of the shittyness of the Flash VM, every Flash app will rape your CPU. (it uses 100% (of one core)) |
||||||||
|
|||||||||
| Last edited by paintba||er; 10-12-2008 at 01:24 AM. | |||||||||
|
|
#202 | |||||||||
Senior Member
![]()
|
Code:
#include <stdio.h>
int main(){
int a = 3;
switch(a){
case 1:
printf("It's one.\n");
break;
case 2:
printf("It's two.\n");
break;
case 3:
printf("Hurray, it's three!\n");
break;
}
return 0;
}
__________________
Sex, Drugs, and Unix ☭ Quote:
|
|||||||||
|
||||||||||
| Last edited by paintba||er; 10-25-2008 at 03:34 AM. | ||||||||||
|
|
#203 | |||||||||
Senior Member
![]()
|
Here's an example of a function for you as well.
Code:
#include <stdio.h>
int addStuff(int a, int b){
return a + b;
}
int main(){
int a = 5;
int b = 4;
printf("%d + %d = %d\n", a, b, addStuff(a, b));
return 0;
}
__________________
Sex, Drugs, and Unix ☭ Quote:
|
|||||||||
|
|
|
#204 | ||||||||
Senior Member
![]()
|
Code:
procedure name var name:string put "what is your name?"] get name put "Hello ", name end name name procedure age var age:int put "what is your age?" get age print "You are ", age, " years old" end age age
__________________
|
||||||||
|
|
|
#205 | |||||||||
Senior Member
![]()
|
Code:
#include <stdio.h>
void name(){
char name[20];
printf("What is your name: ");
scanf("%s", name);
printf("Hello %s\n", name);
}
void age(){
int age;
printf("What is your age: ");
scanf("%d", &age);
printf("You are %d years old\n", age);
}
int main(){
name();
age();
return 0;
}
__________________
Sex, Drugs, and Unix ☭ Quote:
|
|||||||||
|
|
|
#206 | ||||||||
Senior Member
![]()
|
Code:
#include <stdio.h>
void pointer()
{
int x; /* A normal integer*/
int *p; /* A pointer to an integer ("*p" is an integer, so p
must be a pointer to an integer) */
p = &x; /* Read it, "assign the address of x to p" */
scanf( "%d", &x ); /* Put a value in x, we could also use p here */
printf( "%dn", *p); /* Note the use of the * to get the value */
getchar();
}
void Case()
{
int a;
printf("What is your age?");
scanf("%d", &a);
switch(a)
{
case 1:
printf("nice!.n");
break;
case 2:
printf("It's two.n");
break;
case 3:
printf("Hurray, it's three!n");
break;
}
int main(){
pointer();
Case();
return 0;
}
__________________
|
||||||||
|
|
|
#207 | |||||||||
Senior Member
![]()
|
You didn't close the "Case()" function. Put a "}" at the end of it. Dummy.
![]()
__________________
Sex, Drugs, and Unix ☭ Quote:
|
|||||||||
|
|
|
#208 | ||||||||
Senior Member
![]()
|
o....
stfu *goes and finds paper bag*
__________________
|
||||||||
|
|
|
#209 | |||||||||
Senior Member
![]()
|
Oh, another thing that I didn't mention on that, but that I should. Don't capitalize function names. It's a bitch when you have to keep capitalizing shit. And it's bad style. Capitalization is generally reserved for either constants, (like a variable, except that it can't change (you capitilize the whole word)) and, in some programming styles, word separation. (likeThis)
On a different topic, we should really get a small group of devs and artists (and perhaps some math/physics guys) and make an open source Little Big Planet clone. The game looks great, but it also seems very simple, compared to most games. It's 2D, (well, it's got a bit of "fake" 3D) and it's based mostly on physics....And a nice level editor. A dedicated team could probably get it done in a few months to a year. And it could be really successful. Because everyone without a PS3 would probably flock to it.
__________________
Sex, Drugs, and Unix ☭ Quote:
|
|||||||||
|
|
|
#210 | ||||||||
Senior Member
![]()
|
Code:
#include <stdio.h>
#include <stdlib.h>
#include <gtk-2.0/gtk/gtk.h>
/*
* simple gtk application
* author jan bodnar
* date february 17, 2008
*/
int main(int argc, char** argv) {
GtkWidget *window;
gtk_init(&argc, &argv);
window = gtk_window_new(GTK_WINDOW_TOPLEVEL);
gtk_window_set_position(GTK_WINDOW(window), GTK_WIN_POS_CENTER);
gtk_window_set_default_size(GTK_WINDOW(window), 200, 100);
gtk_window_set_title(GTK_WINDOW(window), "gtkapp");
gtk_widget_show(window);
g_signal_connect(window, "destroy",
G_CALLBACK (gtk_main_quit), NULL);
gtk_main();
return (EXIT_SUCCESS);
}
Code:
Running "/usr/bin/make -f Makefile CONF=Debug clean" in /home/bash/NetBeansProjects/GTK
/usr/bin/make -f nbproject/Makefile-Debug.mk SUBPROJECTS= .clean-conf
make[1]: Entering directory `/home/bash/NetBeansProjects/GTK'
rm -f -r build/Debug
rm -f dist/Debug/GNU-Linux-x86/gtk
make[1]: Leaving directory `/home/bash/NetBeansProjects/GTK'
Clean successful. Exit value 0.
Running "/usr/bin/make -f Makefile CONF=Debug" in /home/bash/NetBeansProjects/GTK
/usr/bin/make -f nbproject/Makefile-Debug.mk SUBPROJECTS= .build-conf
make[1]: Entering directory `/home/bash/NetBeansProjects/GTK'
mkdir -p build/Debug/GNU-Linux-x86
gcc -c -g -I/usr/include/gtk-2.0 -o build/Debug/GNU-Linux-x86/newmain.o newmain.c
In file included from /usr/include/gtk-2.0/gdk/gdkcairo.h:23,
from /usr/include/gtk-2.0/gdk/gdk.h:30,
from /usr/include/gtk-2.0/gtk/gtk.h:31,
from newmain.c:2:
/usr/include/gtk-2.0/gdk/gdkcolor.h:30:19: error: cairo.h: No such file or directory
In file included from /usr/include/gtk-2.0/gdk/gdkcolor.h:31,
from /usr/include/gtk-2.0/gdk/gdkcairo.h:23,
from /usr/include/gtk-2.0/gdk/gdk.h:30,
from /usr/include/gtk-2.0/gtk/gtk.h:31,
from newmain.c:2:
/usr/include/gtk-2.0/gdk/gdktypes.h:32:18: error: glib.h: No such file or directory
/usr/include/gtk-2.0/gdk/gdktypes.h:33:25: error: pango/pango.h: No such file or directory
/usr/include/gtk-2.0/gdk/gdktypes.h:34:25: error: glib-object.h: No such file or directory
/usr/include/gtk-2.0/gdk/gdktypes.h:51:23: error: gdkconfig.h: No such file or directory
In file included from /usr/include/gtk-2.0/gdk/gdkcolor.h:31,
from /usr/include/gtk-2.0/gdk/gdkcairo.h:23,
from /usr/include/gtk-2.0/gdk/gdk.h:30,
from /usr/include/gtk-2.0/gtk/gtk.h:31,
from newmain.c:2:
/usr/include/gtk-2.0/gdk/gdktypes.h:64: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘typedef’
/usr/include/gtk-2.0/gdk/gdktypes.h:74: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘GdkWChar’
/usr/include/gtk-2.0/gdk/gdktypes.h:87: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘GdkNativeWindow’
/usr/include/gtk-2.0/gdk/gdktypes.h:174: error: expected ‘)’ before ‘data’
/usr/include/gtk-2.0/gdk/gdktypes.h:178: error: expected ‘)’ before ‘data’
/usr/include/gtk-2.0/gdk/gdktypes.h:182: error: expected specifier-qualifier-list before ‘gint’
/usr/include/gtk-2.0/gdk/gdktypes.h:188: error: expected specifier-qualifier-list before ‘gint’
/usr/include/gtk-2.0/gdk/gdktypes.h:196: error: expected specifier-qualifier-list before ‘gint’
/usr/include/gtk-2.0/gdk/gdktypes.h:204: error: expected specifier-qualifier-list before ‘gint’
In file included from /usr/include/gtk-2.0/gdk/gdkcairo.h:23,
from /usr/include/gtk-2.0/gdk/gdk.h:30,
from /usr/include/gtk-2.0/gtk/gtk.h:31,
from newmain.c:2:
/usr/include/gtk-2.0/gdk/gdkcolor.h:33: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘G_BEGIN_DECLS’
/usr/include/gtk-2.0/gdk/gdkcolor.h:67: error: expected specifier-qualifier-list before ‘GObject’
/usr/include/gtk-2.0/gdk/gdkcolor.h:81: error: expected specifier-qualifier-list before ‘GObjectClass’
/usr/include/gtk-2.0/gdk/gdkcolor.h:85: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘gdk_colormap_get_type’
/usr/include/gtk-2.0/gdk/gdkcolor.h:88: error: expected declaration specifiers or ‘...’ before ‘gboolean’
/usr/include/gtk-2.0/gdk/gdkcolor.h:102: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘gdk_colormap_get_system_size’
/usr/include/gtk-2.0/gdk/gdkcolor.h:108: error: expected declaration specifiers or ‘...’ before ‘gint’
/usr/include/gtk-2.0/gdk/gdkcolor.h:111: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘gdk_colormap_alloc_colors’
/usr/include/gtk-2.0/gdk/gdkcolor.h:117: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘gdk_colormap_alloc_color’
/usr/include/gtk-2.0/gdk/gdkcolor.h:123: error: expected declaration specifiers or ‘...’ before ‘gint’
/usr/include/gtk-2.0/gdk/gdkcolor.h:125: error: expected declaration specifiers or ‘...’ before ‘gulong’
/usr/include/gtk-2.0/gdk/gdkcolor.h:132: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘gdk_color_parse’
/usr/include/gtk-2.0/gdk/gdkcolor.h:134: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘gdk_color_hash’
/usr/include/gtk-2.0/gdk/gdkcolor.h:135: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘gdk_color_equal’
/usr/include/gtk-2.0/gdk/gdkcolor.h:137: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
/usr/include/gtk-2.0/gdk/gdkcolor.h:139: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘gdk_color_get_type’
/usr/include/gtk-2.0/gdk/gdkcolor.h:145: error: expected declaration specifiers or ‘...’ before ‘gint’
/usr/include/gtk-2.0/gdk/gdkcolor.h:146: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘gdk_color_white’
/usr/include/gtk-2.0/gdk/gdkcolor.h:148: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘gdk_color_black’
/usr/include/gtk-2.0/gdk/gdkcolor.h:150: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘gdk_color_alloc’
/usr/include/gtk-2.0/gdk/gdkcolor.h:152: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘gdk_color_change’
/usr/include/gtk-2.0/gdk/gdkcolor.h:158: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘gdk_colors_alloc’
/usr/include/gtk-2.0/gdk/gdkcolor.h:165: error: expected declaration specifiers or ‘...’ before ‘gulong’
/usr/include/gtk-2.0/gdk/gdkcolor.h:166: error: expected declaration specifiers or ‘...’ before ‘gint’
/usr/include/gtk-2.0/gdk/gdkcolor.h:167: error: expected declaration specifiers or ‘...’ before ‘gulong’
In file included from /usr/include/gtk-2.0/gdk/gdkpixbuf.h:32,
from /usr/include/gtk-2.0/gdk/gdkcairo.h:24,
from /usr/include/gtk-2.0/gdk/gdk.h:30,
from /usr/include/gtk-2.0/gtk/gtk.h:31,
from newmain.c:2:
/usr/include/gtk-2.0/gdk/gdkrgb.h:32: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘G_BEGIN_DECLS’
/usr/include/gtk-2.0/gdk/gdkrgb.h:37: error: expected specifier-qualifier-list before ‘guint32’
/usr/include/gtk-2.0/gdk/gdkrgb.h:47: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘gdk_rgb_xpixel_from_rgb’
/usr/include/gtk-2.0/gdk/gdkrgb.h:49: error: expected declaration specifiers or ‘...’ before ‘guint32’
/usr/include/gtk-2.0/gdk/gdkrgb.h:51: error: expected declaration specifiers or ‘...’ before ‘guint32’
/usr/include/gtk-2.0/gdk/gdkrgb.h:67: error: expected declaration specifiers or ‘...’ before ‘gint’
/usr/include/gtk-2.0/gdk/gdkrgb.h:68: error: expected declaration specifiers or ‘...’ before ‘gint’
/usr/include/gtk-2.0/gdk/gdkrgb.h:69: error: expected declaration specifiers or ‘...’ before ‘gint’
/usr/include/gtk-2.0/gdk/gdkrgb.h:70: error: expected declaration specifiers or ‘...’ before ‘gint’
/usr/include/gtk-2.0/gdk/gdkrgb.h:72: error: expected declaration specifiers or ‘...’ before ‘guchar’
/usr/include/gtk-2.0/gdk/gdkrgb.h:73: error: expected declaration specifiers or ‘...’ before ‘gint’
/usr/include/gtk-2.0/gdk/gdkrgb.h:76: error: expected declaration specifiers or ‘...’ before ‘gint’
/usr/include/gtk-2.0/gdk/gdkrgb.h:77: error: expected declaration specifiers or ‘...’ before ‘gint’
/usr/include/gtk-2.0/gdk/gdkrgb.h:78: error: expected declaration specifiers or ‘...’ before ‘gint’
/usr/include/gtk-2.0/gdk/gdkrgb.h:79: error: expected declaration specifiers or ‘...’ before ‘gint’
/usr/include/gtk-2.0/gdk/gdkrgb.h:81: error: expected declaration specifiers or ‘...’ before ‘guchar’
/usr/include/gtk-2.0/gdk/gdkrgb.h:82: error: expected declaration specifiers or ‘...’ before ‘gint’
/usr/include/gtk-2.0/gdk/gdkrgb.h:83: error: expected declaration specifiers or ‘...’ before ‘gint’
/usr/include/gtk-2.0/gdk/gdkrgb.h:84: error: expected declaration specifiers or ‘...’ before ‘gint’
/usr/include/gtk-2.0/gdk/gdkrgb.h:87: error: expected declaration specifiers or ‘...’ before ‘gint’
/usr/include/gtk-2.0/gdk/gdkrgb.h:88: error: expected declaration specifiers or ‘...’ before ‘gint’
/usr/include/gtk-2.0/gdk/gdkrgb.h:89: error: expected declaration specifiers or ‘...’ before ‘gint’
/usr/include/gtk-2.0/gdk/gdkrgb.h:90: error: expected declaration specifiers or ‘...’ before ‘gint’
/usr/include/gtk-2.0/gdk/gdkrgb.h:92: error: expected declaration specifiers or ‘...’ before ‘guchar’
/usr/include/gtk-2.0/gdk/gdkrgb.h:93: error: expected declaration specifiers or ‘...’ before ‘gint’
/usr/include/gtk-2.0/gdk/gdkrgb.h:96: error: expected declaration specifiers or ‘...’ before ‘gint’
/usr/include/gtk-2.0/gdk/gdkrgb.h:97: error: expected declaration specifiers or ‘...’ before ‘gint’
/usr/include/gtk-2.0/gdk/gdkrgb.h:98: error: expected declaration specifiers or ‘...’ before ‘gint’
/usr/include/gtk-2.0/gdk/gdkrgb.h:99: error: expected declaration specifiers or ‘...’ before ‘gint’
/usr/include/gtk-2.0/gdk/gdkrgb.h:101: error: expected declaration specifiers or ‘...’ before ‘guchar’
/usr/include/gtk-2.0/gdk/gdkrgb.h:102: error: expected declaration specifiers or ‘...’ before ‘gint’
/usr/include/gtk-2.0/gdk/gdkrgb.h:103: error: expected declaration specifiers or ‘...’ before ‘gint’
/usr/include/gtk-2.0/gdk/gdkrgb.h:104: error: expected declaration specifiers or ‘...’ before ‘gint’
/usr/include/gtk-2.0/gdk/gdkrgb.h:107: error: expected declaration specifiers or ‘...’ before ‘gint’
/usr/include/gtk-2.0/gdk/gdkrgb.h:108: error: expected declaration specifiers or ‘...’ before ‘gint’
/usr/include/gtk-2.0/gdk/gdkrgb.h:109: error: expected declaration specifiers or ‘...’ before ‘gint’
/usr/include/gtk-2.0/gdk/gdkrgb.h:110: error: expected declaration specifiers or ‘...’ before ‘gint’
/usr/include/gtk-2.0/gdk/gdkrgb.h:112: error: expected declaration specifiers or ‘...’ before ‘guchar’
/usr/include/gtk-2.0/gdk/gdkrgb.h:113: error: expected declaration specifiers or ‘...’ before ‘gint’
/usr/include/gtk-2.0/gdk/gdkrgb.h:116: error: expected declaration specifiers or ‘...’ before ‘gint’
/usr/include/gtk-2.0/gdk/gdkrgb.h:117: error: expected declaration specifiers or ‘...’ before ‘gint’
/usr/include/gtk-2.0/gdk/gdkrgb.h:118: error: expected declaration specifiers or ‘...’ before ‘gint’
/usr/include/gtk-2.0/gdk/gdkrgb.h:119: error: expected declaration specifiers or ‘...’ before ‘gint’
/usr/include/gtk-2.0/gdk/gdkrgb.h:121: error: expected declaration specifiers or ‘...’ before ‘guchar’
/usr/include/gtk-2.0/gdk/gdkrgb.h:122: error: expected declaration specifiers or ‘...’ before ‘gint’
/usr/include/gtk-2.0/gdk/gdkrgb.h:123: error: expected declaration specifiers or ‘...’ before ‘GdkRgbCmap’
/usr/include/gtk-2.0/gdk/gdkrgb.h:124: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
/usr/include/gtk-2.0/gdk/gdkrgb.h:126: error: expected ‘)’ before ‘*’ token
/usr/include/gtk-2.0/gdk/gdkrgb.h:128: error: expected ‘)’ before ‘verbose’
/usr/include/gtk-2.0/gdk/gdkrgb.h:131: error: expected ‘)’ before ‘install’
/usr/include/gtk-2.0/gdk/gdkrgb.h:132: error: expected ‘)’ before ‘min_colors’
/usr/include/gtk-2.0/gdk/gdkrgb.h:137: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘gdk_rgb_ditherable’
/usr/include/gtk-2.0/gdk/gdkrgb.h:138: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘gdk_rgb_colormap_ditherable’
In file included from /usr/include/gtk-2.0/gdk-pixbuf/gdk-pixbuf.h:30,
from /usr/include/gtk-2.0/gdk/gdkpixbuf.h:33,
from /usr/include/gtk-2.0/gdk/gdkcairo.h:24,
from /usr/include/gtk-2.0/gdk/gdk.h:30,
from /usr/include/gtk-2.0/gtk/gtk.h:31,
from newmain.c:2:
/usr/include/gtk-2.0/gdk-pixbuf/gdk-pixbuf-features.h:36: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘extern’
/usr/include/gtk-2.0/gdk-pixbuf/gdk-pixbuf-features.h:37: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘gdk_pixbuf_minor_version’
/usr/include/gtk-2.0/gdk-pixbuf/gdk-pixbuf-features.h:38: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘gdk_pixbuf_micro_version’
In file included from /usr/include/gtk-2.0/gdk-pixbuf/gdk-pixbuf.h:33,
from /usr/include/gtk-2.0/gdk/gdkpixbuf.h:33,
from /usr/include/gtk-2.0/gdk/gdkcairo.h:24,
from /usr/include/gtk-2.0/gdk/gdk.h:30,
from /usr/include/gtk-2.0/gtk/gtk.h:31,
from newmain.c:2:
/usr/include/gtk-2.0/gdk-pixbuf/gdk-pixbuf-core.h:35: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘typedef’
/usr/include/gtk-2.0/gdk-pixbuf/gdk-pixbuf-core.h:58: error: expected ‘)’ before ‘*’ token
/usr/include/gtk-2.0/gdk-pixbuf/gdk-pixbuf-core.h:76: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘gdk_pixbuf_error_quark’
/usr/include/gtk-2.0/gdk-pixbuf/gdk-pixbuf-core.h:80: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘gdk_pixbuf_get_type’
/usr/include/gtk-2.0/gdk-pixbuf/gdk-pixbuf-core.h:93: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘gdk_pixbuf_get_has_alpha’
/usr/include/gtk-2.0/gdk-pixbuf/gdk-pixbuf-core.h:95: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
/usr/include/gtk-2.0/gdk-pixbuf/gdk-pixbuf-core.h:103: error: expected declaration specifiers or ‘...’ before ‘gboolean’
/usr/include/gtk-2.0/gdk-pixbuf/gdk-pixbuf-core.h:127: error: expected declaration specifiers or ‘...’ before ‘GError’
/usr/include/gtk-2.0/gdk-pixbuf/gdk-pixbuf-core.h:131: error: expected declaration specifiers or ‘...’ before ‘GError’
/usr/include/gtk-2.0/gdk-pixbuf/gdk-pixbuf-core.h:135: error: expected declaration specifiers or ‘...’ before ‘gboolean’
/usr/include/gtk-2.0/gdk-pixbuf/gdk-pixbuf-core.h:136: error: expected declaration specifiers or ‘...’ before ‘GError’
/usr/include/gtk-2.0/gdk-pixbuf/gdk-pixbuf-core.h:138: error: expected ‘;’, ‘,’ or ‘)’ before ‘*’ token
/usr/include/gtk-2.0/gdk-pixbuf/gdk-pixbuf-core.h:148: error: expected ‘)’ before ‘data_length’
/usr/include/gtk-2.0/gdk-pixbuf/gdk-pixbuf-core.h:155: error: expected declaration specifiers or ‘...’ before ‘guint32’
/usr/include/gtk-2.0/gdk-pixbuf/gdk-pixbuf-core.h:165: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘gdk_pixbuf_save’
/usr/include/gtk-2.0/gdk-pixbuf/gdk-pixbuf-core.h:171: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘gdk_pixbuf_savev’
/usr/include/gtk-2.0/gdk-pixbuf/gdk-pixbuf-core.h:180: error: expected declaration specifiers or ‘...’ before ‘*’ token
/usr/include/gtk-2.0/gdk-pixbuf/gdk-pixbuf-core.h:180: error: expected ‘;’, ‘,’ or ‘)’ before ‘*’ token
/usr/include/gtk-2.0/gdk-pixbuf/gdk-pixbuf-core.h:185: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘gdk_pixbuf_save_to_callback’
/usr/include/gtk-2.0/gdk-pixbuf/gdk-pixbuf-core.h:192: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘gdk_pixbuf_save_to_callbackv’
/usr/include/gtk-2.0/gdk-pixbuf/gdk-pixbuf-core.h:202: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘gdk_pixbuf_save_to_buffer’
/usr/include/gtk-2.0/gdk-pixbuf/gdk-pixbuf-core.h:209: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘gdk_pixbuf_save_to_bufferv’
/usr/include/gtk-2.0/gdk-pixbuf/gdk-pixbuf-core.h:218: error: expected declaration specifiers or ‘...’ before ‘gboolean’
/usr/include/gtk-2.0/gdk-pixbuf/gdk-pixbuf-core.h:219: error: expected declaration specifiers or ‘...’ before ‘guchar’
/usr/include/gtk-2.0/gdk-pixbuf/gdk-pixbuf-core.h:219: error: expected declaration specifiers or ‘...’ before ‘guchar’
/usr/include/gtk-2.0/gdk-pixbuf/gdk-pixbuf-core.h:219: error: expected declaration specifiers or ‘...’ before ‘guchar’
/usr/include/gtk-2.0/gdk-pixbuf/gdk-pixbuf-core.h:231: error: expected declaration specifiers or ‘...’ before ‘gfloat’
/usr/include/gtk-2.0/gdk-pixbuf/gdk-pixbuf-core.h:232: error: expected declaration specifiers or ‘...’ before ‘gboolean’
/usr/include/gtk-2.0/gdk-pixbuf/gdk-pixbuf-core.h:237: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘gchar’
In file included from /usr/include/gtk-2.0/gdk-pixbuf/gdk-pixbuf.h:34,
from /usr/include/gtk-2.0/gdk/gdkpixbuf.h:33,
from /usr/include/gtk-2.0/gdk/gdkcairo.h:24,
from /usr/include/gtk-2.0/gdk/gdk.h:30,
from /usr/include/gtk-2.0/gtk/gtk.h:31,
from newmain.c:2:
/usr/include/gtk-2.0/gdk-pixbuf/gdk-pixbuf-transform.h:33: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘G_BEGIN_DECLS’
/usr/include/gtk-2.0/gdk-pixbuf/gdk-pixbuf-transform.h:62: error: expected declaration specifiers or ‘...’ before ‘GdkInterpType’
/usr/include/gtk-2.0/gdk-pixbuf/gdk-pixbuf-transform.h:73: error: expected declaration specifiers or ‘...’ before ‘GdkInterpType’
/usr/include/gtk-2.0/gdk-pixbuf/gdk-pixbuf-transform.h:85: error: expected declaration specifiers or ‘...’ before ‘GdkInterpType’
/usr/include/gtk-2.0/gdk-pixbuf/gdk-pixbuf-transform.h:90: error: expected declaration specifiers or ‘...’ before ‘guint32’
/usr/include/gtk-2.0/gdk-pixbuf/gdk-pixbuf-transform.h:91: error: expected declaration specifiers or ‘...’ before ‘guint32’
/usr/include/gtk-2.0/gdk-pixbuf/gdk-pixbuf-transform.h:96: error: expected declaration specifiers or ‘...’ before ‘GdkInterpType’
/usr/include/gtk-2.0/gdk-pixbuf/gdk-pixbuf-transform.h:101: error: expected declaration specifiers or ‘...’ before ‘GdkInterpType’
/usr/include/gtk-2.0/gdk-pixbuf/gdk-pixbuf-transform.h:104: error: expected declaration specifiers or ‘...’ before ‘guint32’
/usr/include/gtk-2.0/gdk-pixbuf/gdk-pixbuf-transform.h:105: error: expected declaration specifiers or ‘...’ before ‘guint32’
/usr/include/gtk-2.0/gdk-pixbuf/gdk-pixbuf-transform.h:110: error: expected declaration specifiers or ‘...’ before ‘gboolean’
In file included from /usr/ |