Willkommen ~Gast!
Registrieren || Einloggen || Hilfe/FAQ || Staff
Probleme mit der Registrierung im Forum? Melde dich unter registerEin Bild.
Autor Beitrag
000
14.05.2007, 23:39
Taftu



Servus

Mein Problem liegt bei der Half life dll

Ich gebrauche dazu Half Life Sdk 2.1 / 2.3
und Code Blocks

Ich hatte mal die Multiplayer Dll mit Codeblocks machen können was nun nicht mehr der fall ist

Ich habe Half Life Sdk 2.1 und 2.3 ausprobiert, wobei ich fesststellen musste das sie fehlerhaft waren (im sinne von dll nicht erstellbar)

Daher wollte ich fragen

Ob mir jemand ein Link geben kann wo ich half life SDK (egal ob 2.1 oder 2.3 ) Downloaden kann das auch funktionirt

Ich bekomme fehler wie z.b

d:\meinmod\multiplayer source\cl_dll\vgui_teamfortressviewport.h(412) : warning C4996: 'strncpy' wurde als veraltet deklariert

Das Strncpy als veraltet deklaiert wurde habe ich auch bemerkt NUR was kann ich dagegen tun ?

Es sind soooooo viele fehler wo ich kein durchblick mehr habe (Da ich vorher ja auch nur die Daten in codeblocks laden musste und zu einer DLL compeilen lassen musste)

mfg

Taftu

--

zum Seitenanfang zum Seitenende Profil || Suche
001
14.05.2007, 23:48
Protector



http://public.kitware.com/pipermail/vtkusers/2006-April/084567.html

--

zum Seitenanfang zum Seitenende Profil || Suche
002
15.05.2007, 00:05
Taftu



Also Strncpy ist nicht mehr das problem

Was mich doch wundert ist das die files vom sdk fehlerhaft sind

