Newsgroup: it.comp.lang.c++
Titolo: DIRECT 3D: compilazione

Ciao belli...
sono "relativamente" nuovo di C++ e di questo NG...
Vi espongo subito il mio problema: ho acquistato
un libro di Microsoft Press sull' uso di DirectX
per fare prg in 3D (vecchio patocco, del 97 credo, usa
ancora dx2). Quando mi accingo a compilare il codice di
esempio però, con Mic. VC++ 5 (ing) mi spara usa
serie di errori da suicidio!!! E sì che ho seguito le 
istruzioni passo passo (almeno 5 volte) e ho incluso
tutto l' includibile!!!
Ecco gli errori..
Qualche suggerimento???
Ringrazio tantissimo tutti
Ciauz
:):):)
Pietro Bello
  PEPPUS
--------------------Configuration: Basic - Win32 Debug--------------------
Linking...
Basic.obj : error LNK2001: unresolved external symbol "public: int
__thiscall C3dWnd::SetScene(class C3dScene *)"
(?SetScene@C3dWnd@@QAEHPAVC3dScene@@@Z)
Basic.obj : error LNK2001: unresolved external symbol "public: void
__thiscall C3dFrame::SetRotation(double,double,double,double,class C3dFrame
*)" (?SetRotation@C3dFrame@@QAEXNNNNPAV1@@Z)
Basic.obj : error LNK2001: unresolved external symbol "public: int
__thiscall C3dShape::SetColor(double,double,double)"
(?SetColor@C3dShape@@QAEHNNN@Z)
Basic.obj : error LNK2001: unresolved external symbol "public: int
__thiscall C3dShape::CreateSphere(double,int)"
(?CreateSphere@C3dShape@@QAEHNH@Z)
Basic.obj : error LNK2001: unresolved external symbol "public: __thiscall
C3dShape::C3dShape(void)" (??0C3dShape@@QAE@XZ)
Basic.obj : error LNK2001: unresolved external symbol "public: void
__thiscall C3dFrame::SetDirection(double,double,double,class C3dFrame *)"
(?SetDirection@C3dFrame@@QAEXNNNPAV1@@Z)
Basic.obj : error LNK2001: unresolved external symbol "public: void
__thiscall C3dFrame::SetPosition(double,double,double,class C3dFrame *)"
(?SetPosition@C3dFrame@@QAEXNNNPAV1@@Z)
Basic.obj : error LNK2001: unresolved external symbol "public: int
__thiscall C3dFrame::AddChild(class C3dFrame *)"
(?AddChild@C3dFrame@@QAEHPAV1@@Z)
Basic.obj : error LNK2001: unresolved external symbol "public: int
__thiscall C3dDirLight::Create(double,double,double)"
(?Create@C3dDirLight@@QAEHNNN@Z)
Basic.obj : error LNK2001: unresolved external symbol "public: int
__thiscall C3dScene::Create(void)" (?Create@C3dScene@@QAEHXZ)
Basic.obj : error LNK2001: unresolved external symbol "public: __thiscall
C3dScene::C3dScene(void)" (??0C3dScene@@QAE@XZ)
Basic.obj : error LNK2001: unresolved external symbol "public: int
__thiscall C3dWnd::Create(char const *,unsigned long,int,int,int,int,class
CWnd *)" (?Create@C3dWnd@@QAEHPBDKHHHHPAVCWnd@@@Z)
Basic.obj : error LNK2001: unresolved external symbol "public: __thiscall
C3dWnd::C3dWnd(void)" (??0C3dWnd@@QAE@XZ)
Basic.obj : error LNK2001: unresolved external symbol "public: virtual
__thiscall C3dShape::~C3dShape(void)" (??1C3dShape@@UAE@XZ)
Basic.obj : error LNK2001: unresolved external symbol "public: virtual
__thiscall C3dScene::~C3dScene(void)" (??1C3dScene@@UAE@XZ)
Basic.obj : error LNK2001: unresolved external symbol "public: virtual
struct CRuntimeClass * __thiscall C3dDirLight::GetRuntimeClass(void)const "
(?GetRuntimeClass@C3dDirLight@@UBEPAUCRuntimeClass@@XZ)
Basic.obj : error LNK2001: unresolved external symbol "public: __thiscall
C3dLight::C3dLight(void)" (??0C3dLight@@QAE@XZ)
Basic.obj : error LNK2001: unresolved external symbol "public: virtual
__thiscall C3dLight::~C3dLight(void)" (??1C3dLight@@UAE@XZ)
Basic.obj : error LNK2001: unresolved external symbol "public: int
__thiscall C3dWnd::Update(double)" (?Update@C3dWnd@@QAEHN@Z)
Basic.obj : error LNK2001: unresolved external symbol "public: int
__thiscall C3dLight::SetColor(double,double,double)"
(?SetColor@C3dLight@@QAEHNNN@Z)
nafxcwd.lib(thrdcore.obj) : error LNK2001: unresolved external symbol
__endthreadex
nafxcwd.lib(thrdcore.obj) : error LNK2001: unresolved external symbol
__beginthreadex
libcd.lib(crt0.obj) : error LNK2001: unresolved external symbol _main
Debug/Basic.exe : fatal error LNK1120: 23 unresolved externals
Error executing link.exe.
Basic.exe - 24 error(s), 0 warning(s)
--
Posted from 
mail.archimedia.it
 [192.106.156.2]
via Mailgate.ORG Server - 
http://www.mailgate.org

Non conosco il libro citato, ma cosě a spanne dagli errori si direbbe che
ci sia una o piů librerie da includere nel tuo progetto, dato che il
compilatore funziona benissimo, č il linker a lamentarsi.  Hai davvero
fatto tutto ciň che dovevi? :)
Ciao.
Roberto Cavada

>serie di errori da suicidio!!! E sě che ho seguito le
Sono tutti errori del linker, per cui direi che non hai incluso le librerie
(non i .h nel codice, ma i .lib nel progetto o qualcosa del genere)
--
Alessandro Monti