Crystal Space
Welcome, Guest. Please login or register.
July 26, 2014, 02:15:37 am

Login with username, password and session length
Search:     Advanced search
9005 Posts in 2043 Topics by 8232 Members
Latest Member: Msdavercarleen03
* Home Help Search Login Register
+  Crystal Space
|-+  Crystal Space Development
| |-+  General Crystal Space Discussion
| | |-+  plgbullet
« previous next »
Pages: [1] Print
Author Topic: plgbullet  (Read 2649 times)
Dutch
Newbie
*
Posts: 32


View Profile Email
« on: January 06, 2010, 09:25:32 pm »

My system:
AMD Phenom 8550 2.2 GHz
4Gb memory
Vista Home Premium 32 bit with SP2
Visual Studio Express 2208
DirectX9.0c

I have compiled all wkstypical except plgbullet, which has generated 18 errors: 

2>   Creating library ..\..\out\debug8\build\plgbullet\plgbullet.lib and object ..\..\out\debug8\build\plgbullet\plgbullet.exp
2>LINK : warning LNK4098: defaultlib 'MSVCRTD' conflicts with use of other libs; use /NODEFAULTLIB:library
2>bullet-vc8_d.lib(CollisionWorld.obj) : error LNK2001: unresolved external symbol "__declspec(dllimport) public: __thiscall std::_Container_base::~_Container_base(void)" (__imp_??1_Container_base@std@@QAE@XZ)
2>bulletdynamics-vc8_d.lib(RaycastVehicle.obj) : error LNK2001: unresolved external symbol "__declspec(dllimport) public: __thiscall std::_Container_base::~_Container_base(void)" (__imp_??1_Container_base@std@@QAE@XZ)
2>bullet-vc8_d.lib(CollisionDispatcher.obj) : error LNK2019: unresolved external symbol "__declspec(dllimport) public: __thiscall std::_Container_base::~_Container_base(void)" (__imp_??1_Container_base@std@@QAE@XZ) referenced in function "public: __thiscall std::_Vector_val<class PersistentManifold *,class std::allocator<class PersistentManifold *> >::~_Vector_val<class PersistentManifold *,class std::allocator<class PersistentManifold *> >(void)" (??1?$_Vector_val@PAVPersistentManifold@@V?$allocator@PAVPersistentManifold@@@std@@@std@@QAE@XZ)
2>bullet-vc8_d.lib(CompoundCollisionAlgorithm.obj) : error LNK2001: unresolved external symbol "__declspec(dllimport) public: __thiscall std::_Container_base::~_Container_base(void)" (__imp_??1_Container_base@std@@QAE@XZ)
2>bulletccdphysics-vc8_d.lib(CcdPhysicsEnvironment.obj) : error LNK2001: unresolved external symbol "__declspec(dllimport) public: __thiscall std::_Container_base::~_Container_base(void)" (__imp_??1_Container_base@std@@QAE@XZ)
2>bullet-vc8_d.lib(SimulationIslandManager.obj) : error LNK2001: unresolved external symbol "__declspec(dllimport) public: __thiscall std::_Container_base::~_Container_base(void)" (__imp_??1_Container_base@std@@QAE@XZ)
2>bullet-vc8_d.lib(CollisionWorld.obj) : error LNK2001: unresolved external symbol "__declspec(dllimport) public: void __thiscall std::_Container_base::_Orphan_all(void)const " (__imp_?_Orphan_all@_Container_base@std@@QBEXXZ)
2>bulletdynamics-vc8_d.lib(RaycastVehicle.obj) : error LNK2001: unresolved external symbol "__declspec(dllimport) public: void __thiscall std::_Container_base::_Orphan_all(void)const " (__imp_?_Orphan_all@_Container_base@std@@QBEXXZ)
2>bullet-vc8_d.lib(CollisionDispatcher.obj) : error LNK2019: unresolved external symbol "__declspec(dllimport) public: void __thiscall std::_Container_base::_Orphan_all(void)const " (__imp_?_Orphan_all@_Container_base@std@@QBEXXZ) referenced in function "protected: void __thiscall std::vector<class PersistentManifold *,class std::allocator<class PersistentManifold *> >::_Tidy(void)" (?_Tidy@?$vector@PAVPersistentManifold@@V?$allocator@PAVPersistentManifold@@@std@@@std@@IAEXXZ)
2>bullet-vc8_d.lib(CompoundCollisionAlgorithm.obj) : error LNK2001: unresolved external symbol "__declspec(dllimport) public: void __thiscall std::_Container_base::_Orphan_all(void)const " (__imp_?_Orphan_all@_Container_base@std@@QBEXXZ)
2>bulletccdphysics-vc8_d.lib(CcdPhysicsEnvironment.obj) : error LNK2001: unresolved external symbol "__declspec(dllimport) public: void __thiscall std::_Container_base::_Orphan_all(void)const " (__imp_?_Orphan_all@_Container_base@std@@QBEXXZ)
2>bullet-vc8_d.lib(SimulationIslandManager.obj) : error LNK2001: unresolved external symbol "__declspec(dllimport) public: void __thiscall std::_Container_base::_Orphan_all(void)const " (__imp_?_Orphan_all@_Container_base@std@@QBEXXZ)
2>bulletdynamics-vc8_d.lib(RaycastVehicle.obj) : error LNK2001: unresolved external symbol "__declspec(dllimport) public: __thiscall std::_Container_base::_Container_base(void)" (__imp_??0_Container_base@std@@QAE@XZ)
2>bullet-vc8_d.lib(CollisionDispatcher.obj) : error LNK2019: unresolved external symbol "__declspec(dllimport) public: __thiscall std::_Container_base::_Container_base(void)" (__imp_??0_Container_base@std@@QAE@XZ) referenced in function "protected: __thiscall std::_Vector_val<class PersistentManifold *,class std::allocator<class PersistentManifold *> >::_Vector_val<class PersistentManifold *,class std::allocator<class PersistentManifold *> >(class std::allocator<class PersistentManifold *>)" (??0?$_Vector_val@PAVPersistentManifold@@V?$allocator@PAVPersistentManifold@@@std@@@std@@IAE@V?$allocator@PAVPersistentManifold@@@1@@Z)
2>bullet-vc8_d.lib(CompoundCollisionAlgorithm.obj) : error LNK2001: unresolved external symbol "__declspec(dllimport) public: __thiscall std::_Container_base::_Container_base(void)" (__imp_??0_Container_base@std@@QAE@XZ)
2>bulletccdphysics-vc8_d.lib(CcdPhysicsEnvironment.obj) : error LNK2001: unresolved external symbol "__declspec(dllimport) public: __thiscall std::_Container_base::_Container_base(void)" (__imp_??0_Container_base@std@@QAE@XZ)
2>bullet-vc8_d.lib(SimulationIslandManager.obj) : error LNK2001: unresolved external symbol "__declspec(dllimport) public: __thiscall std::_Container_base::_Container_base(void)" (__imp_??0_Container_base@std@@QAE@XZ)
2>..\..\bullet.dll : fatal error LNK1120: 3 unresolved externals
2>Build log was saved at "file://c:\CrystalSpace\crystalspace-src-1.2.1\out\debug8\build\plgbullet\BuildLog.htm"
2>plgbullet - 18 error(s), 1 warning(s)

