programming with wordnet

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 
Last edited on
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.
thanks man..but wont codeblocks have the same issues?
Code::Blocks has an easier way to manage the libraries you are linking to. You still have to link to them, but it's easier to see what you're doing.
Last edited on
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..
Topic archived. No new replies allowed.