z80 Development Kit
You are not logged in.
Hi
I am trying to compile "mini_sendmail.c" for my ZX81, using my Ethernet interface and my socketlib. The source calls "fdopen" and "dup", when using the socket connection to the SMTP server. But the linker cannot find "_DUP".
Do I have to link more libraries?
I compile with
zcc +zx81 -startup=2 -create-app -vn -o smail.bin mini_sendmail.c -llibsocket
Siggi
------------------------------------------------------------------------------
10 Tips for Better Server Consolidation
Server virtualization is being driven by many needs.
But none more important than the need to reduce IT complexity
while improving strategic productivity. Learn More!
http://www.accelacomm.com/jaw/sdnl/114/51507609/
Offline
Hi
I am trying to compile "mini_sendmail.c" for my ZX81, using my Ethernet interface and my socketlib. The source calls "fdopen" and "dup", when using the socket connection to the SMTP server. But the linker cannot find "_DUP".
Do I have to link more libraries?
I compile with
zcc +zx81 -startup=2 -create-app -vn -o smail.bin mini_sendmail.c -llibsocket
We don't have a dup(), but I think looking at the code you won't need it - simply try the second fdopen() on the original file descriptor.
------------------------------------------------------------------------------
10 Tips for Better Server Consolidation
Server virtualization is being driven by many needs.
But none more important than the need to reduce IT complexity
while improving strategic productivity. Learn More!
http://www.accelacomm.com/jaw/sdnl/114/51507609/
Offline
Thanks!
And another problem in "mini_sendmail": WIKI says, that "snprintf" is part of of "stdio", but the linker says NO. ![]()
Siggi
------------------------------------------------------------------------------
Learn Windows Azure Live! Tuesday, Dec 13, 2011
Microsoft is holding a special Learn Windows Azure training event for
developers. It will provide a great way to learn Windows Azure and what it
provides. You can attend the event by watching it streamed LIVE online.
Learn more at http://p.sf.net/sfu/ms-windowsazure
Offline