grimx Posted March 20, 2007 Report Share Posted March 20, 2007 (edited) [using Mandriva 2007 Free who won't this build, and run?? it compiles fine. /* Created by Anjuta version 1.2.4 */ /*Using AppWizard Gtk 2.0 */ //using c #include <gtk/gtk.h> int main(int argc, char *argv[]) { GtkWidget *window; gtk_init(&argc, &argv); window = gtk_window_new(GTK_WINDOW_TOPLEVEL); gtk_widget_show(window); gtk_main(); return (0); } build error text: /usr/lib/gcc/i586-mandriva-linux-gnu/4.1.1/../../../crt1.0: In Function '_start': (.text+0x18) undefined ref to main id returned 1 exit status Help. That was using anjuta but when i compile it with gcc in the terminal window wirtting this (gcc base.c -o base `pkg-config --cflags --libs gtk+-2.0`) t works great, So my question is how do i get it to do that in anjuta 1.2.4 ???? Edited March 20, 2007 by grimx Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.