How do I correct these errors?
 
Best wishes

Tony Holland
Logged
res
Develazyoper
CS Developer
Full Member
*****
Posts: 206


View Profile Email
« Reply #1 on: January 07, 2010, 05:38:20 am »

The winlibs for CS 1.2 provide bullet (and other libs) only built in version for VC 8 (in Visual Studio 2005). You try to use VC 9 (in Visual Studio 2008). Obviously that doesn't work well...
So perhaps eiter use VC8 to build CS. Or update to CS 1.4, which also suports VC 9 (and comes with projects for that).
Logged
Dutch
Newbie
*
Posts: 32


View Profile Email
« Reply #2 on: January 07, 2010, 11:26:37 pm »

Many thanks, Res.

I've downloaded CS 1.4, but I cannot get it to compile.   I now have a new list of errors (this is just a selection):

1>------ Build started: Project: libcrystalspace, Configuration: Debug (with DLLs) Win32 ------
1>Linking...
1>LINK : fatal error LNK1104: cannot open file 'zlib.lib'
1>Build log was saved at "file://c:\CS_stable\out\debug9\build\libcrystalspace\BuildLog.htm"
1>libcrystalspace - 1 error(s), 0 warning(s)
2>------ Build started: Project: libcrystalspace_opengl, Configuration: Debug (with DLLs) Win32 ------
3>------ Build started: Project: libcrystalspace_windows, Configuration: Debug (with DLLs) Win32 ------
4>------ Build started: Project: libcrystalspace_directx, Configuration: Debug (with DLLs) Win32 ------
3>Linking...
4>Linking...
2>Linking...
4>   Creating library ..\..\out\debug9\libs\libcrystalspace_directx_d.lib and object ..\..\out\debug9\libs\libcrystalspace_directx_d.exp
3>   Creating library ..\..\out\debug9\libs\libcrystalspace_windows_d.lib and object ..\..\out\debug9\libs\libcrystalspace_windows_d.exp
2>   Creating library ..\..\out\debug9\libs\libcrystalspace_opengl_d.lib and object ..\..\out\debug9\libs\libcrystalspace_opengl_d.exp
4>directdetection.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) char * __cdecl csStrNew(char const *)" (__imp_?csStrNew@@YAPADPBD@Z) referenced in function "public: __thiscall DirectDetectionDevice::DirectDetectionDevice(class DirectDetectionDevice const &)" (??0DirectDetectionDevice@@QAE@ABV0@@Z)
4>error.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) char * __cdecl csStrNew(char const *)" (__imp_?csStrNew@@YAPADPBD@Z)
2>driverdb.obj : warning LNK4217: locally defined symbol ??4csStringHash@@QAEAAV0@ABV0@@Z (public: class csStringHash & __thiscall csStringHash::operator=(class csStringHash const &)) imported in function "public: class csGLDriverDatabase & __thiscall csGLDriverDatabase::operator=(class csGLDriverDatabase const &)" (??4csGLDriverDatabase@@QAEAAV0@ABV0@@Z)
3>customcursor.obj : warning LNK4217: locally defined symbol ?SetFormat@csImageMemory@@QAEXH@Z (public: void __thiscall csImageMemory::SetFormat(int)) imported in function "private: struct csWin32CustomCursors::CachedCursor __thiscall csWin32CustomCursors::CreateCursor(struct iImage *,struct csRGBcolor const *,int,int)" (?CreateCursor@csWin32CustomCursors@@AAE?AUCachedCursor@1@PAUiImage@@PBUcsRGBcolor@@HH@Z)
2>glcommon2d.obj : warning LNK4049: locally defined symbol ??4csStringHash@@QAEAAV0@ABV0@@Z (public: class csStringHash & __thiscall csStringHash::operator=(class csStringHash const &)) imported
4>directdetection.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) int __cdecl csPrintfV(char const *,char *)" (__imp_?csPrintfV@@YAHPBDPAD@Z) referenced in function "public: static void __cdecl csReporterHelper::ReportV(struct iObjectRegistry *,int,char const *,char const *,char *)" (?ReportV@csReporterHelper@@SAXPAUiObjectRegistry@@HPBD1PAD@Z)
3>customcursor.obj : warning LNK4217: locally defined symbol ??0csImageMemory@@QAE@PAUiImage@@@Z (public: __thiscall csImageMemory::csImageMemory(struct iImage *)) imported in function "private: struct csWin32CustomCursors::CachedCursor __thiscall csWin32CustomCursors::CreateCursor(struct iImage *,struct csRGBcolor const *,int,int)" (?CreateCursor@csWin32CustomCursors@@AAE?AUCachedCursor@1@PAUiImage@@PBUcsRGBcolor@@HH@Z)
2>glfontcache.obj : warning LNK4217: locally defined symbol ??4csStringHash@@QAEAAV0@ABV0@@Z (public: class csStringHash & __thiscall csStringHash::operator=(class csStringHash const &)) imported in function "public: __thiscall csGLFontCache::csGLFontCache(class csGLFontCache const &)" (??0csGLFontCache@@QAE@ABV0@@Z)
3>customcursor.obj : warning LNK4217: locally defined symbol ?cswinIsWinNT@@YA_NPAW4cswinWindowsVersion@@@Z (bool __cdecl cswinIsWinNT(enum cswinWindowsVersion *)) imported in function "private: struct csWin32CustomCursors::CachedCursor __thiscall csWin32CustomCursors::CreateCursor(struct iImage *,struct csRGBcolor const *,int,int)" (?CreateCursor@csWin32CustomCursors@@AAE?AUCachedCursor@1@PAUiImage@@PBUcsRGBcolor@@HH@Z)
4>directdetection.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) int __cdecl csStrNCaseCmp(char const *,char const *,unsigned int)" (__imp_?csStrNCaseCmp@@YAHPBD0I@Z) referenced in function "public: static void __cdecl csReporterHelper::ReportV(struct iObjectRegistry *,int,char const *,char const *,char *)" (?ReportV@csReporterHelper@@SAXPAUiObjectRegistry@@HPBD1PAD@Z)
2>glss.obj : warning LNK4049: locally defined symbol ??4csStringHash@@QAEAAV0@ABV0@@Z (public: class csStringHash & __thiscall csStringHash::operator=(class csStringHash const &)) imported
3>customcursor.obj : warning LNK4217: locally defined symbol ?cs_malloc@@YAPAXI@Z (void * __cdecl cs_malloc(unsigned int)) imported in function "public: static void * __cdecl CS::Memory::CustomAllocated::operator new(unsigned int)" (??2CustomAllocated@Memory@CS@@SAPAXI@Z)
4>directdetection.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) int __cdecl csPrintf(char const *,...)" (__imp_?csPrintf@@YAHPBDZZ) referenced in function "public: static void __cdecl csReporterHelper::ReportV(struct iObjectRegistry *,int,char const *,char const *,char *)" (?ReportV@csReporterHelper@@SAXPAUiObjectRegistry@@HPBD1PAD@Z)
2>driverdb.obj : warning LNK4217: locally defined symbol ??1csFontCache@@UAE@XZ (public: virtual __thiscall csFontCache::~csFontCache(void)) imported in function __unwindfunclet$??0csGLFontCache@@QAE@ABV0@@Z$0
3>customcursor.obj : warning LNK4217: locally defined symbol ?cs_free@@YAXPAX@Z (void __cdecl cs_free(void *)) imported in function "public: static void __cdecl CS::Memory::CustomAllocated::operator delete(void *)" (??3CustomAllocated@Memory@CS@@SAXPAX@Z)
4>directdetection.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: bool __thiscall csStringBase::CompareNoCase(char const *)const " (__imp_?CompareNoCase@csStringBase@@QBE_NPBD@Z) referenced in function "public: class DirectDetectionDevice const * __thiscall DirectDetection::FindBestDevice(int)" (?FindBestDevice@DirectDetection@@QAEPBVDirectDetectionDevice@@H@Z)
2>glcommon2d.obj : warning LNK4049: locally defined symbol ??1csFontCache@@UAE@XZ (public: virtual __thiscall csFontCache::~csFontCache(void)) imported
3>customcursor.obj : warning LNK4217: locally defined symbol ??_DcsImageMemory@@QAEXXZ (public: void __thiscall csImageMemory::`vbase destructor'(void)) imported in function "public: virtual void * __thiscall csImageMemory::`scalar deleting destructor'(unsigned int)" (??_GcsImageMemory@@UAEPAXI@Z)
4>directdetection.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: class csStringBase & __thiscall csStringBase::Append(int)" (__imp_?Append@csStringBase@@QAEAAV1@H@Z) referenced in function "public: class DirectDetectionDevice const * __thiscall DirectDetection::FindBestDevice(int)" (?FindBestDevice@DirectDetection@@QAEPBVDirectDetectionDevice@@H@Z)
2>glfontcache.obj : warning LNK4049: locally defined symbol ??1csFontCache@@UAE@XZ (public: virtual __thiscall csFontCache::~csFontCache(void)) imported
3>customcursor.obj : warning LNK4217: locally defined symbol ?ComputeNewSize@csStringBase@@IAEII@Z (protected: unsigned int __thiscall csStringBase::ComputeNewSize(unsigned int)) imported in function "protected: virtual void __thiscall csStringFast<36>::SetCapacityInternal(unsigned int,bool)" (?SetCapacityInternal@?$csStringFast@$0CE@@@MAEXI_N@Z)
4>directdetection.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) char * __cdecl csStrNew(unsigned short const *)" (__imp_?csStrNew@@YAPADPBG@Z) referenced in function "int __stdcall DirectDetectionDDrawEnumCallback(struct _GUID *,char *,char *,void *,struct HMONITOR__ *)" (?DirectDetectionDDrawEnumCallback@@YGHPAU_GUID@@PAD1PAXPAUHMONITOR__@@@Z)
2>glss.obj : warning LNK4049: locally defined symbol ??1csFontCache@@UAE@XZ (public: virtual __thiscall csFontCache::~csFontCache(void)) imported
3>customcursor.obj : warning LNK4217: locally defined symbol ?AssertMessage@Debug@CS@@YAXPBD0H0@Z (void __cdecl CS::Debug::AssertMessage(char const *,char const *,int,char const *)) imported in function "protected: virtual void __thiscall csStringFast<36>::SetCapacityInternal(unsigned int,bool)" (?SetCapacityInternal@?$csStringFast@$0CE@@@MAEXI_N@Z)
4>directdetection.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) protected: unsigned int __thiscall csStringBase::ComputeNewSize(unsigned int)" (__imp_?ComputeNewSize@csStringBase@@IAEII@Z) referenced in function "protected: virtual void __thiscall csStringFast<36>::SetCapacityInternal(unsigned int,bool)" (?SetCapacityInternal@?$csStringFast@$0CE@@@MAEXI_N@Z)
2>driverdb.obj : warning LNK4217: locally defined symbol ?StrDup@CS@@YAPADPBD@Z (char * __cdecl CS::StrDup(char const *)) imported in function "public: virtual void __thiscall csImageBase::SetName(char const *)" (?SetName@csImageBase@@UAEXPBD@Z)
3>customcursor.obj : warning LNK4217: locally defined symbol ?SetCapacityInternal@csStringBase@@MAEXI_N@Z (protected: virtual void __thiscall csStringBase::SetCapacityInternal(unsigned int,bool)) imported in function "protected: virtual void __thiscall csStringFast<36>::SetCapacityInternal(unsigned int,bool)" (?SetCapacityInternal@?$csStringFast@$0CE@@@MAEXI_N@Z)
3>customcursor.obj : warning LNK4217: locally defined symbol ??1csStringBase@@UAE@XZ (public: virtual __thiscall csStringBase::~csStringBase(void)) imported in function __unwindfunclet$??0?$csStringFast@$0CE@@@QAE@PBD@Z$0

I have unpacked zlib into the cs\libs folder and don't know why it cannot be found.   As for the other errors, any further help would be greatly appreciated.
Logged
res
Develazyoper
CS Developer
Full Member
*****
Posts: 206


View Profile Email
« Reply #3 on: January 08, 2010, 04:05:57 am »

Well you also need to install the appropriate version of the CS libs for 1.4. And don't forget the "VC support".
Logged
Dutch
Newbie
*
Posts: 32


View Profile Email
« Reply #4 on: January 09, 2010, 09:01:13 pm »

Thanks for this Res.   I've downloaded cs32-winlibs-1.4 and installed it.   I still cannot build wkstypical.   I will continue this as a new topic on the support forum.
Logged
Pages: [1] Print 
« previous next »
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.2 | SMF © 2006-2007, Simple Machines LLC Valid XHTML 1.0! Valid CSS!
Page created in 7.268 seconds with 17 queries.