T
T
Troodi Larson2017-04-16 22:32:41
Programming
Troodi Larson, 2017-04-16 22:32:41

Doesn't compile if other preprocessor definitions?

Good time! The problem is this in Visual Studio:

WIN64
_WINDOWS
_USRDLL
REFLECTIVE_DLL_EXPORTS
WIN_X64
REFLECTIVEDLLINJECTION_VIA_LOADREMOTELIBRARYR
REFLECTIVEDLLINJECTION_CUSTOM_DLLMAIN
CURL_STATICLIB
BUILDING_LIBCURL

Setting such parameters does not compile with the static curl library
In another project with such parameters, everything is fine:
_WINDOWS
CURL_STATICLIB
BUILDING_LIBCURL

I understand that this is most likely due to this:
REFLECTIVE_DLL_EXPORTS
WIN_X64
REFLECTIVEDLLINJECTION_VIA_LOADREMOTELIBRARYR
REFLECTIVEDLLINJECTION_CUSTOM_DLLMAIN

But I can't even understand where it comes from in the preprocessor and where it is defined.
The project itself is here: https://github.com/stephenfewer/ReflectiveDLLInjection
I'm trying to inject a dll into a notepad to make an animation taken from the site there. It's just that everything rests on a compilation error, it gives an unresolved external symbol when curl is initialized. Help me please.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question