Komme nicht weiter



  • also das progi hier:
    #include <iostream>

    int main() {
    std::cout << "Meldung" << std::endl;
    return 0;
    }
    läuft auch nicht egal ob ich es *.c , *.cc oder *.cpp nenne. es findet immer was ...auch bei den andern programmen ist das so.
    Ich habe auch schon öfters versucht <iostream.h> in z.b. <iostream> zu ändern aber funktioniert alles nichts...was nur komisch ist ist das er am anfang ein programm richtig gemacht hat. 😕
    Soll ich vieleicht n andern compiler nehmen? wenn ja welchen und woher.



  • bei GC++ hatte ich auch mal und hab nach stundenlangem lesen herausgegfunden das ich was in die make datei dazuschreiben muss...... das dumme ist ich weiss nichtmehr was 😞



  • un nu....es geht nämlich imer noch nich..hab schon alles geprobt.



  • Also nochmal:
    Wenn man sich die Fehlermeldungen anschaut, dann ist was mit Deinem Header nicht i.O. schick doch mal die ersten 10 Zeilen der datei iostream.h.

    Der Dev-C++ ist doch GCC Basiert, oder nicht? Und ich kenne kaum einen Header vom GCC, wo nicht die ersten 50 Zeilen Kommentare mit GPL Hinweisen waeren. Die Fehlermeldungen von Dir beschweren sich aber, dass in Zeilen 5 von iostream.h ein main definiert wuerde.

    Also, schick mal die iostream.h und ich geb Ruh, wenn die iO is.



  • ich weis nich was ich da schickn soll...ich weis noch nichma genau was diese iostream eigentlich sind



  • iostream.h ist eine Datei. Auf Deinem Rechner findest Du sie unter
    C:\DEV-C_1\Include\G__1\iostream.h. Wenn Du die ersten paar Zeilenb davon schicken koenntest, koennte man mal sehen, ob sie den inhalt hat, den sie haben sollte.



  • hm muss das eine .h datei sein? das ist sie nämlich nichtt. das ist so eine datei bei der man das proramma auswählen muss mit dem man sie ´öffnen will.
    ich hab sie mit dem editor geöffnet und dann steht das drin

    *- C++ -*- forwarding header.
    // This file is part of the GNU ANSI C++ Library.

    #ifndef __IOSTREAM__
    #define __IOSTREAM__
    #include <iostream.h>
    #endif



  • Hi,

    ja, es muss eine .h Datei sein!



  • ach ja habs gefunden...das is aber sehr viel wenn man die öffnet ...
    also die ersten paar zeilen sind ...das is eher der erste abschnitt
    /* This is part of libio/iostream, providing -- C++ -- input/output.
    Copyright (C) 1993 Free Software Foundation

    This file is part of the GNU IO Library. This library is free
    software; you can redistribute it and/or modify it under the
    terms of the GNU General Public License as published by the
    Free Software Foundation; either version 2, or (at your option)
    any later version.

    This library is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License
    along with this library; see the file COPYING. If not, write to the Free
    Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.

    As a special exception, if you link this library with files
    compiled with a GNU compiler to produce an executable, this does not cause
    the resulting executable to be covered by the GNU General Public License.
    This exception does not however invalidate any other reasons why
    the executable file might be covered by the GNU General Public License. */

    #ifndef _IOSTREAM_H
    #ifdef __GNUG__
    #pragma interface
    #endif
    #define _IOSTREAM_H

    #include <streambuf.h>:

    hoffentlich bringt das was



  • Die Header sehen alle okay aus... ICh hatte aufgrund der Fehlermeldungen mal in erwaegung gezogen, da sei einer versehentlich veraendert worden.
    Tja. Da kann ich Dir dann wohl auch nicht mir helfen 😞


Anmelden zum Antworten