gtk/gtk. h file not found on Mac

In order to learn the gtk library on mac, I wrote a very short code to create a window with the title ‘hello world’.

#include <gtk/gtk.h>

int main(int argc, char **argv) {
         GtkWidget *window;
         gtk_init(&argc, &argv);

         window =  gtk_window_new(GTK_WINDOW_TOPLEVEL);
         gtk_window_set_title(GTK_WINDOW(window), "Hello World");
         gtk_widget_show(window);

         gtk_main();
         return 0;
}

When I tried to compile this code using gcc, it didn’t work, leaving a message that the gtk/gtk.h file is not found. I checked out if the gtk library is properly installed, and I found out that the gtk library is located at /usr/local/include/gtk-3.0/gtk/gtk.h.

How should I fix this matter?

Posted in Codes & Scripts | Tagged , , | Leave a comment

error hosting an upload script in 000. webhost. com . . .

i have a file which is working in my localhost …

i was trying to host the files in 000.webhost.com

but its not working properly , its not uploading anything to the “uploads” folder …

the same script is working fine in localhost

Posted in Codes & Scripts | Tagged , , , , , | Leave a comment

When function is ‘not a function’?

Here is a problem: (edited: revised code at the bottom)

Below is the param object fed to a rollover module (constructor function w/ member method)

Code:
———
var mouseOverHandler = function(e, a)
{
var ind = parseInt(e.target.id.split(‘-’)[1])

Posted in Codes & Scripts | Tagged , | Leave a comment

When function is ‘not a function’?

Here is a problem: (edited: revised code at the bottom)

Below is the param object fed to a rollover module (constructor function w/ member method)

Code:
———
var mouseOverHandler = function(e, a)
{
var ind = parseInt(e.target.id.split(‘-’)[1])

Posted in Codes & Scripts | Tagged , | Leave a comment

File Name is Too Long – Delete [Solved]

Posted in Codes & Scripts | Tagged , , , , | Leave a comment