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:
|
- [Bug-apl] Macintosh compile errors and warnings SVN 581 Peter Teeson
- Re: [Bug-apl] Macintosh compile errors and warnings... Juergen Sauermann
- Re: [Bug-apl] Macintosh compile errors and warn... Peter Teeson
- Re: [Bug-apl] Macintosh compile errors and ... Juergen Sauermann
- Re: [Bug-apl] Macintosh compile errors ... Peter Teeson
- Re: [Bug-apl] Macintosh compile er... Juergen Sauermann
- Re: [Bug-apl] Macintosh compil... Peter Teeson
- Re: [Bug-apl] Macintosh co... Elias Mårtenson
- Re: [Bug-apl] Macintosh co... Juergen Sauermann
- Re: [Bug-apl] Macintosh co... Juergen Sauermann