also wenn ich den Befehl an main.cc ausführe dann kommt das
Code:
In file included from /usr/lib/gcc-lib/i686-pc-linux-gnu/3.2.3/include/g++-v3/backward/iostream.h:31,
from main.cc:4:
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.2.3/include/g++-v3/backward/backward_warning.h:32:2: warning: #warning
This file includes at least one deprecated or antiquated header. Please consider using one of the 32 headers found in section 17.4.1.2 of the C++ standard.
Examples include substituting the <X> header for the <X.h> header for C++ includes, or <sstream> instead of the deprecated header <strstream.h>.
To disable this warning use -Wno-deprecated.
das funktioniert auch, leider wird da auch nichts graphisches aufgerufen, da in der main.cc nur eine Hello World cout Ausgabe drin ist.
Aber Glade erstellt automatisch eine main.c mit folgenden Inhalt:
Code:
/*
* Initial main.c file generated by Glade. Edit as required.
* Glade will not overwrite this file.
*/
#ifdef HAVE_CONFIG_H
# include <config.h>
#endif
#include <gtk/gtk.h>
#include "interface.h"
#include "support.h"
int
main (int argc, char *argv[])
{
GtkWidget *window1;
#ifdef ENABLE_NLS
bindtextdomain (GETTEXT_PACKAGE, PACKAGE_LOCALE_DIR);
bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8");
textdomain (GETTEXT_PACKAGE);
#endif
gtk_set_locale ();
gtk_init (&argc, &argv);
add_pixmap_directory (PACKAGE_DATA_DIR "/" PACKAGE "/pixmaps");
/*
* The following code was added by Glade to create one of each component
* (except popup menus), just so that you see something after building
* the project. Delete any components that you don't want shown initially.
*/
window1 = create_window1 ();
gtk_widget_show (window1);
gtk_main ();
return 0;
}
und wenn ich dann den Befehl ausführe kommt diese Fehlermeldung.
Code:
main.c: In function `int main(int, char**)':
main.c:29: `PACKAGE_DATA_DIR' undeclared (first use this function)
main.c:29: (Each undeclared identifier is reported only once for each function
it appears in.)
main.c:29: syntax error before string constant
Also irgendwas blödes mache ich bestimmt falsch. Kann ja nicht so schwer sein. Hab ja noch keinen eigenen code da eingefügt will es ja erstmal nur compiliert bekommen.
Lesezeichen