Results 1 to 7 of 7

Thread: ISO-C++ verbietet Deklaration von »bikinmenupos« ohne Typ [-fpermissive]

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Aug 2021
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded Qt Jambi PyQt3 PyQt4
    MacOS X Unix/X11 Windows Symbian S60 Android Maemo/MeeGo

    Default ISO-C++ verbietet Deklaration von »bikinmenupos« ohne Typ [-fpermissive]

    Dear my friends of Qt-Community.

    I'm stucked on this error-message as I am building 2 windows (1 as parent-window and 1 as child-window) and MenuBar (with QMenuBar and QMenu). The error-message as compiling-process is here:
    ceo@sally:/mnt/slax/fileserver-slax/arsip/SoftDev/ERPLinux$ make
    g++ -c -pipe -O2 -Wall -W -D_REENTRANT -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/lib64/qt/mkspecs/linux-g++ -I. -I/usr/lib64/qt/include/QtCore -I/usr/lib64/qt/include/QtGui -I/usr/lib64/qt/include -I. -I. -o ERPLinux.o ERPLinux.cpp
    In file included from ERPLinux.cpp:1:0:
    ERPLinux.h:15:14: Fehler: ISO-C++ verbietet Deklaration von »bikinmenupos« ohne Typ [-fpermissive]
    ERPLinux.h: In Funktion »int bikinmenupos()«:
    ERPLinux.h:18:3: Fehler: »berkaspos« wurde in diesem Gültigkeitsbereich nicht definiert
    berkaspos = menupos->addMenu("&POS");
    ERPLinux.h:16:13: Warnung: Variable »menuutama« wird nicht verwendet [-Wunused-variable]
    QMenuBar *menuutama = new QMenuBar();
    ERPLinux.h:19:1: Warnung: keine return-Anweisung in nicht void zurückgebender Funktion [-Wreturn-type]
    ERPLinux.cpp: In Funktion »int main(int, char**)«:
    ERPLinux.cpp:8:11: Fehler: expected unqualified-id before »->« token
    Makefile:214: die Regel für Ziel „ERPLinux.o“ scheiterte
    make: *** [ERPLinux.o] Fehler 1

    "Fehler: ISO-C++ verbietet Deklaration von »bikinmenupos« ohne Typ [-fpermissive]" means -> "Error: ISO-C++ declared from »bikinmenupos« without Type [-fpermissive]".
    "Fehler: »berkaspos« wurde in diesem Gültigkeitsbereich nicht definiert" means -> "Error: »berkaspos« defined not in corrent region/position.

    These are my simple-sourcecode (4-files):
    1. file of ERPLinux.h
    #include <QApplication>
    #include <QWidget>
    #include <QMenuBar>
    #include <QMenu>

    class QAction;
    class ERPLinux : public QWidget{



    QMenuBar *menuutama = new QMenuBar();
    QMenu *menupos = new QMenu();
    berkaspos = menupos->addMenu("&POS");

    2. file of ERPLinux.cpp
    #include "ERPLinux.h"
    #include "POS.h"

    int main(int argc, char *argv[]){
    QApplication *aplikasi = new QApplication(argc, argv);
    QWidget *jendelautama = new QWidget();
    jendelautama->setWindowTitle("ERP for Windows, Linux and Android by");

    POS *layarpos = new POS();

    3. file of POS.h
    #include <QWidget>

    class QAction;
    class POS : public QWidget{



    4. file of POS.cpp
    #include "POS.h"

    int main(int argc, *char argv[]){


    Would anyone please help me to show where my mistakes I've done?

    Thank you very much in advance.
    Attached Files Attached Files

Similar Threads

  1. Replies: 2
    Last Post: 18th January 2017, 10:35

Tags for this Thread


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.