Amiga.org

Operating System Specific Discussions => Amiga OS => Amiga OS -- Development => Topic started by: sigler on April 25, 2005, 09:15:08 PM

Title: bsdsocket library
Post by: sigler on April 25, 2005, 09:15:08 PM
Hello,

I'm trying to use the bsdsocket library. I managed to find some header files somewhere. In the bsdsocket.h it says:

"$Id: bsdsocket.h,v 4.3 1996/03/26 07:45:52 jraja Exp $"

I've copied enough of the files to "gg/os-include/" in the gcc installation so that I don't get any "file not found" errors.

But when I #include in my program, I get lots of prototype declaration conflicts with the file "gg/include/sys/socket.h" (Which I haven't explicitly included)

Can anyone help me on the right approach to installing the header and prototype files correctly? And I couldn't find any documentation either.

thanks,

--
Sigurd Lerstad
Title: Re: bsdsocket library
Post by: Zerohero on April 26, 2005, 12:26:40 AM
Hello!

I think you need to use the -noixemul switch, otherwise it will load the networking that's in ixemul.library...

Depending on what SDK you got you also need to "fix" the inlcudes with a tool like fd2inline or fd2pragma.

Regards,
Jocke 'Zerohero' Birging