NetBeans Forums
| View previous topic :: View next topic |
| Author |
Message |
Massinissa
Joined: 09 May 2012 Posts: 7 Location: Canada
|
Posted: Thu May 10, 2012 5:07 pm Post subject: external libraries & .h |
|
|
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 |
|
 |
|
|
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
|
|