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?
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 and Run --> My_SDC.adb results in this error message:
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?
4. Newer use Latin-1 or UTF-8 (not even in the string literals).
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).
On Tuesday, September 27, 2022 at 2:27:36 PM UTC+8, Dmitry A. Kazakov wrote:
4. Newer use Latin-1 or UTF-8 (not even in the string literals).
I have no idea what text Studio is using,
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.
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?
If you've edited the project file after you opened the project, you need
to tell GNAT Studio to read it again. I don't know how to do that short
of close the project and open it again.
How did you edit this gpr file? if you did not use the GNAT Studio Preferences editor, GNAT Studio does not know about this change from
the default.
Studio has no memory between sessions aside from what's in the gpr
file
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 379 |
Nodes: | 16 (2 / 14) |
Uptime: | 44:40:26 |
Calls: | 8,141 |
Calls today: | 4 |
Files: | 13,085 |
Messages: | 5,858,055 |