Re: Liniking problem
Dunmer <[email protected]>
| Newsgroups | gmane.mail.spam.spf.discuss |
|---|---|
| Message-ID | <[email protected]> |
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 <[email protected]>
> 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/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=20101122075015:0CD9C004-F637-11DF-9A2A-B165F559ED1D
Powered by Listbox: http://www.listbox.com