Re: [scite] Error when compiling .cxx file on mac os x

194 views
Skip to first unread message

Neil Hodgson

unread,
Aug 22, 2012, 9:27:02 PM8/22/12
to scite-i...@googlegroups.com
Hunter McMillen:

> I recently downloaded the mac version of scite to play around with some custom lexers and when trying to build a .cxx file from scite with these command line options:

Loadable lexers aren't currently implemented in the Cocoa implementation of Scintilla so won't work in SciTE on OS X. They may work with the GTK+ or wxWidgets platform layers.

> >g++ -pedantic -Os -c LexPascalMM.cxx -o LexPascalMM.o
>
> I receive this error:
>
> >shell-init: error retrieving current directory: getcwd: cannot access parent directories: Operation not permitted
> >Failed to open temp file in ./, error: Operation not permitted

While you have given SciTE and its subprocesses permission to read and write LexPascalMM.cxx by using the standard open dialog, you haven't given permission to access the directory it is in.

One way to fix this is to add permission for that directory using Allow Access.

Since you are compiling, it is likely you will want to run the result from within SciTE which will run into the quarantine attribute issue which is also discussed on
http://www.scintilla.org/Sandbox.html

> This command works fine from the terminal.

The terminal isn't sandboxed.

Neil

Reply all
Reply to author
Forward
0 new messages