Hi,
I am new to this forum,I am developing a project which includes member-function of class present in a static library..Heres the code
Qt Code:
  1. //.pro file
  2. #-------------------------------------------------
  3. #
  4. # Project created by QtCreator 2011-02-23T22:43:47
  5. #
  6. #-------------------------------------------------
  7.  
  8. QT += core
  9.  
  10. QT -= gui
  11.  
  12. TARGET = testing
  13. CONFIG += console
  14. CONFIG -= app_bundle
  15.  
  16. TEMPLATE = app
  17.  
  18.  
  19. SOURCES += main.cpp
  20.  
  21. INCLUDEPATH += /opt/apogee/include
  22.  
  23. LIBS += /opt/apogee/include
To copy to clipboard, switch view to plain text mode 
Qt Code:
  1. //main.cpp
  2. #include <QtCore/QCoreApplication>
  3. #include <string.h>
  4. #include <stdio.h>
  5. #include <stdlib.h>
  6. #include "fitsio.h"
  7. #include<math.h>
  8. #include <unistd.h>
  9. #include <time.h>
  10. #include "tcl.h"
  11. #include "ApogeeUsb.h"
  12. #include "ApnCamera.h"
  13. double as;
  14. bool asd,cond;
  15.  
  16. namespace x
  17. {
  18. CApnCamera *al;
  19. };
  20.  
  21. int main(int argc, char *argv[])
  22. {
  23. QCoreApplication a(argc, argv);
  24. as=0.5;
  25. cond=true;
  26. unsigned long p=0,r=0;
  27. unsigned short q=0;
  28. using namespace x;
  29. asd=al->InitDriver(p,q,r);
  30. asd=al->Expose(as,cond);
  31. if(asd)
  32. printf("Initialized Properly");
  33.  
  34. return a.exec();
  35. }
To copy to clipboard, switch view to plain text mode 

I am getting the following errors in build issues
:: error: /opt/apogee/include: No such file: File format not recognized
:: error: collect2: ld returned 1 exit status

and these errors in compile output

g++ -Wl,-rpath,/home/subhash/qtsdk-2010.05/qt/lib -o testing main.o -L/home/subhash/qtsdk-2010.05/qt/lib /opt/apogee/include -lQtCore -L/home/subhash/qtsdk-2010.05/qt/lib -lpthread
/usr/bin/ld: /opt/apogee/include: No such file: File format not recognized
collect2: ld returned 1 exit status
make: *** [testing] Error 1
make: Leaving directory `/home/subhash/testing-build-desktop'
The process "/usr/bin/make" exited with code %2.
Error while building project testing (target: Desktop)
When executing build step 'Make'

Can anyone please help me?
Thanking in advance