home *** CD-ROM | disk | FTP | other *** search
- Path: rubens.telebyte.nl!news
- From: zaphod@telebyte.nl (Zaphod)
- Newsgroups: comp.sys.amiga.networking,comp.sys.amiga.programmer
- Subject: Re: Network Programming with AmiTCP
- Date: 14 Feb 1996 21:35:52 GMT
- Organization: Telebyte
- Message-ID: <2036.6618T1349T1143@telebyte.nl>
- References: <9602101731.AA001y3@iceberg.demon.co.uk>
- NNTP-Posting-Host: nm-0-24.telebyte.nl
- X-Newsreader: THOR 2.2 (Amiga;TCP/IP) *UNREGISTERED*
-
- In article "Re: Network Programming with AmiTCP" (John Shardlow) <john@iceberg.demon.co.uk> wrote:
-
- >Jeff Shepherd (jsshephe@math.uwaterloo.ca) wrote:
-
- >: Be aware that it does not work as of ixemul.library version 42.0. You can
- >: either recompile it (the source is included) or wait until ixemul.library
- >: version 43.0.
-
- >Thanks for both replies. I got the gcc version of the SDK but I still get the
- >following link errors. I expect I'm doing something obvious wrong, maybe you
- >can spot it. It has been some time since I programmed an Amiga (I'm a Unix
- >programmer at the moment).
-
- >9.Workbench3.0:AmiTCP/usr/john/code> gcc whois.c -lamitcp -o whois
- >ram:cc6103441.o: Undefined symbol _gethostbyname referenced from text segment
- >ram:cc6103441.o: Undefined symbol _socket referenced from text segment
- >ram:cc6103441.o: Undefined symbol _bind referenced from text segment
- >ram:cc6103441.o: Undefined symbol _getservbyname referenced from text segment
- >ram:cc6103441.o: Undefined symbol _connect referenced from text segment
-
-
- John,
-
- I encountered the same problems when I ported CircleMUD 3.0 to the Amiga. It
- is important that you use the -O2 option. Ixemul.library support the AS25..
- (or something like that :) so to use the AmiTCP functions you must make
- sure to use inline functions (hence the -O2 options wich assures that
- inlines are used). Further you must include <bsdsocket.h> in every file
- that calls socket functions. Also you have to add some defines and link with
- some extra libs. Here are the relevant compile flags and linker options I
- used for the CircleMUD port.
-
- compileflags: -O2 -D__AMITCP__ -DNO_INLINE_STDARG -DOLD -Wall
- linker options: -lc -lamitcp -lamiga -lauto
-
- I used the old version. If you want to use the new names (e.g Connect in
- stead of connect ect.) you'll have to remove the -DOLD options and link
- with -lnewamitcp
-
- Hope this helps :) Grtz Zaphod.
-
- [*- The most exciting phrase to hear in science, the one that heralds -*]
- [*- new discoveries, is not Eureka! (I found it!) but That's funny... -*]
-
-