DebugViewPP icon indicating copy to clipboard operation
DebugViewPP copied to clipboard

Cannot compile due to 1.8.103-x64 due to boost error

Open tephyrnex opened this issue 3 years ago • 5 comments

I wouldn't submit the issue if I hadn't tried everything that I can think of to correct this.

I consistently get the following error when trying to compile the solution in VS2019...either HEAD or TAG 1.8.103-x64.

DebugViewPP\packages\boost.1.69.0.0\lib\native\include\boost\signals2\detail\auto_buffer.hpp(145,37): error C2039: 'pointer': is not a member of 'std::allocator<T>'

I have tried reverting the boost library, VS2017, VS2019, VS2022. I have tried pulling previous TAGs (usually get different errors).

I've tried numerous workarounds. Any insight would be appreciated.

tephyrnex avatar Aug 08 '22 14:08 tephyrnex

Upgrading to a conformant boost worked for me, i.e. boost v1.79 v142.

All packages.config: replace "1.69.0.0" with "1.79.0.0", replace "-vc141" with "-vc142" All *.vcxproj: replace "1.69.0.0" with "1.79.0", replace "-vc141" with "-vc142"

Note the dropped ".0" in the paths (vcxproj).

WebDancer69 avatar Aug 08 '22 15:08 WebDancer69

Thanks, @WebDancer69! That did the trick. Do you know if there is an outstanding pull request fro this?

tephyrnex avatar Aug 08 '22 17:08 tephyrnex

Sorry @tephyrnex, I don't know of any such PR. It seems the build is a bit of a mess, with several unused (?) solution build configs, and 32-bit and 64-bit builds does not target the same VS version.

WebDancer69 avatar Aug 09 '22 22:08 WebDancer69

Agreed...the build is a bit of a mess right now; however, your suggestion got me going...so Cheers!

tephyrnex avatar Aug 14 '22 14:08 tephyrnex

The setup was made like this so it's still possible to compile with very old versions of visual studio, it might be time to move away from that and make the configuration cleaner

janwilmans avatar Aug 14 '22 16:08 janwilmans

I've updated the project to use cmake and a new boost version 1.80, please give it a try.

janwilmans avatar Dec 16 '22 12:12 janwilmans