Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem with PLI-2000 #2

Open
wtr37 opened this issue May 27, 2023 · 5 comments
Open

Problem with PLI-2000 #2

wtr37 opened this issue May 27, 2023 · 5 comments

Comments

@wtr37
Copy link

wtr37 commented May 27, 2023

Hello, I am new at github and I tried the PLI-2000 compiler in windows (command window) with a very simple HelloWorld programme:

Hallo: proc options(main);
put skip list('Hallo Welt!');
end Hallo;

Using PLI Helloworld it produces the same output as in the documentation (without errors).

However, it does not write "Hallo Welt" to the command window.

Could anyone please give me a hint what I am doing wrong here? My understanding is that there is no separate .exe file produced.

Kind regards,
Wilhelm Trinder

@Korporal
Copy link
Member

@wtr37 - Hello Wilhem.

I haven't even looked at this old codebase for some years, so I am quite rusty myself - and I wrote it!

I think there's a link step required, I could take a look myself later too. I think the BAT file named BIND.BAT is how I did the linking.

So after doing PLI ABC try then doing BIND ABC.

This should create a file ABC.OBJ and then an exe ABC.EXE.

If I get some time today I will take a look, I haven't even got the repo on my PC anymore so don't even have the code to build it yet!

Let me know how that goes...

@wtr37
Copy link
Author

wtr37 commented May 27, 2023

Hello, thank you for your fast response. When I choose BIND I get an error message that a file is missing: mspdb60.dll
I used PL 1 a lot some decades ago and I would be happy to do so again.
Do not worry, I would not ask many questions for support, I just would like to get started.
Kind regards,
Wilhelm

@wtr37
Copy link
Author

wtr37 commented Jun 15, 2023

I write again. I am sorry, I am not a software developer but rather a user writing programs. I added the above dll and used:
PLI Helloworld +list +system ;
This seems to run properly without error message and creates a file Helloworld.obj (and a list file).
When I use BIND Helloworld then I get the following error message:
LINK32: error LNK2001: unresolved external symbol _Helloworld
Helloworld.exe: fatal error LNK1120: 1 unresolved externals
(though it does not create a file Helloworld.exe)
It seems that there is a link/reference missing (though I added the directory PL-2000-main and all sub directories to PATH).
I hope this can be fixed with minor effort.
I would be very grateful for your help.
KInd regards,
Wilhelm

@Korporal
Copy link
Member

Hello @wtr37 - OK, I think I need to repro this and clarify this and repro the problem. Its been so long since I actively worked on this that I need to refresh my memory. Give me a couple of days and let me see what I can do. The linking and execution was routine at the times I stopped working on this. The language implementation was not complete, but for a subset of the language we could compile/link/run succesfully.

@markons
Copy link

markons commented Dec 28, 2023

Hello,
I've tried the same procedure as Wilhelm, getting the very same results/error.
Can you please help us? This could be a minor error for the adept.
Thanks
Gabor

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants