[Qt-interest] Re : silly library question

Gopalakrishna Bhat gopalakbhat at gmail.com
Fri May 6 04:08:24 CEST 2011


Is the PATH for mingw added to the environment?
http://social.msdn.microsoft.com/Forums/en-US/Vsexpressvc/thread/325b5459-c469-40d0-bf6d-e3356a2f14cd/



On Thu, May 5, 2011 at 9:46 PM, d3fault <d3faultdotxbe at gmail.com> wrote:

>  eh i tried doing:
> LIBS += "C:/curl-7.21.6-devel-mingw32/lib/libcurl.a"
> and even:
> LIBS += "C:/curl-7.21.6-devel-mingw32/lib/libcurldll.a"
> (there is no .lib file in /lib/)
>
> but neither work.
>
> i changed my double forwardslashes to backslashes as well... but it doesn't
> make any difference.
>
> Oddly enough, doing:
> LIBS += "C:/curl-7.21.6-devel-mingw32/bin/libcurl.dll"
>
> lets it compile, but then it crashes when I try to run it with error: "During startup program exited with code 0x0000135."
>
>
> I'm glad none of you have the answer. Makes me feel less stupid.
>
> .... but seriously... this is such a basic task..... why is including an
> external library so damn hard? I've used libcurl in C# and it wasn't nearly
> as difficult.
>
> And to those of you trying to get me to invoke qmake manually: fuck that.
> It's a bug in qt creator if you have to invoke the command line to include
> an external library.
>
>
> On 5/5/2011 8:23 AM, BOUCARD Olivier wrote:
>
>  AFAIK, he uses QtCreator, so it is MinGW.
> The .lib its for Visual.
>
>   ------------------------------
> *De :* R. Reucher <rene.reucher at batcom-it.net><rene.reucher at batcom-it.net>
> *À :* qt-interest at qt.nokia.com
> *Envoyé le :* Jeudi 5 Mai 2011 16h47
> *Objet :* Re : [Qt-interest] silly library question
>
> Hi!
>
> I've had similar issues with one of my projects, with also need to link to
>
> SDL and ZLIB...
>
> I finally figured that you need to specify the .lib file, not just the
> directory where the .lib and .dll files reside! Example:
>
> LIBS += C:\curl-7.21.6-devel-mingw32\lib\curl.lib
>
> I don't know if forward or backward slashes make a difference here, I've
> use
> back-slashes... also, I use a script to produce the .vcxproj file for VS
> 2010 and specify the "LIBS += ..." statement on the qmake command line, not
>
> in the .pro file, but I don't think it matters.
>
> HTH, René
> --
> René Reucher
> rene.reucher at batcom-it.net
> http://www.batcom-it.net/
>
> Are you a turtle?
>
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at qt.nokia.com
> http://lists.qt.nokia.com/mailman/listinfo/qt-interest
>
>
>
> _______________________________________________
> Qt-interest mailing listQt-interest at qt.nokia.comhttp://lists.qt.nokia.com/mailman/listinfo/qt-interest
>
>
>
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at qt.nokia.com
> http://lists.qt.nokia.com/mailman/listinfo/qt-interest
>
>


-- 
My blog http://gkbhat.blogspot.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20110506/84d1b908/attachment.html 


More information about the Qt-interest-old mailing list