Embedding Libcurl in a Juce application


#1

Hi.

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?


#2

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


#3

Yes, always include juce last if possible.


#4

Great, thank guys


#5

i dug up some code that used curl
http://bazaar.launchpad.net/~vcs-imports/edo/trunk/view/head:/src/Core/Includes.h


#6

Thanks man