From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=unavailable autolearn_force=no version=3.4.4 Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!mx02.eternal-september.org!feeder.eternal-september.org!news.glorb.com!peer02.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!post02.iad.highwinds-media.com!news.flashnewsgroups.com-b7.4zTQh5tI3A!not-for-mail From: Stephen Leake Newsgroups: comp.lang.ada Subject: Re: basic questions on using GPS References: Date: Sun, 19 Jul 2015 04:17:16 -0500 Message-ID: <86380k33s3.fsf@stephe-leake.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (windows-nt) Cancel-Lock: sha1:A+7PLm3iSRc/xa3SsO73dxP2yGg= MIME-Version: 1.0 Content-Type: text/plain X-Complaints-To: abuse@flashnewsgroups.com Organization: FlashNewsgroups.com X-Trace: c47fe55ab6b1ee97f808419316 X-Received-Bytes: 1893 X-Received-Body-CRC: 1512353483 Xref: news.eternal-september.org comp.lang.ada:26887 Date: 2015-07-19T04:17:16-05:00 List-Id: "Nasser M. Abbasi" writes: > I never used GPS (much) before. I do not like project based IDE's > actually, as they make me feel trapped, but have no choice here. You can use Emacs. > I am little confused about something. normally when not using > an IDE, and want to test something, by making small program, > I have a one folder where I keep my Ada test files, > and then use the editor and make a new foo_nnn.adb and > then compile it using gnatmake from command line. > > Now with GPS, each time I want to try something, I open > GPS, then have to decide between these choices: > > 1. create new project from template > 2. start with default project in directory ... > 3. create new project with wizard > 4. open existing project. You should select 4, and maintain a trivial .gpr file in your Ada test folder. Here is the .gpr I use for this purpose: project Gnat is for Source_Dirs use (".."); for Object_Dir use "objects"; for Exec_Dir use "."; package Compiler is for Default_Switches ("Ada") use ("-g", "-gnat12", "-gnatwa"); end Compiler; package Binder is for Default_Switches ("Ada") use ("-E"); end Binder; end Gnat; -- -- Stephe