Hi!
On Mon, Nov 22, 2010 at 12:21:29PM +0100, Dunmer wrote:
Thank you very much Jasper!
I can compile and link your foo.c without any problem, but I really don't
understand how it is possible.
Still can't compile my code and it's basically the same as yours, but in
three files (.h, .cpp and hello world main).
^^^
That's the actual hint to your problem, rather than your different
includes.
Try ...
One diference:
You are using just #include <spf2/spf.h>, I'm using:
extern "C" {
// before your includes and ...
#include <spf2/spf.h>
#include <spf2/spf_dns.h>
#include <spf2/spf_dns_cache.h>
#include <spf2/spf_dns_resolv.h>
// ...
}
// after your includes.
If I omit those 3, i got this error on compilation (so i don't even get to
linking):
Of course, as you seem to use special DNS stuff.
[... Compile errors snipped. ...]
Kind regards,
Hannah.
-------------------------------------------
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/2183229-668e5d0d
Modify Your Subscription:
https://www.listbox.com/member/?member_id=2183229&id_secret=2183229-a7234b15
Unsubscribe Now:
https://www.listbox.com/unsubscribe/?member_id=2183229&id_secret=2183229-98aa0fe6&post_id=20101122065207:EF817D1A-F62E-11DF-905F-9697F559ED1D
Powered by Listbox: http://www.listbox.com