MS Visual C++ 6.0 erstellt keine exe

EiGhTBaLL

Lt. Commander
Registriert
Jan. 2003
Beiträge
1.394
Mein MS Visual C++ will keine exe erstellen, ich habe das gemacht, was in einer Anleitung zu einem Spiel steht, ich musste den Ordner mit den Source-Codes und zwei andere Ordner auf die HDD kopieren, dann mit C++ die dsw (workspace) öffnen und den neuen Pfad des Source-Ordners angeben, und dann eine neue exe erstellen, und das geht nich, da meint er immer das Fehler auftraten. Aber die dsw muss doch ganz sein, die haben doch auch damit gearbeitet. Was mache ich falsch?

Hoffe es versteht jemand was ich meine und kann helfen.


Die Anleitung:

This guide is intended to get you up and running with the Uplink Dev CD as quickly as possible. It will show you how to get Uplink to compile on your PC, using Microsoft Visual C++ 6.0. We will be assuming you have some knowledge at least of compilers, C++ etc.



1. Install Uplink

Fairly self explanatory really, but you'd be suprised. You won't be able to run any of the binaries you compile unless you have Uplink installed and ready.



2. Copy data to Hard Disk

You need to copy all the neccesary directories onto your hard disk. The directories you will need are:

/contrib (all external libraries used by Uplink)

/lib (all our own internal libraries used by Uplink)

/source (the main source tree)

Copy those three directories into your Uplink directory on your Hard Disk.



3. Prepare project file

Load the workspace uplink/source/uplink.dsw into Developer Studio. We used version 6.0, but you shouldn't have any problems with any other versions. You should see all of our internal libraries listed in your workspace, as well as the Uplink project itself. Make sure Uplink is the currently active project.

We need to tell Developer Studio where the base directory is for the Uplink source code. Bring up the project settings dialog (project->settings) and select the project "Uplink". Click the "C/C++" tab and select the "Preprocessor" category from the drop down menu. There should be a box that says "Additional Include Directories". Currently it will say something like "C:\Development\UplinkDevCD\source", plus a bunch of other library directories. You need to change that first location to point to your Uplink source directory, eg "C:\games\Uplink\source".

Click Ok, cross your fingers, and press F7 to build everything. The compiler will now build all of the support libraries in sequence, followed by Uplink itself. The whole process takes about ten minutes on my computer.


Die Fehlerliste:

--------------------Configuration: bungle - Win32 Debug--------------------
Compiling...
bungle.cpp
Creating library...
--------------------Configuration: eclipse - Win32 Debug--------------------
Compiling...
animation.cpp
button.cpp
eclipse.cpp
Creating library...
--------------------Configuration: gucci - Win32 Debug--------------------
Compiling...
Gucci.cpp
c:\programme\microsoft visual studio\vc98\include\xtree(629) : error C2059: syntax error : '?'
c:\programme\microsoft visual studio\vc98\include\xtree(629) : error C2065: '_Y' : undeclared identifier
c:\programme\microsoft visual studio\vc98\include\xtree(629) : error C2275: '_A' : illegal use of this type as an expression
c:\programme\microsoft visual studio\vc98\include\xtree(629) : error C2143: syntax error : missing ',' before ')'
c:\programme\microsoft visual studio\vc98\include\xtree(631) : error C2951: template declarations are only permitted at global or namespace scope
c:\programme\microsoft visual studio\vc98\include\xtree(632) : error C2976: '_Tree' : too few template arguments
c:\programme\microsoft visual studio\vc98\include\xtree(602) : see declaration of '_Tree'
c:\programme\microsoft visual studio\vc98\include\xtree(633) : error C2143: syntax error : missing ',' before '<='
c:\programme\microsoft visual studio\vc98\include\xtree(633) : error C2433: 'bool' : 'inline' not permitted on data declarations
c:\programme\microsoft visual studio\vc98\include\xtree(633) : error C2059: syntax error : 'operator <op>'
c:\programme\microsoft visual studio\vc98\include\xtree(635) : error C2143: syntax error : missing ')' before '{'
c:\programme\microsoft visual studio\vc98\include\xtree(635) : error C2059: syntax error : '{'
c:\programme\microsoft visual studio\vc98\include\xtree(635) : error C2143: syntax error : missing ';' before '{'
c:\programme\microsoft visual studio\vc98\include\xtree(635) : error C2447: missing function header (old-style formal list?)
c:\programme\microsoft visual studio\vc98\include\xtree(636) : error C2954: template definitions cannot nest
c:\programme\microsoft visual studio\vc98\include\map(44) : error C2039: 'reference' : is not a member of '_A'
c:\programme\microsoft visual studio\vc98\include\xtree(632) : see declaration of '_A'
c:\programme\microsoft visual studio\vc98\include\map(140) : see reference to class template instantiation 'std::map<_K,_Ty,_Pr,_A>' being compiled
c:\programme\microsoft visual studio\vc98\include\map(44) : error C2146: syntax error : missing ';' before identifier '_Tref'
c:\programme\microsoft visual studio\vc98\include\map(140) : see reference to class template instantiation 'std::map<_K,_Ty,_Pr,_A>' being compiled
c:\programme\microsoft visual studio\vc98\include\map(44) : error C2501: '_Tref' : missing storage-class or type specifiers
c:\programme\microsoft visual studio\vc98\include\map(140) : see reference to class template instantiation 'std::map<_K,_Ty,_Pr,_A>' being compiled
c:\programme\microsoft visual studio\vc98\include\map(48) : error C2040: 'reference' : ' &' differs in levels of indirection from 'int'
c:\programme\microsoft visual studio\vc98\include\map(140) : see reference to class template instantiation 'std::map<_K,_Ty,_Pr,_A>' being compiled
c:\programme\microsoft visual studio\vc98\include\map(92) : error C2143: syntax error : missing ';' before '['
c:\programme\microsoft visual studio\vc98\include\map(140) : see reference to class template instantiation 'std::map<_K,_Ty,_Pr,_A>' being compiled
c:\programme\microsoft visual studio\vc98\include\map(92) : error C2501: '_Tref' : missing storage-class or type specifiers
c:\programme\microsoft visual studio\vc98\include\map(140) : see reference to class template instantiation 'std::map<_K,_Ty,_Pr,_A>' being compiled
c:\programme\microsoft visual studio\vc98\include\map(44) : fatal error C1004: unexpected end of file found
c:\programme\devopcd\lib\gucci\gucci.cpp(28) : see reference to class template instantiation 'std::map<int,class GLTTBitmapFont *,struct std::less<int>,class std::allocator<class GLTTBitmapFont *> >' being compiled
gucci_glut.cpp
Image.cpp
resize_win32.cpp
Error executing cl.exe.

Uplink.exe - 21 error(s), 0 warning(s)
 
Zuletzt bearbeitet:
Der Fehler tritt zwar in der C++ Standard-Bibliothek auf, allerdings glaube ich erstmal kaum, dass er da auch liegt. (hast du btw das SP6 für VC6 installtiert?)

Ich vermute eher, dass der Compiler irgendwelche Klassen nicht kennt - was wiederum daran liegen könnte, dass die includes noch falsch sind. Ich glaube erstmal nicht, dass fehlerhafter Sourcecode dort ausgeliefert wurde. Sorry, viel mehr kann man daraus nicht schlussfolgern.

Evtl. hilft dir ein Support-Forum zu diesem Spiel eher weiter, sofern vorhanden. Gut möglich, dass auch noch mehr Leute das selbe Problem haben wie Du - die findest Du dann aber höchstwahrscheinlich in diesem entsprechenden Forum.

Gruß
 
Zurück
Oben