How to link external library
Petr Hlozek
petr_hl at mrp.cz
Mon Mar 7 21:01:24 GMT 2005
Hello,
I'm new to C++ and KDevelop. I tried simple C++ program with external library.
This is part of source code:
#include <iostream>
#include <hamlib/rigclass.h>
#include <hamlib/rig.h>
using namespace std;
int main(int argc, char *argv[])
{
Rig myRig = Rig(RIG_MODEL_DUMMY);
try {
myRig.open();
The problem is that compiler doesn't find declaration of class Rig. This
declaration is in rigclass.h. This file is in /usr/include/hamlib.
Could you help me how to make "visible" declaration of Rig for compiler?
I spend with this long time without succes.
Thanks very much.
Petr
P.S. Sorry for my poor English
--
MandrakeLinux 10.1 Official, kernel 2.6.8.1-24mdk, KDE 3.2.3
web : www.webpark.cz/ok2cqr
mail : ok2cqr at post dot cz; petr_hl at mrp dot cz
ICQ : 165536992
-
to unsubscribe from this list send an email to kdevelop-request at kdevelop.org with the following body:
unsubscribe »your-email-address«
More information about the KDevelop
mailing list