Prev: Dhrystone
Next: Learning Ada
From: Ada novice on
On Jul 25, 8:26 pm, "Dmitry A. Kazakov" <mail...(a)dmitry-kazakov.de>
wrote:
> ------------------------------------ imsl.gpr
> project IMSL is
>    for Source_Files use ("imsl.adb", "imsl.ads");
>    package Linker is
>       for Default_Switches ("ada") use ("imslcmath_dll.lib");
>    end Linker;
> end IMSL;


How to create imsl.gpr? I created a folder containing imsl.ads,
imsl.adb and test.adb. I specify test.adb as the main file. GPS asks
for a main file. The imsl.gpr that I get is:

project Imsl is

for Object_Dir use "C:\Documents and Settings\yc";
for Source_Dirs use (".\**");
for Main use ("test.adb");

end Imsl;


and if I paste your imsl.gpr into this, GPS crashes.

YC
From: Dmitry A. Kazakov on
On Sun, 25 Jul 2010 11:52:44 -0700 (PDT), Ada novice wrote:

> On Jul 25, 8:26�pm, "Dmitry A. Kazakov" <mail...(a)dmitry-kazakov.de>
> wrote:
>> ------------------------------------ imsl.gpr
>> project IMSL is
>> � �for Source_Files use ("imsl.adb", "imsl.ads");
>> � �package Linker is
>> � � � for Default_Switches ("ada") use ("imslcmath_dll.lib");
>> � �end Linker;
>> end IMSL;
>
>
> How to create imsl.gpr?

Using notepad.

--
Regards,
Dmitry A. Kazakov
http://www.dmitry-kazakov.de
From: Ada novice on
I've created both imsl.gpr and test.gpr wih notepad. Now in a folder I
have

imsl.gpr
test.gpr
imsl.ads
imsl.adb
imslcmath_dll.lib

When I open imsl.gpr in GPS, I can't compile and it complains: No
valid file selected. This is because no main file was specified.
Please let me know how to go about with the compilation.

Thanks
YC
From: Dmitry A. Kazakov on
On Sun, 25 Jul 2010 12:13:19 -0700 (PDT), Ada novice wrote:

> I've created both imsl.gpr and test.gpr wih notepad. Now in a folder I
> have
>
> imsl.gpr
> test.gpr
> imsl.ads
> imsl.adb
> imslcmath_dll.lib
>
> When I open imsl.gpr in GPS, I can't compile and it complains: No
> valid file selected. This is because no main file was specified.
> Please let me know how to go about with the compilation.

You have to open test.gpr.

--
Regards,
Dmitry A. Kazakov
http://www.dmitry-kazakov.de
From: Ada novice on
GOOD NEWS. It works fine. I tested with another matrix also and it
works as well. I assume that I didn't have to put the "include"
directory since IMSL is already on my Windows environment path.


On Jul 25, 9:19 pm, "Dmitry A. Kazakov" <mail...(a)dmitry-kazakov.de>
wrote:

> You have to open test.gpr.
>

Yes you're right. I only thought that imsl.ad(b,s) should be compiled
first.


Thank you very much all of you especially Dmitry and Simon for your
very kind help. I'll need to study the code that you provided.


Thanks again.

First  |  Prev  |  Next  |  Last
Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
Prev: Dhrystone
Next: Learning Ada