spf-discuss
[Top] [All Lists]

Re: [spf-discuss] Liniking problem

2010-11-22 06:52:24
Thank you, that did the trick. I have wrote some code in C/C++ but never
used 'extern "C" { }' statement..

And about includes: Jasper is using the same functions as me without
additional includes..

Thank you guys again.

2010/11/22 <hannah(_at_)schlund(_dot_)de>

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/19988005-5ed625ad
Modify Your Subscription:
https://www.listbox.com/member/?&;
Unsubscribe Now:
https://www.listbox.com/unsubscribe/?&&post_id=20101122065207:EF817D1A-F62E-11DF-905F-9697F559ED1D
Powered by Listbox: http://www.listbox.com




-------------------------------------------
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=20101122075015:0CD9C004-F637-11DF-9A2A-B165F559ED1D
Powered by Listbox: http://www.listbox.com
<Prev in Thread] Current Thread [Next in Thread>