000
03.12.2000, 06:54
[NBK]Cyber
|
class CRedCapture : public CObjectCapture
{
void Spawn( void )
{
strcpy( TeamCapture, "Red" );
CObjectCapture::Spawn( );
}
void KeyValue( KeyValueData* Data )
{
if( FStrEq( Data->szKeyName, "CapturePoints" ) )
{
CapturePoints = atoi( Data->szValue );
Data->fHandled = TRUE;
}
}
};
LINK_ENTITY_TO_CLASS( object_red_capture, CRedCapture );
class CBlueCapture : public CObjectCapture
{
void Spawn( void )
{
strcpy( TeamCapture, "Blue" );
CObjectCapture::Spawn( );
}
void KeyValue( KeyValueData* Data )
{
if( FStrEq( Data->szKeyName, "CapturePoints" ) )
{
CapturePoints = atoi( Data->szValue );
Data->fHandled = TRUE;
}
}
};
LINK_ENTITY_TO_CLASS( object_blue_capture, CBlueCapture );
Ich weiss nicht was falsch ist!
Ich bekomme die Fehlermeldung:
--------------------Konfiguration: mp - Win32 Profile--------------------
Kompilierung läuft...
object_capture.cpp
Linker-Vorgang läuft...
Bibliothek .\Profilemp/mp.lib und Objekt .\Profilemp/mp.exp wird erstellt
object_capture.obj : error LNK2001: Nichtaufgeloestes externes Symbol "public: virtual void __thiscall CObjectCapture::KeyValue(struct KeyValueData_s *)" (?KeyValue@CObjectCapture@@UAEXPAUKeyValueData_s@@@Z)
.\Profilemp/mp.dll : fatal error LNK1120: 1 unaufgeloeste externe Verweise
Fehler beim Ausführen von link.exe.
mp.dll - 2 Fehler, 0 Warnung(en)
--
|
|
Profil || Suche
|
001
03.12.2000, 11:01
apfelkorn
|
Du hast wahrscheinlich irgendwo in der Datei eine "extern wasauchimmer Variable", und die kann der Compiler nicht ausserhalb in einer anderen Datei wiederfinden. Wenn es vorher aber schon funktioniert hat, dannverscuch mal den sourcecode komplett neu zo kompilieren. Manchmal funtkioniert das. Wenn der externe link aber schon vorher da war, weis ich auch nicht weiter...
--
|
|
Profil || Suche
|