You need to find some info on how programs compile and how to deal with libraries (either static or dynamic). In few words, "link against it" - means specifying the compiler which library you need and where it can find it. flags -L and -l are used. (take a look at man). When you read this info, you will realize why you need to include header files in your source code files.
2009/5/22 Kosta <[email protected]> > How to compile this ?? Just tell me how to compile this > http://www.agentpp.com/snmp++v3.2.23.tar.gz > Why do I have to include the header files after a compile the library, > can't > I just compile everything at once ? And what do you mean by "link aggainst > it" ? > > > > > ----- Original Message ----- > From: "Thomas Dähling" <[email protected]> > To: <[email protected]> > Sent: Friday, May 22, 2009 12:20 PM > Subject: Re: [Qt-creator] Creating libraries with QT Creator > > > > He means you should simply compile the library without using Qt creator. > > Then, in your program, you simply #include the header files for the > > stuff you need from the library and then link against it. > > > > These are very basic c++ programming questions that you are asking here, > > though. > > > > /Thomas > > > > Am Freitag, den 22.05.2009, 12:09 +0300 schrieb Kosta: > >> Hm, you mean just to add the sources and headers in my project and use > >> it with > >> > >> #include "\libs\snmp\mainwindow.h" > >> > >> for example. And btw, in the "src" folder of the library there are > >> some makefiles. I guess I don't need them in my project, because I'm > >> using the sources directly and I'll not create a .lib or .dll files, > >> am I right ? > >> ----- Original Message ----- > >> From: Alex T. > >> To: [email protected] > >> Sent: Friday, May 22, 2009 11:58 AM > >> Subject: Re: [Qt-creator] Creating libraries with QT Creator > >> > >> > >> You can, but you have to be carefull. > >> On the other hand, the archive already has a everything ready > >> for regular build, then why take extra time for adapting this > >> lib for Qt Creator? You will just use it in your project and > >> that's it. > >> > >> 2009/5/22 Kosta <[email protected]> > >> Hm, I guess the other way would be to create a pro > >> file for that library and to add it to the project's > >> pro file ? > >> > >> ----- Original Message ----- > >> From: Alex T. > >> To: [email protected] > >> Sent: Friday, May 22, 2009 11:31 AM > >> Subject: Re: [Qt-creator] Creating libraries > >> with QT Creator > >> > >> > >> I would assume that this snmp library was not > >> written using qt library and therefore it has > >> no .pro file in it So, i suggest you compile > >> it without using Qt Creator. It will be easier > >> and faster. > >> > >> 2009/5/22 Kosta <[email protected]> > >> Hello all, > >> I am trying to GET IN USE this snmp++ > >> library : > >> > >> > http://www.agentpp.com/snmp_pp3_x/download_snmp_ppv3/download_snmp_ppv3.html > >> more specifically this > >> http://www.agentpp.com/snmp > >> ++v3.2.23.tar.gz > >> > >> The problem is that these are the > >> sources. And I REALLY CAN'T FIGURE IT > >> OUT HOW TO MAKE A LIBRARY FROM IT ! > >> So PLEASE, somebody see this archive > >> and help me how to make the library > >> from it... > >> there is no help, no simple steps > >> exmplained. I am using Windows XP. > >> > >> Thank you ! > >> > >> > >> __________ Information from ESET NOD32 > >> Antivirus, version of virus signature > >> database 4094 (20090521) __________ > >> > >> The message was checked by ESET NOD32 > >> Antivirus. > >> > >> http://www.eset.com > >> > >> > >> > >> _______________________________________________ > >> Qt-creator mailing list > >> [email protected] > >> > >> http://lists.trolltech.com/mailman/listinfo/qt-creator > >> > >> > >> > >> > >> ______________________________________________ > >> _______________________________________________ > >> Qt-creator mailing list > >> [email protected] > >> > >> http://lists.trolltech.com/mailman/listinfo/qt-creator > >> > >> > >> > >> __________ Information from ESET NOD32 > >> Antivirus, version of virus signature database > >> 4094 (20090521) __________ > >> > >> The message was checked by ESET NOD32 > >> Antivirus. > >> > >> http://www.eset.com > >> > >> > >> > >> > >> __________ Information from ESET NOD32 Antivirus, > >> version of virus signature database 4094 (20090521) > >> __________ > >> > >> The message was checked by ESET NOD32 Antivirus. > >> > >> http://www.eset.com > >> > >> > >> _______________________________________________ > >> Qt-creator mailing list > >> [email protected] > >> http://lists.trolltech.com/mailman/listinfo/qt-creator > >> > >> > >> > >> > >> > >> ______________________________________________________________ > >> > >> _______________________________________________ > >> Qt-creator mailing list > >> [email protected] > >> http://lists.trolltech.com/mailman/listinfo/qt-creator > >> > >> > >> > >> __________ Information from ESET NOD32 Antivirus, version of > >> virus signature database 4094 (20090521) __________ > >> > >> The message was checked by ESET NOD32 Antivirus. > >> > >> http://www.eset.com > >> > >> > >> > >> __________ Information from ESET NOD32 Antivirus, version of virus > >> signature database 4094 (20090521) __________ > >> > >> The message was checked by ESET NOD32 Antivirus. > >> > >> http://www.eset.com > >> _______________________________________________ > >> Qt-creator mailing list > >> [email protected] > >> http://lists.trolltech.com/mailman/listinfo/qt-creator > > > > _______________________________________________ > > Qt-creator mailing list > > [email protected] > > http://lists.trolltech.com/mailman/listinfo/qt-creator > > > > > > __________ Information from ESET NOD32 Antivirus, version of virus > > signature database 4094 (20090521) __________ > > > > The message was checked by ESET NOD32 Antivirus. > > > > http://www.eset.com > > > > > > > > > __________ Information from ESET NOD32 Antivirus, version of virus > signature database 4094 (20090521) __________ > > The message was checked by ESET NOD32 Antivirus. > > http://www.eset.com > > > > _______________________________________________ > Qt-creator mailing list > [email protected] > http://lists.trolltech.com/mailman/listinfo/qt-creator >
_______________________________________________ Qt-creator mailing list [email protected] http://lists.trolltech.com/mailman/listinfo/qt-creator
