Page 6 of 8

Linking error

Posted: Thu Jul 01, 2004 5:17 pm
by Guest
I put all the files in the same folder as you said in your post but I still get linking errors, what am I doing wrong? :cry:

Posted: Fri Jul 02, 2004 1:40 pm
by AssiDragon
What compiler do you use? Other irrlicht things compile well?

This thing compiled OK on my PC (apart from a few compiler warnings maybe). I am using MSVC6++ , btw.

Rizzler, I know it's two weeks since you posted that, but I only got back here now. If you want me to check that code, fix the link - it's broken

Linking error

Posted: Fri Jul 02, 2004 4:51 pm
by Guest
I'm using MSVC6++ too, here is the error message I get, any ideas?

Linking...
LIBCD.lib(crt0.obj) : error LNK2001: unresolved external symbol _main
Debug/3rdPersonCamera.exe : fatal error LNK1120: 1 unresolved externals
Error executing link.exe.

Posted: Fri Jul 02, 2004 6:11 pm
by AssiDragon

Code: Select all

--------------------Configuration: NEWTON EXAMPLE - Win32 Release--------------------
Compiling...
g_cam.cpp
game.cpp
Main.cpp
Linking...

NEWTON EXAMPLE.exe - 0 error(s), 0 warning(s)
--------------------Configuration: NEWTON EXAMPLE - Win32 Debug--------------------
Compiling...
g_cam.cpp
game.cpp
Main.cpp
Linking...

NEWTON EXAMPLE.exe - 0 error(s), 0 warning(s)
I just downloaded my example and compiled it... see it worked.

What meets the eye is the name of the exe differs in my and your compilation. Note this means you changed something already. Try downloading a clean source from my site (link already posted in this thread) and see if that works. I cannot give help if you don't tell me what you changed, or if you are using someone else's source...

Posted: Sat Jul 03, 2004 12:42 am
by RizzleR
AssiDragon wrote:What compiler do you use? Other irrlicht things compile well?

This thing compiled OK on my PC (apart from a few compiler warnings maybe). I am using MSVC6++ , btw.

Rizzler, I know it's two weeks since you posted that, but I only got back here now. If you want me to check that code, fix the link - it's broken
thnx for ur help but i got it working thats why i took the link down
great cam btw very useful

Posted: Sat Jul 03, 2004 10:20 am
by AssiDragon
Oh, good then :) Glad you liked it.

Posted: Tue Aug 31, 2004 9:01 pm
by Peter Müller
the camera animators are (will be) implemented nativly in IrrlichtNX

Posted: Sun Oct 17, 2004 6:56 pm
by eeheeehe
When I try to compile this script, I keep getting this error message:

Code: Select all

3person.cpp:1:9: warning: #pragma once is obsolete
3person.cpp:1:9: warning: #pragma once in main file
3person.cpp:57: error: invalid type `irr::core::vector3df' for default argument 
   to `irr::core::vector3df&'

3person.cpp: In constructor `
   CSceneNodeAnimator3PPlayer::CSceneNodeAnimator3PPlayer(irr::scene::ISceneManager*,
   irr::scene::ICameraSceneNode*, CSceneNodeAnimator3PCamera*, float)':
3person.cpp:390: warning: assignment of negative value `-1' to `u32'
3person.cpp:390: warning: argument of negative value `-1' to `unsigned int'

3person.cpp: In function `int main()':
3person.cpp:602: error: no matching function for call to `
   CSceneNodeAnimator3PCamera::CSceneNodeAnimator3PCamera(

   irr::scene::ISceneManager*&, irr::gui::ICursorControl*, 
   irr::scene::IAnimatedMeshSceneNode*&, int, int, int, irr::core::vector3df)'
3person.cpp:38: error: candidates are: 
   CSceneNodeAnimator3PCamera::CSceneNodeAnimator3PCamera(const 
   CSceneNodeAnimator3PCamera&)
3person.cpp:136: error:                 
   CSceneNodeAnimator3PCamera::CSceneNodeAnimator3PCamera(irr::scene::ISceneManager*,
   irr::gui::ICursorControl*, irr::scene::ISceneNode*, float, float, float, 
   irr::core::vector3df&, float, float, float, float, float, float, float)

g++.exe 3person.o  -o "Project1.exe" -L"C:/DEV-CPP/lib" -L"C:/Programming/irrlicht-0.7/include" -L"C:/DXSDK/Lib" -L"C:/Programming/CS/libs" -L"C:/Programming/CS/CrystalSpaceLibs/lib" -L"C:/Programming/irrlicht-0.7/lib/DevCpp" ../../irrlicht-0.7/lib/DevCpp/libIrrlicht.a ../../irrlicht-0.7/lib/DevCpp/libjpeg.a ../../irrlicht-0.7/lib/DevCpp/libz.a  

G__~1.EXE: 3person.o: No such file or directory

Execution terminated
Can anyone tell me what needs to be fixed to update this script to the current version of Irrlicht?

Posted: Thu Oct 21, 2004 11:10 am
by Kyx
here is list of my errors:

3rdPersonCamera.obj : error LNK2001: unresolved external symbol "public: __thiscall CSceneNodeAnimator3PPlayer::CSceneNodeAnimator3PPlayer(class irr::scene::ISceneManager *,class irr::scene::ICameraSceneNode *,class CSceneNodeAnimator3PCamera *,floa
t)" (??0CSceneNodeAnimator3PPlayer@@QAE@PAVISceneManager@scene@irr@@PAVICameraSceneNode@23@PAVCSceneNodeAnimator3PCamera@@M@Z)
3rdPersonCamera.obj : error LNK2001: unresolved external symbol "public: __thiscall CSceneNodeAnimator3PCamera::CSceneNodeAnimator3PCamera(class irr::scene::ISceneManager *,class irr::gui::ICursorControl *,class irr::scene::ISceneNode *,float,float,
float,class irr::core::vector3d<float> &,float,float,float,float,float,float,float)" (??0CSceneNodeAnimator3PCamera@@QAE@PAVISceneManager@scene@irr@@PAVICursorControl@gui@3@PAVISceneNode@23@MMMAAV?$vector3d@M@core@3@MMMMMMM@Z)
LIBCD.lib(crt0.obj) : error LNK2001: unresolved external symbol _main
Debug/3rdPersonCamera.exe : fatal error LNK1120: 3 unresolved externals

Posted: Wed Nov 24, 2004 9:54 pm
by TheGoldeagle
The .exe does not work for my as well as trying to compile it. I use Microsoft Visual Studio. I get a linker error.

Posted: Thu Dec 23, 2004 4:44 pm
by Guest
I get exactly the same error as kyx.

Posted: Tue Mar 01, 2005 3:40 am
by Guest
Yeah the .exe nor the proj. works for me :\, in both there are errors..

broken links :/

Posted: Fri Mar 04, 2005 11:35 am
by Ramirez
Hi...

Have some one the this files ?

newtonirrlicht_3dcamera.ZIP
simple3rdview.zip

All postet links are dead :(

Ramirez

Posted: Sat Apr 02, 2005 2:51 pm
by Nemesis
Same here :( !

Posted: Sun Apr 03, 2005 11:05 am
by Nemesis
Maybe I'm wrong, but I don't think this file isn't interesting :( ... But also if this is a new topic, there's no file in the link :( ... Anyone can upload it please :( ?