JustasMasiulis / xorstr

heavily vectorized c++17 compile time string encryption.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Can not build

cck101 opened this issue · comments

image
After update, I have this error for every xorstr. Can you help me?

Could you provide the compiler output?
Because this looks like an intellisense error and they aren't always accurate.

OK, please wait 2 minutes :)

image

image

image
and here is compiler output

@coofcookie I only see 2 errors and they don't really seem to be related to xorstr library.

To fix the first one add _CRT_SECURE_NO_WARNINGS to the preprocessor definitions in solution settings.

As for the second one I don't really know. It says it cannot find __crv but I don't really remember anything named like that being in the library.

You can ignore all errors that don't come from the compiler output window (the last picture you sent)

I can't really help you with anything more unless the __crv stuff somehow comes from my code.

I already have _CRT_SECURE_NO_WARNINGS is definitions :)

yes, sorry - it was a warning. I mistook it for an error.

Did you figure out the __crv stuff?

No. I really do not know what to do now. Do you know any other xorstr? I tried to use older versions of your xorstr, I can build it, but it was crashing. I saw you fix the crashing issue in latest update and I can not use it because I can not build it.

what's the exception / crash reason? Try defining JM_XORSTR_DISABLE_AVX_INTRINSICS

Also from quick google search the __crv stuff seems to come from https://github.com/fritzone/obfy

yes, this is the cvr stuff

Just to make sure we are on the same page here.

from the compiler output you gave me here the only errors that I can see are from the obfy library. Fix those and you should be able to successfully compile your code. Most of the errors tab and the code tooltips are from intellisense and are not accurate.

Concerning the crash it might likely be caused by the fact that your CPU does not support AVX intrinsics. This can be remedied by defining JM_XORSTR_DISABLE_AVX_INTRINSICS. If that is not the case I'd be happy to help trying to figure out what's happening.

I'll close the issue if you don't have any more questions.

Hope I helped.

I tried 1 version older xorstr now with the "JM_XORSTR_DISABLE_AVX_INTRINSICS" and it is working good! Thanks!

Well that's a bit strange, but issue is solved I guess 👍