Spectranet tutorial - libsocket?
To cut to the chase, does "libsocket.lib" exist?!
It's been an awfully long time since I've used a C compiler so I could be doing something dumb, but I've been looking at the TCP server example that says "C users, using the Z88DK should include the relevant includes - normally at least <sys/socket.h> and <sys/types.h>, and link with the library libsocket."
So I installed z88dk, saved the example source file and tried compiling with the command
and was told that libsocket.lib couldn't be found.
I am assuming that this is not part of z88dk (seeing as I couldn't find it manually) and that maybe it doesn't exist since the Software page of the wiki says, "The most important part is probably the socket library. This will provide a subset of the BSD socket library. The plans are for three equivalent libraries..."
It's been an awfully long time since I've used a C compiler so I could be doing something dumb, but I've been looking at the TCP server example that says "C users, using the Z88DK should include the relevant includes - normally at least <sys/socket.h> and <sys/types.h>, and link with the library libsocket."
So I installed z88dk, saved the example source file and tried compiling with the command
zcc +zx simpleserv.c -llibsocket -v
and was told that libsocket.lib couldn't be found.
I am assuming that this is not part of z88dk (seeing as I couldn't find it manually) and that maybe it doesn't exist since the Software page of the wiki says, "The most important part is probably the socket library. This will provide a subset of the BSD socket library. The plans are for three equivalent libraries..."
Post edited by szeliga on
Comments
Games List 2016 - Games List 2015 - Games List 2014
Correct, it's not part of the z88dk - the source for the spectranet libraries (and the header files) is on winston's spectranet subversion repository. http://svn.alioth.net/svn/spectranet/trunk/z88dk
If you can't manage to build it from source I can furnish you with binaries, but really if your z88dk can't build them then you have bigger problems so best to get that working first (and get the spectranet examples building) :)
Thanks for the link - I'll download tonight and have a go at building them.
Oh - I am at work and can't check, but am guessing that the spectranet libraries will have a makefile. I will be compiling under Windows 7 so does the z88dk have a "make" utility or will I need to also get hold of GNU Make or similar?
Also, you'd need a program called 'perl' to compile some of the stuff. Apparently my make process stopped there as I don't have it installed.
Will try it again some day.
Games List 2016 - Games List 2015 - Games List 2014
Thanks for the info - I'll give it a go this weekend and report back for future reference (I couldn't find anything else on this when I searched the forum so it's obviously easier for some than others :-))
Get yourself onto #zx on irc.coldfront.net - that's where most of the people who have done this hang out :-)
um, no it doesn't :p
http://alistairtesting.no-ip.org/build%20environment%20guide.html
You don't necessarily need all those tools or to structure your environment exactly that way depending on what you will be doing (e.g. you don't need gnubinutils at all if you don't want to do anything with assembler sources)
Wow, thanks - that's really helpful - I'm working through it now getting my PC set up.
Thanks for the recommendation. I'll do just that once I've got a little bit further so that I can ask questions that will be more informed than they are at the moment!
There's a point when you try to build the libraries that you'll come up against an issue on windows, but I'll let you get to that point first :)
What a star.
PS: Just realised I said I'd report back on how I was getting on - guesser has updated his guide which is what I used to get this far.
Nah - it was good for my soul to get my PC set up correctly :smile:
I've been using Spectaculator since last year's 75% off sale (!) but Spectranet support has been a great reason to set it up again on my PC.
For the record, I've been following through this tutorial to get it configured.