From: "Dmitry A. Kazakov" <mailbox@dmitry-kazakov.de>
Subject: Re: Working folders for a project
Date: Tue, 27 Sep 2022 08:27:30 +0200 [thread overview]
Message-ID: <tgu54k$1npa$1@gioia.aioe.org> (raw)
In-Reply-To: bb5f5857-a402-4cd5-9a11-3edeaef585c4n@googlegroups.com
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
next prev parent reply other threads:[~2022-09-27 6:27 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-09-27 2:50 Working folders for a project Rick Duley
2022-09-27 3:24 ` Nasser M. Abbasi
2022-09-27 6:14 ` Emmanuel Briot
2022-09-27 6:27 ` Dmitry A. Kazakov [this message]
2022-09-27 7:43 ` Rick Duley
2022-09-27 8:30 ` Dmitry A. Kazakov
2022-09-27 7:59 ` G.B.
2022-09-27 14:16 ` Simon Wright
2022-09-28 20:35 ` Stephen Leake
2022-09-28 21:22 ` Björn Lundin
2022-09-29 8:13 ` Simon Wright
2022-09-29 8:57 ` Simon Wright
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox