wxWidgets Unicode but libcurl ANSI Topic is solved

If you are using wxDev-C++ for your wxWidgets design, please ask your questions here instead of in IDE Related.
Post Reply
wyrda
In need of some credit
In need of some credit
Posts: 2
Joined: Tue Dec 13, 2011 10:58 am

wxWidgets Unicode but libcurl ANSI

Post by wyrda » Tue Dec 13, 2011 7:41 pm

Hi,

I have a wxWidgets project that have GUI, so I work on it in wxDev-C++. My problem is with licurl. I wrote a class with libcurl to make things easier and when I tested it with mingw it works. Here I work with C char*, ANSI string.
So far so good, but when I try to use this class with my wx project libcurl stops to work. I manage to get the error message and this is it: "couldnt resolve host name ". I think that might be because wxWidgets is compiled with UNICODE and in a way breaks libcurl.
I tried to build libcurl with UNICODE=0 for wxDev but when I try to run the app I get linker errors like this "[Linker Error] undefined reference to `wxApp::wxApp()'".

Any ideas?

wyrda
In need of some credit
In need of some credit
Posts: 2
Joined: Tue Dec 13, 2011 10:58 am

Re: wxWidgets Unicode but libcurl ANSI

Post by wyrda » Wed Dec 14, 2011 5:47 pm

Sorry for double post but I found my solution here :d http://forums.wxwidgets.org/viewtopic.php?f=28&t=30840 . I compiled wxWidgets in ANSI mode and I have no problems now.

Post Reply