JustasMasiulis / xorstr

heavily vectorized c++17 compile time string encryption.
Apache License 2.0
1.21k stars 194 forks source link

Can not build #15

Closed cck101 closed 6 years ago

cck101 commented 6 years ago

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

JustasMasiulis commented 6 years ago

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

cck101 commented 6 years ago

OK, please wait 2 minutes :)

cck101 commented 6 years ago

image

image

cck101 commented 6 years ago

image and here is compiler output

JustasMasiulis commented 6 years ago

@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.

cck101 commented 6 years ago

I already have _CRT_SECURE_NO_WARNINGS is definitions :)

JustasMasiulis commented 6 years ago

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

Did you figure out the __crv stuff?

cck101 commented 6 years ago

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.

JustasMasiulis commented 6 years ago

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

cck101 commented 6 years ago

yes, this is the cvr stuff

JustasMasiulis commented 6 years ago

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.

cck101 commented 6 years ago

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

JustasMasiulis commented 6 years ago

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