hanse Online-tutorials.net Team
Registriert seit: 01.1970 Wohnort:Erde Beiträge:74
| und noch einmahl nichtaufgelöste externe symbole
Code:
main.cpp:
#include //Windows file
#include //File for the main objects
#include //File for the input
#include //File for the graphics
#include //File for the font
#include //File for the errors
#include //File for the camera
#include //File for the 3D Objects
#include //File for the textures
#include //Matrix & Vector
#include //For the toolbar
#include "main.h"
LRESULT CALLBACK WndProc (HWND, UINT, WPARAM, LPARAM);
int WINAPI WinMain (HINSTANCE hInstance, HINSTANCE hPrevInstance,
PSTR szCmdLine, int iCmdShow)
{
static char szAppName[] = "Name" ;
HWND hwnd ;
MSG msg ;
WNDCLASSEX wndclass ;
wndclass.cbSize = sizeof (wndclass) ;
wndclass.style = CS_HREDRAW | CS_VREDRAW ;
wndclass.lpfnWndProc = WndProc ;
wndclass.cbClsExtra = 0 ;
wndclass.cbWndExtra = 0 ;
wndclass.hInstance = hInstance ;
wndclass.hIcon = LoadIcon (NULL, IDI_APPLICATION) ;
wndclass.hCursor = LoadCursor (NULL, IDC_ARROW) ;
wndclass.hbrBackground = (HBRUSH) GetStockObject (WHITE_BRUSH) ;
wndclass.lpszMenuName = NULL ;
wndclass.lpszClassName = szAppName ;
wndclass.hIconSm = LoadIcon (NULL, IDI_APPLICATION) ;
RegisterClassEx (&wndclass) ;
hwnd = CreateWindow (szAppName, "Fenstername", WS_OVERLAPPEDWINDOW,
CW_USEDEFAULT, CW_USEDEFAULT, CW_USEDEFAULT, CW_USEDEFAULT,
NULL, NULL, hInstance, NULL) ;
g_DXGraphics.Init(hwnd,&g_iRefreshRate,true,16,false,SCR_WIDTH,SCR_HEIGHT);
ShowWindow (hwnd, iCmdShow) ;
UpdateWindow (hwnd) ;
while (GetMessage (&msg, NULL, 0, 0))
{
TranslateMessage (&msg) ;
DispatchMessage (&msg) ;
}
return msg.wParam ;
}
LRESULT CALLBACK WndProc (HWND hwnd, UINT iMsg, WPARAM wParam, LPARAM lParam)
{
HDC hdc ;
PAINTSTRUCT ps ;
RECT rect ;
switch (iMsg)
{
case WM_CREATE :
return 0 ;
case WM_PAINT :
return 0 ;
case WM_DESTROY :
PostQuitMessage (0) ;
return 0 ;
}
return DefWindowProc (hwnd, iMsg, wParam, lParam) ;
} m
main.h:
using namespace bn_Core;
#define SCR_WIDTH 1024
#define SCR_HEIGHT 768
bn_DirectXGraphics g_DXGraphics;
unsigned int g_iRefreshRate;
libs:
dsound.lib dinput8.lib dxerr9.lib d3dx9d.lib d3d9.lib d3dxof.lib dxguid.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib comctl32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib
und der fehler:
Code:
--------------------Konfiguration: Test - Win32 Debug--------------------
Kompilierung läuft...
main.cpp
c:\dokumente und einstellungen\hans-jörg\eigene dateien\bignuke\test\main.cpp(64) : warning C4101: 'rect' : Unreferenzierte lokale Variable
c:\dokumente und einstellungen\hans-jörg\eigene dateien\bignuke\test\main.cpp(63) : warning C4101: 'ps' : Unreferenzierte lokale Variable
c:\dokumente und einstellungen\hans-jörg\eigene dateien\bignuke\test\main.cpp(62) : warning C4101: 'hdc' : Unreferenzierte lokale Variable
Linker-Vorgang läuft...
Bibliothek Debug/Test.lib und Objekt Debug/Test.exp wird erstellt
main.obj : error LNK2001: Nichtaufgeloestes externes Symbol "public: void __thiscall bn_Core::bn_DirectXGraphics::Init(struct HWND__ *,unsigned int *,bool,int,bool,int,int)" (?Init@bn_DirectXGraphics@bn_Core@@QAEXPAUHWND__@@PAI_NH2HH@Z)
main.obj : error LNK2001: Nichtaufgeloestes externes Symbol "public: virtual void __thiscall bn_Core::bn_ErrorException::WriteErrorToLog(class std::basic_string)" (?WriteErrorToLog@bn_E
rrorException@bn_Core@@UAEXV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z)
main.obj : error LNK2001: Nichtaufgeloestes externes Symbol "public: virtual void __thiscall bn_Core::bn_ErrorException::GenerateText(void)" (?GenerateText@bn_ErrorException@bn_Core@@UAEXXZ)
main.obj : error LNK2001: Nichtaufgeloestes externes Symbol "public: virtual void __thiscall bn_Core::DXbn_ErrorException::WriteErrorToLog(class std::basic_string)" (?WriteErrorToLog@DX
bn_ErrorException@bn_Core@@UAEXV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z)
main.obj : error LNK2001: Nichtaufgeloestes externes Symbol "public: virtual void __thiscall bn_Core::DXbn_ErrorException::GenerateText(void)" (?GenerateText@DXbn_ErrorException@bn_Core@@UAEXXZ)
main.obj : error LNK2001: Nichtaufgeloestes externes Symbol "public: void __thiscall bn_Core::bn_Scene::SetLight(bool,struct _D3DLIGHT9 *,int)" (?SetLight@bn_Scene@bn_Core@@QAEX_NPAU_D3DLIGHT9@@H@Z)
main.obj : error LNK2001: Nichtaufgeloestes externes Symbol "public: __thiscall bn_Core::bn_MainObject::bn_MainObject(void)" (??0bn_MainObject@bn_Core@@QAE@XZ)
main.obj : error LNK2001: Nichtaufgeloestes externes Symbol "public: __thiscall bn_Core::bn_MainObject::~bn_MainObject(void)" (??1bn_MainObject@bn_Core@@QAE@XZ)
main.obj : error LNK2001: Nichtaufgeloestes externes Symbol "public: __thiscall bn_Core::bn_DirectXGraphics::bn_DirectXGraphics(void)" (??0bn_DirectXGraphics@bn_Core@@QAE@XZ)
main.obj : error LNK2001: Nichtaufgeloestes externes Symbol "public: __thiscall bn_Core::bn_DirectXGraphics::~bn_DirectXGraphics(void)" (??1bn_DirectXGraphics@bn_Core@@QAE@XZ)
Debug/Test.exe : fatal error LNK1120: 10 unaufgeloeste externe Verweise
Fehler beim Ausführen von link.exe.
Test.exe - 11 Fehler, 3 Warnung(en)
|