bug-apl
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Bug-apl] Macintosh compile errors and warnings SVN 583


From: Juergen Sauermann
Subject: Re: [Bug-apl] Macintosh compile errors and warnings SVN 583
Date: Tue, 31 Mar 2015 18:53:55 +0200
User-agent: Mozilla/5.0 (X11; Linux i686; rv:31.0) Gecko/20100101 Thunderbird/31.4.0

Hi Peter, Elias,

I have created something that MAY compile. However:

man mkstemp says:
        mkstemps(): unstandardized, but appears on several other systems.

man tmpnam (the one I used instead) says:
       Never use this function.  Use mkstemp(3) or tmpfile(3) instead.

Peter: Chances are that on your box
mkstemp is declared in /usr/include/unistd.h instead of
/usr/include/stdlib.h. If that is so then please let me know and I will revert the code and #include it.

Since this us Elias' code he should have the final word. tmpfile() seems to be more  portable, but
it returns a FILE * instead of an fd and deletes the file on exit().

/// Jürgen


On 03/31/2015 05:47 PM, Peter Teeson wrote:
GNUAPL Group
Shell Script Invocation Error Group
/Volumes/Data/Development/MyProjects/GNUAPL/apl-svn/src/TempFileWrapper.cc:45:5: No matching function for call to 'strcpy'
/Volumes/Data/Development/MyProjects/GNUAPL/apl-svn/src/TempFileWrapper.cc:47:10: No matching function for call to 'mkstemp'
/Volumes/Data/Development/MyProjects/GNUAPL/apl-svn/src/TempFileWrapper.cc:52:10: No viable overloaded '='

On 2015-03-31, at 11:22 AM, Juergen Sauermann <address@hidden> wrote:
Hi Peter and Fausto,

thanks. I have tried to catch this in ./configure. SVN 583.

/// Jürgen


reply via email to

[Prev in Thread] Current Thread [Next in Thread]