Jump to content

Gtk with anjuta


Recommended Posts

[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 by grimx
Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...