C++ VS08 Projekt mit Codeblocks geöffnet

ActiveO2

Ensign
Registriert
Feb. 2009
Beiträge
161
Hallo,

ich habe versucht mit Codeblocks eine .sln zu öffnen, welche mit VS 2008 Express Edition erstellt wurde;
hatte das Projekt gleichzeitig in VS noch offen.
Codeblocks hat nicht so richtig wollen, hat die Dateien zwar geladen aber nicht gedebugt, war mir aber auch nicht so wichtig, wollte es nur mal testen.
Auf jeden Fall bin ich wieder in VS. Sobald ich "debug"en will kommen nun die Fehlermeldungen:


>x:\xx\xx\vc\include\iostream(12) : error C2143: Syntaxfehler: Es fehlt ';' vor 'namespace'
x:\xx\projects\test.cpp(8) : error C2143: Syntaxfehler: Es fehlt ';' vor 'using'

Hab ich mir da die iostream verstrubbelt?

Quellcodeausschnitt:
Code:
#include "stdafx.h"
#include <iostream>
#include "test.h"

using namespace std;


die iostream-Datei
Code:
// iostream standard header for Microsoft
#pragma once
#ifndef _IOSTREAM_
#define _IOSTREAM_
#ifndef RC_INVOKED
#include <istream>

#ifdef _MSC_VER
 #pragma pack(push,_CRT_PACKING)
 #pragma warning(push,3)
#endif  /* _MSC_VER */
_STD_BEGIN

Vielleicht kann ja jemand mal vergleichen.
Danke.
 

// iostream standard header for Microsoft
#pragma once
#ifndef
_IOSTREAM_
#define _IOSTREAM_
#ifndef RC_INVOKED
#include <istream>
#ifdef _MSC_VER
#pragma pack(push,_CRT_PACKING)
#pragma warning(push,3)
#endif /* _MSC_VER */
_STD_BEGIN
// OBJECTS
#if !defined(_M_CEE_PURE)
__PURE_APPDOMAIN_GLOBAL
extern _CRTDATA2 istream *_Ptr_cin;
__PURE_APPDOMAIN_GLOBAL
extern _CRTDATA2 ostream *_Ptr_cout;
__PURE_APPDOMAIN_GLOBAL
extern _CRTDATA2 ostream *_Ptr_cerr;
__PURE_APPDOMAIN_GLOBAL
extern _CRTDATA2 ostream *_Ptr_clog;
#endif // !defined(_M_CEE_PURE)
#if !defined(_M_CEE_PURE)
// CLASS _Winit
class _CRTIMP2_PURE _Winit {
public:
__thiscall _Winit();
__thiscall ~_Winit();
private:
__PURE_APPDOMAIN_GLOBAL
static int _Init_cnt;
};
#endif
// WIDE OBJECTS
#if !defined(_M_CEE_PURE)
__PURE_APPDOMAIN_GLOBAL
extern _CRTDATA2 wistream *_Ptr_wcin;
__PURE_APPDOMAIN_GLOBAL
extern _CRTDATA2 wostream *_Ptr_wcout;
__PURE_APPDOMAIN_GLOBAL
extern _CRTDATA2 wostream *_Ptr_wcerr;
__PURE_APPDOMAIN_GLOBAL
extern _CRTDATA2 wostream *_Ptr_wclog;
#endif // !defined(_M_CEE_PURE)
#ifdef _M_CEE_PURE
extern istream &cin;
extern ostream &cout;
extern ostream &cerr;
extern ostream &clog;
extern wistream &wcin;
extern wostream &wcout;
extern wostream &wcerr;
extern wostream &wclog;
#else
__PURE_APPDOMAIN_GLOBAL extern _CRTDATA2 istream cin;
__PURE_APPDOMAIN_GLOBAL
extern _CRTDATA2 ostream cout;
__PURE_APPDOMAIN_GLOBAL
extern _CRTDATA2 ostream cerr;
__PURE_APPDOMAIN_GLOBAL
extern _CRTDATA2 ostream clog;
__PURE_APPDOMAIN_GLOBAL
extern _CRTDATA2 wistream wcin;
__PURE_APPDOMAIN_GLOBAL
extern _CRTDATA2 wostream wcout;
__PURE_APPDOMAIN_GLOBAL
extern _CRTDATA2 wostream wcerr;
__PURE_APPDOMAIN_GLOBAL
extern _CRTDATA2 wostream wclog;
#endif
_STD_END
#ifdef _MSC_VER
#pragma warning(pop)
#pragma pack(pop)
#endif /* _MSC_VER */
#endif /* RC_INVOKED */
#endif /* _IOSTREAM_ */
/*
* Copyright (c) 1992-2006 by P.J. Plauger. ALL RIGHTS RESERVED.
* Consult your license regarding permissions and restrictions.
V5.02:0009 */

Das ist die von mir, also ein "bisschen" größer.
 
hm, habe deine deinen Code kopiert&eingefügt:
zuerst hat er #pragmaonce nicht erkannt;
davor stand in meiner datei aber auch #pragma once,
nach "ausbessern" ging es dann weiter, habe jetzt aber den selben Fehler :/

error C2143: Syntaxfehler: Es fehlt ';' vor 'using'
 
hm, gerade neu installiert, -> nichts gebracht...auf ein neues! :P
 
So, alles neu drauf, sieht ganz gut aus ;)
Vielen Dank für die Aufmerksamkeit


.
 

Ähnliche Themen

Zurück
Oben