NetBeans Forums

 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
  

external libraries & .h

 
Post new topic   Reply to topic    NetBeans Forums -> NetBeans Users
View previous topic :: View next topic  
Author Message
Massinissa



Joined: 09 May 2012
Posts: 7
Location: Canada

PostPosted: Thu May 10, 2012 5:07 pm    Post subject: external libraries & .h Reply with quote

Hi!
I built and configured Itk with cmake using msys compiler and it generated me a bin file, lib file & include file which it has many .h.
I added the .h files and lib file(.dll.a) in my NetBeans project. everything was ok from here.
When I started programming, for example here is a part of my code:

int main(int argc, char *argv[]) {
// initialize resources, if needed
// Q_INIT_RESOURCE(resfile);

typedef unsigned char PixelType;
typedef itk::ImageFileReader<PixelType, 2> TypeReader;

QApplication app(argc, argv);
// create and show your widgets here
return app.exec();
}

when I write itk:: it shows me a bunch of object or subclass that I can chose. It seems working but when I build the project. I get this error:

error: 'itk' has not been declared

How can I fix it??

thank you for your help!

Massi
Back to top
Display posts from previous:   
Post new topic   Reply to topic    NetBeans Forums -> NetBeans Users All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB
By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2012, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo