More Boost problems

    This site uses cookies. By continuing to browse this site, you are agreeing to our Cookie Policy.

    • More Boost problems

      2>c:\gc3\gamecode3\source\3rdparty\boost_1_37_0\boost\shared_ptr.hpp(29) : fatal error C1083: Cannot open include file: 'boost/assert.hpp': No such file or directory

      I just unzipped the 3rdParty.zip file per the instructions. I see different assert.hpp files in subdirs under boost dir, but not in the boost dir itself.
      Chris
      VS 2008
      MS Vista Home Premium 32-bit
    • RE: More Boost problems

      Hrm....have you checked the #include directory settings? That should be set in the project file, but you may have a competing setting somewhere perhaps?
      Mr.Mike
      Author, Programmer, Brewer, Patriot
    • Thanks for the response!


      $(SolutionDir)3rdParty\boost_1_37_0

      I have the above line in the "Additional Include Directories" of the failing project, and $(SolutionsDir) macro is set to "C:\gc3\GameCode3\Source\" (without the ""). But like I said, there is NO assert.hpp file in the
      $(SolutionDir)3rdParty\boost_1_37_0\boost directory, only in the
      $(SolutionDir)3rdParty\boost_1_37_0\boost\<one of the boost\subdirs>, "boost\detail" for example.

      I have NOT edited any of the project files so I don't know where the competing settings would be.

      Doesn't the error mean that shared_ptr.hpp is looking for $(SolutionDir)3rdPart\boost_1_37_0\boost\assert.hpp, but is NOT there?
      Chris
      VS 2008
      MS Vista Home Premium 32-bit

      The post was edited 4 times, last by ChrisF ().

    • Hi,

      Although im newbie, I cant recall having troubles with the 3rdParty.zip file first time i made the build, are you sure you dowloaded the whole 30 MBs 3rdParty.zip file and uncompressed fine (i generally use the free 7-Zip compressor)? My uncompressed 3drParty folder now is 160 Mb long and in the Source\3rdParty\boost_1_37_0\boost there are 119 hpp files including the assert.hpp

      Regards,

      @B^)>
    • assert.hpp is supposed to be in the boost directory - my guess is that the zip file didn't decompress correctly?
      Mr.Mike
      Author, Programmer, Brewer, Patriot
    • Ok I svn exported the source code, and re-installed the 3rdparty.zip file. I was able to compile successfully (after adding a using namespace LuaPlus; line in a couple of *.h files, e.g., actors.h, plus adding the appropriate include and lib paths for my DirectX9 folders in the projects files). Now when I run, I get an error for TeapotWars.exe saying:

      Unable to launch component. The Application failed to start because LuaPlusD_1100.dll was not found. Re-installing the application may fix the problem.

      I obviously have he LuaPlus\lib\win32 folder in my lib path since I was able to link.
      Chris
      VS 2008
      MS Vista Home Premium 32-bit
    • It is complaining about not being able to find the DLL - and that one should be sitting in the test direcctory. If it isn't there you should recompile it - the solution is in Source\3rdParty\LuaPlus\Src\LuaPlus.

      If it IS there already all you need to do is set the working directory for debugging to "..\Test" and you'll be good to go. You do that by going into the Debugging section of the solution's properties.
      Mr.Mike
      Author, Programmer, Brewer, Patriot
    • The LuaPlus DLL is in the ..\..\Bin directory, and the readme files state to set the working directory here, and I did.

      So if I do change it, should it be ..\..\Test instead of ..\Test?
      ..\..\Test is where Editor puts its libs, but the LuaPlus DLL is in ..\..\Bin
      Chris
      VS 2008
      MS Vista Home Premium 32-bit

      The post was edited 3 times, last by ChrisF ().

    • More info.


      If I change the working directory to ..\..\Test, I get the same error about the LuaPluss DLL not found.

      If I change the working directory to ..\..\Bin, I get an error that says "Application failed to initialize properly (0xc0150002)..."
      Chris
      VS 2008
      MS Vista Home Premium 32-bit
    • Bleh I'm at a loss - looks like we need to put out an all call about fixing this - I still haven't upgraded to 2008 (yeah I know, lame....)


      Does anyone out there have the same issues with 2008?
      Mr.Mike
      Author, Programmer, Brewer, Patriot
    • I tried compiling LuaPlus and got this error.

      1>LuaPlus.cpp
      1>c:\gc3\gamecode3\source\3rdparty\luaplus\src\luaplus\luaplus.cpp(137) : error C3861: 'LuaState_UserStateOpen_Internal': identifier not found
      1>c:\gc3\gamecode3\source\3rdparty\luaplus\src\luaplus\luaplus.cpp(143) : error C3861: 'LuaState_UserStateThread_Internal': identifier not found
      1>c:\gc3\gamecode3\source\3rdparty\luaplus\src\luaplus\luaplus.cpp(149) : error C3861: 'LuaState_UserStateFree_Internal': identifier not found

      So I added "using namespace LuaPlus;" (without "") in LuaPlus.cpp and it compiled.
      Chris
      VS 2008
      MS Vista Home Premium 32-bit

      The post was edited 1 time, last by ChrisF ().

    • You're sure it's the Lua DLL, right? Have you tried taking it out and disabling the Lua code?
      Mr.Mike
      Author, Programmer, Brewer, Patriot
    • Originally posted by bad habit
      Have you tried downloading luaplus and doing a build using the jam files? It worked for me using vc 2010 express.


      No, I don't know what's causing the initialize at 0xc... error. I see that the LuaPlus ..\lib\win32 plus contains the generated DLL, and the TeapotWars includes the DLL, and the path for it.

      Maybe you can explain to me the runtime structure. I expect the *.exe in the *\bin folders, *.lib and *.dll in the *\lib folders. What's the *\Test folder for? Should any DLL's be there?

      Thanks!
      Chris
      VS 2008
      MS Vista Home Premium 32-bit
    • Originally posted by mrmike
      It is complaining about not being able to find the DLL - and that one should be sitting in the test direcctory. If it isn't there you should recompile it - the solution is in Source\3rdParty\LuaPlus\Src\LuaPlus.

      If it IS there already all you need to do is set the working directory for debugging to "..\Test" and you'll be good to go. You do that by going into the Debugging section of the solution's properties.


      I really want this to work, I have the interest.

      I'm back to looking at above recommendation. What project should I set the Debugging\Working directory to, LuaPlus or TeapotWars, or other, or all?

      Thanks for answering and being patient.
      Chris
      VS 2008
      MS Vista Home Premium 32-bit
    • I'm re-reading Ch. 4 in the GC3 book, and understand now that the *\Test folder is for the debug executables. I look at the *\Libs folder and expect the Lua DLL's to be there (at least you mention in your book that DLLs should be in the libs folder :), but they're not. Where should the LuaPlus DLLs be?
      Chris
      VS 2008
      MS Vista Home Premium 32-bit
    • Ok, I copied the Lua DLL from the Bin folder to the Test folder and I was able to run, but I get this in the output window of VS2008

      'TeapotWarsd.exe': Loaded 'C:\gc3\GameCode3\test\TeapotWarsd.exe', Symbols loaded.
      'TeapotWarsd.exe': Loaded 'C:\Windows\System32\ntdll.dll'
      'TeapotWarsd.exe': Loaded 'C:\Windows\System32\kernel32.dll'
      'TeapotWarsd.exe': Loaded 'C:\Windows\System32\D3dx9d_43.dll'
      'TeapotWarsd.exe': Loaded 'C:\Windows\System32\msvcrt.dll'
      'TeapotWarsd.exe': Loaded 'C:\Windows\System32\user32.dll'
      'TeapotWarsd.exe': Loaded 'C:\Windows\System32\gdi32.dll'
      'TeapotWarsd.exe': Loaded 'C:\Windows\System32\advapi32.dll'
      'TeapotWarsd.exe': Loaded 'C:\Windows\System32\rpcrt4.dll'
      'TeapotWarsd.exe': Loaded 'C:\gc3\GameCode3\test\LuaPlusD_1100.dll', Symbols loaded.
      'TeapotWarsd.exe': Loaded 'C:\Windows\winsxs\x86_microsoft.vc90.debugcrt_1fc8b3b9a1e18e3b_9.0.21022.8_none_96748342450f6aa2\msvcr90d.dll', Symbols loaded.
      'TeapotWarsd.exe': Loaded 'C:\gc3\GameCode3\test\zlib.dll', Binary was not built with debug information.
      'TeapotWarsd.exe': Loaded 'C:\Windows\System32\crtdll.dll'
      'TeapotWarsd.exe': Loaded 'C:\Windows\System32\shell32.dll'
      'TeapotWarsd.exe': Loaded 'C:\Windows\System32\shlwapi.dll'
      'TeapotWarsd.exe': Loaded 'C:\Windows\System32\ws2_32.dll'
      'TeapotWarsd.exe': Loaded 'C:\Windows\System32\nsi.dll'
      'TeapotWarsd.exe': Loaded 'C:\Windows\System32\dsound.dll'
      'TeapotWarsd.exe': Loaded 'C:\Windows\System32\ole32.dll'
      'TeapotWarsd.exe': Loaded 'C:\Windows\System32\winmm.dll'
      'TeapotWarsd.exe': Loaded 'C:\Windows\System32\oleaut32.dll'
      'TeapotWarsd.exe': Loaded 'C:\Windows\System32\oleacc.dll'
      'TeapotWarsd.exe': Loaded 'C:\Windows\System32\powrprof.dll'
      'TeapotWarsd.exe': Loaded 'C:\Windows\System32\D3DX10d_43.dll'
      'TeapotWarsd.exe': Loaded 'C:\Windows\winsxs\x86_microsoft.windows.common-controls_6595b64144ccf1df_5.82.6001.18000_none_886786f450a74a05\comctl32.dll'
      'TeapotWarsd.exe': Loaded 'C:\Windows\System32\shimeng.dll'
      'TeapotWarsd.exe': Loaded 'C:\Windows\System32\apphelp.dll'
      'TeapotWarsd.exe': Loaded 'C:\Windows\AppPatch\AcLayers.dll'
      'TeapotWarsd.exe': Loaded 'C:\Windows\System32\userenv.dll'
      'TeapotWarsd.exe': Loaded 'C:\Windows\System32\secur32.dll'
      'TeapotWarsd.exe': Loaded 'C:\Windows\System32\winspool.drv'
      'TeapotWarsd.exe': Loaded 'C:\Windows\System32\mpr.dll'
      'TeapotWarsd.exe': Loaded 'C:\Windows\System32\imm32.dll'
      'TeapotWarsd.exe': Loaded 'C:\Windows\System32\msctf.dll'
      'TeapotWarsd.exe': Loaded 'C:\Windows\System32\lpk.dll'
      'TeapotWarsd.exe': Loaded 'C:\Windows\System32\usp10.dll'
      'TeapotWarsd.exe': Loaded 'C:\Windows\winsxs\x86_microsoft.windows.common-controls_6595b64144ccf1df_6.0.6002.18005_none_5cb72f96088b0de0\comctl32.dll'
      'TeapotWarsd.exe': Loaded 'C:\gc3\GameCode3\test\Langd.dll', Symbols loaded.
      Detected memory leaks!
      Dumping objects ->
      {84} normal block at 0x02961700, 52 bytes long.
      Data: < > 00 17 96 02 00 17 96 02 00 17 96 02 CD CD CD CD
      c:\gc3\gamecode3\source\resourcecache\rescache2.cpp(71) : {83} normal block at 0x02961690, 48 bytes long.
      Data: < > 14 C8 85 00 00 00 00 00 CD CD CD CD CD CD CD CD
      {82} normal block at 0x02961618, 56 bytes long.
      Data: < > 18 16 96 02 18 16 96 02 18 16 96 02 CD CD CD CD
      {81} normal block at 0x02967FB0, 16 bytes long.
      Data: < > B0 7F 96 02 B0 7F 96 02 CD CD CD CD CD CD CD CD
      {80} normal block at 0x029615A8, 48 bytes long.
      Data: <d a t a \ G a m > 64 00 61 00 74 00 61 00 5C 00 47 00 61 00 6D 00
      c:\gc3\gamecode3\source\gamecode.cpp(237) : {79} normal block at 0x02967F48, 40 bytes long.
      Data: <d > 64 84 84 00 90 16 96 02 00 00 00 00 CD CD CD CD
      c:\gc3\gamecode3\source\gamecode.cpp(237) : {78} normal block at 0x02967EC8, 68 bytes long.
      Data: < > B4 D3 85 00 00 00 00 00 CD CD CD CD CD CD CD CD
      c:\gc3\gamecode3\source\gamecode.cpp(230) : {77} normal block at 0x029652C8, 68 bytes long.
      Data: < > 00 01 01 01 00 01 00 01 00 00 00 00 00 00 00 00
      Object dump complete.
      The program '[6700] TeapotWarsd.exe: Native' has exited with code 0 (0x0).
      Chris
      VS 2008
      MS Vista Home Premium 32-bit