Embedding Libcurl in a Juce application



When adding Libcurl I get this error in wingdi.h because it thinks it’s Rectangle is Juce’s Rectangle (stack below).
I already had a problem with the T define so I solved it be doing:

#undef T
#include “curl/curl.h”
#define T(stringLiteral) JUCE_T(stringLiteral)

How should I tackle this problem?


i remember i did that and it worked, you just need to include curl.h before any other juce headers.


Yes, always include juce last if possible.


Great, thank guys


i dug up some code that used curl


Thanks man