i am trying to write a c++ program n linking it with the wordnet library..but for some reason it goes on showing Linker Error ..im using Dev C++.. i've linked the libraries n included the header files in all ways possible yet im getting the linker error.. can someone plz look into it.. here's a very basic program
1 2 3 4 5 6 7 8 9
#include <stdio.h>
#include "wn.h"
int main()
{ wninit();
int a=is_defined("FAST",VERB);
printf("%d\n",a);
return 0;
}
and the errors are
1 2 3
[Linker error] undefined reference to `wninit'
[Linker error] undefined reference to `is_defined'
ld returned 1 exit status
Apparently there are some hidden linking options that you missed!
Though you may want to change your IDE. Try Code Blocks, for example. Perhaps you'll find it better.
thank u guys for all ur suggestions.. code::blocks is proving to be better..im not getting any linker errors..but for some reason now there is a multiple definition of 'main' error..