From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on ip-172-31-65-14.ec2.internal X-Spam-Level: X-Spam-Status: No, score=-1.9 required=3.0 tests=BAYES_00,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 Path: eternal-september.org!reader01.eternal-september.org!aioe.org!epJzlJsZWlp1WuFmYLlBpQ.user.46.165.242.91.POSTED!not-for-mail From: "Dmitry A. Kazakov" Newsgroups: comp.lang.ada Subject: Re: Working folders for a project Date: Tue, 27 Sep 2022 08:27:30 +0200 Organization: Aioe.org NNTP Server Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: gioia.aioe.org; logging-data="57130"; posting-host="epJzlJsZWlp1WuFmYLlBpQ.user.gioia.aioe.org"; mail-complaints-to="abuse@aioe.org"; User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.13.1 Content-Language: en-US X-Notice: Filtered by postfilter v. 0.9.2 Xref: reader01.eternal-september.org comp.lang.ada:64432 List-Id: On 2022-09-27 04:50, Rick Duley wrote: > It is my practice to load my software in the folder 'C:\' on my PC but to do my work in a separate disc partition 'D:\'. > > I have created a new Project deploying it in D:\Ada Programming. I specified the Project Name and Main Name as My_SDC. My_SDC reads > > project My_Sdc is > for Source_Dirs use ("Source Files"); > for Object_Dir use "Object Files"; > for Main use ("my_sdc.adb"); > end My_Sdc; > > Project --> Build All is successful and placed the relevant files where I expect them to be. > > Project --> Build and Run --> My_SDC.adb results in this error message: > > [2022-09-27 10:45:00] Error while trying to execute D:\Ada Programming\obj\my_sdc.exe: not an executable > > Something is looking for a folder called D:\Ada Programming\obj which does not exist. How do I get it to look in the right place? The binary directories are for Exec_Dir use ...; and (for a library): for Library_Dir use ...; There is no need to specify any (Object_Dir included) unless you build for different targets/scenarios, e.g. Debug/Release/Profile and need to sort them out. E.g. for Object_Dir use "obj" & Target_OS & "/" & Target_Arch & "/" & Development_Type; As other said, keep you project interoperable between Windows and Linux: 1. Always use small letters 2. Newer use spaces 3. Newer use \ as a directory separator. (GCC and GNAT run-times understand /). 4. Newer use Latin-1 or UTF-8 (not even in the string literals). -- Regards, Dmitry A. Kazakov http://www.dmitry-kazakov.de