---------------------------------------------
Project : cl_dll
Compiler : GNU GCC Compiler (called directly)
Directory : C:\SDK\Multiplayer Source\cl_dll\
--------------------------------------------------------------------------------
Switching to target: Win32 Release
Compiling: GameStudioModelRenderer.cpp
In file included from hud.h:28,
from GameStudioModelRenderer.cpp:9:
wrect.h:16:7: warning: no newline at end of file
In file included from cl_dll.h:37,
from hud.h:29,
from GameStudioModelRenderer.cpp:9:
../dlls/cdll_dll.h:46:7: warning: no newline at end of file
In file included from hud.h:30,
from GameStudioModelRenderer.cpp:9:
ammo.h:62:7: warning: no newline at end of file
In file included from ../utils/vgui/include/VGUI_Panel.h:28,
from ../utils/vgui/include/VGUI_Label.h:12,
from ..\game_shared\voice_status.h:13,
from hud.h:93,
from GameStudioModelRenderer.cpp:9:
../utils/vgui/include/VGUI_Dar.h:193:7: warning: no newline at end of file
In file included from ../utils/vgui/include/VGUI_Panel.h:29,
from ../utils/vgui/include/VGUI_Label.h:12,
from ..\game_shared\voice_status.h:13,
from hud.h:93,
from GameStudioModelRenderer.cpp:9:
../utils/vgui/include/VGUI_Scheme.h:82:7: warning: no newline at end of file
In file included from ../utils/vgui/include/VGUI_Label.h:12,
from ..\game_shared\voice_status.h:13,
from hud.h:93,
from GameStudioModelRenderer.cpp:9:
../utils/vgui/include/VGUI_Panel.h:35: error: use of enum `KeyCode' without previous declaration
../utils/vgui/include/VGUI_Panel.h:36: error: use of enum `MouseCode' without previous declaration
../utils/vgui/include/VGUI_Panel.h:77: error: `MouseCode' has not been declared
../utils/vgui/include/VGUI_Panel.h:77: error: ISO C++ forbids declaration of `code' with no type
../utils/vgui/include/VGUI_Panel.h:78: error: `MouseCode' has not been declared
../utils/vgui/include/VGUI_Panel.h:78: error: ISO C++ forbids declaration of `code' with no type
../utils/vgui/include/VGUI_Panel.h:79: error: `MouseCode' has not been declared
../utils/vgui/include/VGUI_Panel.h:79: error: ISO C++ forbids declaration of `code' with no type
../utils/vgui/include/VGUI_Panel.h:80: error: `MouseCode' has not been declared
../utils/vgui/include/VGUI_Panel.h:80: error: ISO C++ forbids declaration of `code' with no type
../utils/vgui/include/VGUI_Panel.h:81: error: `KeyCode' has not been declared
../utils/vgui/include/VGUI_Panel.h:81: error: ISO C++ forbids declaration of `code' with no type
../utils/vgui/include/VGUI_Panel.h:82: error: `KeyCode' has not been declared
../utils/vgui/include/VGUI_Panel.h:82: error: ISO C++ forbids declaration of `code' with no type
../utils/vgui/include/VGUI_Panel.h:83: error: `KeyCode' has not been declared
../utils/vgui/include/VGUI_Panel.h:83: error: ISO C++ forbids declaration of `code' with no type
../utils/vgui/include/VGUI_Panel.h:84: error: `KeyCode' has not been declared
../utils/vgui/include/VGUI_Panel.h:84: error: ISO C++ forbids declaration of `code' with no type
../utils/vgui/include/VGUI_Panel.h:176: error: `MouseCode' has not been declared
../utils/vgui/include/VGUI_Panel.h:176: error: ISO C++ forbids declaration of `code' with no type
../utils/vgui/include/VGUI_Panel.h:177: error: `MouseCode' has not been declared
../utils/vgui/include/VGUI_Panel.h:177: error: ISO C++ forbids declaration of `code' with no type
../utils/vgui/include/VGUI_Panel.h:178: error: `MouseCode' has not been declared
../utils/vgui/include/VGUI_Panel.h:178: error: ISO C++ forbids declaration of `code' with no type
../utils/vgui/include/VGUI_Panel.h:180: error: `KeyCode' has not been declared
../utils/vgui/include/VGUI_Panel.h:180: error: ISO C++ forbids declaration of `code' with no type
../utils/vgui/include/VGUI_Panel.h:181: error: `KeyCode' has not been declared
../utils/vgui/include/VGUI_Panel.h:181: error: ISO C++ forbids declaration of `code' with no type
../utils/vgui/include/VGUI_Panel.h:182: error: `KeyCode' has not been declared
../utils/vgui/include/VGUI_Panel.h:182: error: ISO C++ forbids declaration of `code' with no type
../utils/vgui/include/VGUI_Panel.h:217: error: class `vgui::Panel' is implicitly friends with itself
In file included from ..\game_shared\voice_status.h:13,
from hud.h:93,
from GameStudioModelRenderer.cpp:9:
../utils/vgui/include/VGUI_Label.h:80:7: warning: no newline at end of file
In file included from ../utils/vgui/include/VGUI_Border.h:12,
from ../utils/vgui/include/VGUI_LineBorder.h:12,
from ..\game_shared\voice_status.h:14,
from hud.h:93,
from GameStudioModelRenderer.cpp:9:
../utils/vgui/include/VGUI_Image.h:62:7: warning: no newline at end of file
In file included from ../utils/vgui/include/VGUI_LineBorder.h:12,
from ..\game_shared\voice_status.h:14,
from hud.h:93,
from GameStudioModelRenderer.cpp:9:
../utils/vgui/include/VGUI_Border.h:45:7: warning: no newline at end of file
In file included from ..\game_shared\voice_status.h:14,
from hud.h:93,
from GameStudioModelRenderer.cpp:9:
../utils/vgui/include/VGUI_LineBorder.h:39:7: warning: no newline at end of file
In file included from ..\game_shared\voice_status.h:15,
from hud.h:93,
from GameStudioModelRenderer.cpp:9:
../utils/vgui/include/VGUI_ImagePanel.h:38:7: warning: no newline at end of file
In file included from ../utils/vgui/include/VGUI_BitmapTGA.h:11,
from ..\game_shared\voice_status.h:16,
from hud.h:93,
from GameStudioModelRenderer.cpp:9:
../utils/vgui/include/VGUI_Bitmap.h:37:7: warning: no newline at end of file
In file included from ..\game_shared\voice_status.h:16,
from hud.h:93,
from GameStudioModelRenderer.cpp:9:
../utils/vgui/include/VGUI_BitmapTGA.h:29:7: warning: no newline at end of file
In file included from ..\game_shared\voice_status.h:17,
from hud.h:93,
from GameStudioModelRenderer.cpp:9:
../utils/vgui/include/VGUI_InputSignal.h:16: error: use of enum `MouseCode' without previous declaration
../utils/vgui/include/VGUI_InputSignal.h:17: error: use of enum `KeyCode' without previous declaration
../utils/vgui/include/VGUI_InputSignal.h:27: error: `MouseCode' has not been declared
../utils/vgui/include/VGUI_InputSignal.h:27: error: ISO C++ forbids declaration of `code' with no type
../utils/vgui/include/VGUI_InputSignal.h:28: error: `MouseCode' has not been declared
../utils/vgui/include/VGUI_InputSignal.h:28: error: ISO C++ forbids declaration of `code' with no type
../utils/vgui/include/VGUI_InputSignal.h:29: error: `MouseCode' has not been declared
../utils/vgui/include/VGUI_InputSignal.h:29: error: ISO C++ forbids declaration of `code' with no type
../utils/vgui/include/VGUI_InputSignal.h:31: error: `KeyCode' has not been declared
../utils/vgui/include/VGUI_InputSignal.h:31: error: ISO C++ forbids declaration of `code' with no type
../utils/vgui/include/VGUI_InputSignal.h:32: error: `KeyCode' has not been declared
../utils/vgui/include/VGUI_InputSignal.h:32: error: ISO C++ forbids declaration of `code' with no type
../utils/vgui/include/VGUI_InputSignal.h:33: error: `KeyCode' has not been declared
../utils/vgui/include/VGUI_InputSignal.h:33: error: ISO C++ forbids declaration of `code' with no type
In file included from ..\game_shared\voice_status.h:17,
from hud.h:93,
from GameStudioModelRenderer.cpp:9:
../utils/vgui/include/VGUI_InputSignal.h:39:7: warning: no newline at end of file
In file included from ../utils/vgui/include/VGUI_Button.h:12,
from ..\game_shared\voice_status.h:18,
from hud.h:93,
from GameStudioModelRenderer.cpp:9:
../utils/vgui/include/VGUI_Label.h:80:7: warning: no newline at end of file
In file included from ..\game_shared\voice_status.h:18,
from hud.h:93,
from GameStudioModelRenderer.cpp:9:
../utils/vgui/include/VGUI_Button.h:18: error: use of enum `MouseCode' without previous declaration
../utils/vgui/include/VGUI_Button.h:41: error: `MouseCode' has not been declared
../utils/vgui/include/VGUI_Button.h:41: error: ISO C++ forbids declaration of `code' with no type
../utils/vgui/include/VGUI_Button.h:42: error: `MouseCode' has not been declared
../utils/vgui/include/VGUI_Button.h:42: error: ISO C++ forbids declaration of `code' with no type
Process terminated with status 1 (0 minutes, 9 seconds)
52 errors, 14 warnings

