home *** CD-ROM | disk | FTP | other *** search
- Path: zetnet.co.uk!demon!paralax.demon.co.uk
- From: maw@paralax.demon.co.uk (Michael Wiedmer)
- Newsgroups: comp.sys.amiga.programmer
- Subject: Re: sas c++ and standard libraries
- Date: Tue, 23 Jan 1996 22:56:34 GMT
- Message-ID: <913.6594T956T1110@paralax.demon.co.uk>
- References: <892.6593T765T2606@login.eunet.no>
- NNTP-Posting-Host: paralax.demon.co.uk
- X-NNTP-Posting-Host: paralax.demon.co.uk
- X-Newsreader: THOR 2.22 (Amiga;TCP/IP)
-
- >Hi!
-
- >@strstr__FPCcPCc File 'drvTGIF.o'
- >@strncpy__FPcPCcUi File 'drvbase.o'
- >@strchr__FPCci File 'lex.yy.o'
- >@__builtin_strcpy__FPcPCc File 'lex.yy.o'
- >@__builtin_strlen__FPCc File 'lex.yy.o'
- >@__builtin_strcmp__FPCcPCc File 'drvFIG.o'
-
- >They do look like standard string functions, but apparently the linker
- >can't find them. And setting param to stack doesn't seem to help.
-
- C++ mangles all function names. So, in the file drvbase.(cxx|cpp|cc) you are
- calling the function strncpy(char*, const char*, unsigned int).
- If you had the C function prototype of strncpy() before this call then
- everything would work out fine.
-
- So, make sure, there is a
- extern "C" strncpy(char*, const char*, unsigned int);
-
-
-
- >It compiles fine with gcc though (and available on my homepage:
- This I don't understand - unless you are using different header files for gcc.
-
-
- hope this helps,
-
-
- Michael
-
-
-
-