Re: Liniking problem
| Newsgroups | gmane.mail.spam.spf.discuss |
|---|---|
| Organization | Schlund + Partner AG |
| Message-ID | <[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.