----------------------------------------------

So das da was nicht stimmt ist mir klar nur verstehen tue ich es nicht :p

Weils vorher ja auch ohne Probleme funktionirte :(

--

zum Seitenanfang zum Seitenende Profil || Suche
003
15.05.2007, 00:57
Protector



Dein Compiler kommt nicht darauf klar, dass Variablen außerhalb einer Funktion deklariert und später auch außerhalb einer Funktion ihren Wert bekommen.
Beispiel:
Quellcode:float xy;
xy = 12;
Der Compiler versteht nicht, dass xy das float von vorher ist. Zwei Möglichkeiten das zu umgehen:
Direkt mit Wert deklarieren:
Quellcode:float xy = 12;
Oder eine Funktion benutzen:
Quellcode:float xy;
void lol(void){xy=12;};
Wobei du dann "lol" irgendwie aufrufen musst.

--

zum Seitenanfang zum Seitenende Profil || Suche
004
18.05.2007, 01:19
Taftu



Jo danke für die Antwort

Einfach den richtigen compeiler und gut ist

--

zum Seitenanfang zum Seitenende Profil || Suche
005
13.07.2007, 20:40
RikkuZooo



ah gut das das hier grade diskutiert wird hat wer ne makefile für mingw32 für ds SP sdk weil in netz gibts ja nur für mp

--

AirChina Mobile

zum Seitenanfang zum Seitenende Profil || Suche