Zum Inhalt springen
View in the app

A better way to browse. Learn more.

Fachinformatiker.de

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

gtk_widget_new_with_label unbekannt (war: GTK-Programmierung)

Empfohlene Antworten

Versuche mich gerade an etwas GTK-Programmierung. Hab mit diesem Workshop: Pro-Linux: GTK-Workshop: Teil II begonnen.

Habe das Programm ganz unten auf dieser Seite versucht nachzuprogrammieren. Folgendes Problem taucht beim compilen auf:


callbacks.c: In function 'main':

callbacks.c:34: warning: implicit declaration of function 'gtk_widget_new_with_label'

callbacks.c:34: warning: assignment makes pointer from integer without a cast

/tmp/ccZMTDZh.o: In function `main':

/home/ivanhoe/c/gtk/callbacks.c:34: undefined reference to `gtk_widget_new_with_label'

collect2: ld returned 1 exit status

Offensichtlich kennt er die Funktion gtk_widget_new_with_label nicht, denn wenn ich anstatt damit mit gtk_button_new() den Button erstelle funktioniert es einwandfrei.

Hat jemand ne Ahnung was ich da noch includen muss um gtk_widget_new_with_label zu bekommen?

Jo das wars, haette ich eigentlich auch selbst drauf kommen koennen. Naja trotzdem danke.

Archiv

Dieses Thema wurde archiviert und kann nicht mehr beantwortet werden.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.