Apologize if this is a silly question.
[u:e7ea7b895d]What I am trying to do[/u:e7ea7b895d] I have 2 .for files Ex1.for and Ex2_Real.for. I have created a Ex2.dll from the Ex2_Real.for file. In the same directory as the Ex2.dll I also have Ex1.for compiled into a Ex1.obj file. I want to compile the Ex1.obj and the Ex2.dll files into a single executable file. In fact, theEx1 .obj has a call to the subroutine that was converted into the Ex2.dll file. I am doing this for testing the possibility of compiling our company's program into a dll file to be used by other 3rd party programs. We only want 1 of our routines to be a dynamic link, accessible at run time to 3rd parties. To mimic this I created 1 dll and 1 obj file. The obj file will not be accessible to the third party, while the dll will be shared with them and can be accessed, like a black box, without us revealing what is inside the dll.
However, I am missing something when trying to convert the .dll and .obj into a single executable file. For testing sake, I have kept the coding within Ex1 and Ex2 simple. Ex1 has 3 variables a, b, and c, where c = a+ b . Ex1 then calls Ex2 with the arguments a, b and c. Ex2 simply displays the output a, b, and c.
I created a Create.lk with the following 2 lines, load d:\...\Ex1.obj load d:\...\Ex2.dll file d:\...\Final.exe
I then created a CreateFinalExe.bat with slink d:\...\Create.lk
When I run CreateFinalExe.bat, I get a No main, WinMain or LibMain function. I dont have a programming background per se, or a computer science background either. I did some searching on the internet, but could not quite grasp what is exactly going on. Appreciate any help in this regard. Please correct me if any of my understanding is wrong, grossly or subtly.