Liniking problem

Dunmer <[email protected]>
Newsgroups gmane.mail.spam.spf.discuss
Message-ID <[email protected]>
Hello,

Sorry for bother you again with lame question, but I'm stuck on linking with
libspf2.

I got these errors:

g++ -L/usr/local/lib -o"CstpSpf"  ./src/SpfResolver.o ./src/cstp_spf.o
-lspf2
./src/SpfResolver.o: In function `SpfResolver':
/home/dunmer/workspace/CstpSpf/Debug/../src/SpfResolver.cpp:14: undefined
reference to `SPF_dns_resolv_new(SPF_dns_server_struct*, char const*, int)'
/home/dunmer/workspace/CstpSpf/Debug/../src/SpfResolver.cpp:16: undefined
reference to `SPF_dns_cache_new(SPF_dns_server_struct*, char const*, int,
int)'
/home/dunmer/workspace/CstpSpf/Debug/../src/SpfResolver.cpp:17: undefined
reference to `SPF_dns_set_conserve_cache(SPF_dns_server_struct*, int)

With this simple code:

this->spfResolvServer = SPF_dns_resolv_new(NULL, "spfResolv", DEBUG);
this->spfCacheServer = SPF_dns_cache_new(this->spfResolvServer, "spfCache",
DEBUG, CACHE_SIZE);
SPF_dns_set_conserve_cache(this->spfCacheServer, CACHE_CONSERVE);

DEBUG, CACHE_CONSERVE and CACHE_SIZE are my constants.
I have built and installed libspf and its located in /usr/local/lib. I tried
to move it to the /usr/lib with no success. I'm using Eclipse for C/C++ and
I have set libspf2 in libraries.
What am I doing wrong? Google didn't help. And what is with libspf2.org?

I will really appreciate your help. Thank you very much!



-------------------------------------------
Sender Policy Framework: http://www.openspf.org [http://www.openspf.org]
Modify Your Subscription: http://www.listbox.com/member/ [http://www.listbox.com/member/]

Archives: https://www.listbox.com/member/archive/735/=now
RSS Feed: https://www.listbox.com/member/archive/rss/735/6959934-50ec8f89
Modify Your Subscription: https://www.listbox.com/member/?member_id=6959934&id_secret=6959934-b7c4528d
Unsubscribe Now: https://www.listbox.com/unsubscribe/?member_id=6959934&id_secret=6959934-edadf31a&post_id=20101121162949:76A406EC-F5B6-11DF-B910-AE06C6F4DBAC
Powered by Listbox: http://www.listbox.com
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.