Author |
Message |
Topic: Creating Executable file from DLL and OBJ files |
anand3162
Replies: 41
Views: 35875
|
Forum: General Posted: Thu Jun 04, 2015 10:25 pm Subject: Common memory variables in DLLs |
I want to use some common memory variables in my program. I have a common block in my main routine and define a value for the common memory variables in the main routine. This main routine along with ... |
Topic: Creating Executable file from DLL and OBJ files |
anand3162
Replies: 41
Views: 35875
|
Forum: General Posted: Thu Jun 04, 2015 4:01 pm Subject: |
Mecej4,
Totally agree with what you say, and I have been doing call graphs now to make life easier. Thank you for steering me in the right direction. |
Topic: Creating Executable file from DLL and OBJ files |
anand3162
Replies: 41
Views: 35875
|
Forum: General Posted: Wed Jun 03, 2015 11:40 pm Subject: |
Mecej4,
Very thankful for your patience and help. Yes, I agree with the call graph that you have uploaded to dropbox. That drawing really clarified the point you have been trying to beat across for ... |
Topic: Creating Executable file from DLL and OBJ files |
anand3162
Replies: 41
Views: 35875
|
Forum: General Posted: Wed Jun 03, 2015 4:59 pm Subject: |
Mecej4,
Here is the code. I have not changed much of it from my earlier dabbles.
winapp 300000,600000
Program DriverProgram
implicit none
double precision Temperature ... |
Topic: Creating Executable file from DLL and OBJ files |
anand3162
Replies: 41
Views: 35875
|
Forum: General Posted: Tue Jun 02, 2015 3:31 pm Subject: |
Mecej4,
You are indeed right about 0 Dlls. However, my intent is to share our program with a 3rd party program via a DLL. Unfortunately, I cannot post my code as such, so I have been working up pa ... |
Topic: Creating Executable file from DLL and OBJ files |
anand3162
Replies: 41
Views: 35875
|
Forum: General Posted: Mon Jun 01, 2015 8:48 pm Subject: |
To give you an example,
I have 1 DriverProgram (this is a program) and 3 subroutines (.for)
Program DriverProgram.for has a call to the following
GetK.for that calls Ex3.for
Dummycall.for th ... |
Topic: Creating Executable file from DLL and OBJ files |
anand3162
Replies: 41
Views: 35875
|
Forum: General Posted: Mon Jun 01, 2015 3:52 pm Subject: |
Thank you Paul. Is there a restriction on the number of obj files that can be exported into 1 DLL? I seem to have trouble converting more than 2 obj files into 1 DLL. |
Topic: Creating Executable file from DLL and OBJ files |
anand3162
Replies: 41
Views: 35875
|
Forum: General Posted: Fri May 29, 2015 8:39 pm Subject: |
I figured this out, and it is quite amazing what I figured.
in the line
slink /DLL D:\Development\GetK.obj D:\Development\Ex3.obj /export:GetK
if you replace export:GetK with export:GETK
... |
Topic: Creating Executable file from DLL and OBJ files |
anand3162
Replies: 41
Views: 35875
|
Forum: General Posted: Fri May 29, 2015 7:54 pm Subject: |
As I continued to work, I realize there is something very specific about the names of the routines and the DLLs or the way they interact.
I have 3 routines now. 1 program called DriverProgram and ... |
Topic: Creating Executable file from DLL and OBJ files |
anand3162
Replies: 41
Views: 35875
|
Forum: General Posted: Fri May 29, 2015 3:14 pm Subject: |
I did use Ex2_Real.DLL, which is why I am not sure what I missed. If Ex2.Dll was in my compile program but not found in the directory, then I would have received an error during compilation. I did not ... |
Topic: Creating Executable file from DLL and OBJ files |
anand3162
Replies: 41
Views: 35875
|
Forum: General Posted: Fri May 29, 2015 2:56 pm Subject: |
Mecej4,
I was successful in compiling and executing, when I renamed my Ex2_real to Ex2. I am surprised at that, because when I was using Ex2_real I made sure all of the compilation code used Ex2_re ... |
Topic: Creating Executable file from DLL and OBJ files |
anand3162
Replies: 41
Views: 35875
|
Forum: General Posted: Thu May 28, 2015 8:36 pm Subject: |
This is exactly what I have
Ftn95 D:\...\Ex3.for D:\...\Ex3.obj
Ftn95 D:\...\Ex2_Real.for D:\...\Ex2_Real.obj
slink /dll D:\...\Ex2_Real.obj D:\...\Ex3.obj /export:EX2
Ftn95 D:\...\Ex1.for
sli ... |
Topic: Creating Executable file from DLL and OBJ files |
anand3162
Replies: 41
Views: 35875
|
Forum: General Posted: Thu May 28, 2015 8:26 pm Subject: |
the subroutine named as Ex2 is saved with file name Ex2_real.for
However, after doing the changes as you suggested, I still crash in the same location, that Ex3 is missing. I see no errors during ... |
Topic: Creating Executable file from DLL and OBJ files |
anand3162
Replies: 41
Views: 35875
|
Forum: General Posted: Thu May 28, 2015 7:42 pm Subject: |
Mecej4,
Thanks again.
In Ex1.for I have
winapp 300000,600000
Program Ex1
implicit none
real * 8 a, b, c
a = 11.0d0
b = 15.0d0
c = a + b
w ... |
Topic: Creating Executable file from DLL and OBJ files |
anand3162
Replies: 41
Views: 35875
|
Forum: General Posted: Thu May 28, 2015 4:50 pm Subject: |
Mecej4,
If there are any links you could direct me to apart from what is available in FT95 help, I will be thankful.
Yes, I did indeed rebuild my Ex2.dll after I made changes to Ex2.for.
Since ... |
|