i don't know c as well, but maybe it's because you compile it for arm and want 
to start it on a wrong architecture? for me it looks like you compile it on a 
host with a diffrent architecture..

but maybe i'm totaly wrong..
-----------------------------------------------
Chuck schrieb am Montag 13 September 2010:
 I've compiled following gtk+ hello world example directly on my fr.

#include <gtk/gtk.h>

void
hello (void)
{
  g_print ("Hello World\n");
}

void
destroy (void)
{
  gtk_main_quit ();
}

int
main (int argc, char *argv[])
{
  GtkWidget *window;
  GtkWidget *button;

  gtk_init (&argc, &argv);

  window = gtk_window_new (GTK_WINDOW_TOPLEVEL);
  gtk_signal_connect (GTK_OBJECT (window), "destroy",
                      GTK_SIGNAL_FUNC (destroy), NULL);
  gtk_container_border_width (GTK_CONTAINER (window), 10);

  button = gtk_button_new_with_label ("Hello World");

  gtk_signal_connect (GTK_OBJECT (button), "clicked",
                      GTK_SIGNAL_FUNC (hello), NULL);
  gtk_container_add (GTK_CONTAINER (window), button);
  gtk_widget_show (button);

  gtk_widget_show (window);

  gtk_main ();

  return 0;
}

And  on clicking on 'hello world' button a get "Illegal instruction". Why?

# arm-oe-linux-gnueabi-gcc `pkg-config gtk+-2.0 --libs --cflags` a.c -o a
# ./a
Hello World
Illegal instruction

please help
_______________________________________________
Shr-devel mailing list
[email protected]
http://lists.shr-project.org/mailman/listinfo/shr-devel
_______________________________________________
Shr-devel mailing list
[email protected]
http://lists.shr-project.org/mailman/listinfo/shr-devel

Reply via email to