Because of all the help I got, especially from Jonas Maebe, I successfully opened and ran successfully in LIghtweight IDE the Pascal program I had developed over several years in Think Pascal. NOW I can modify it, as I had desired.
Ed

Mailing lists / fpc-pascal / 2007-12
7 messages · 3 people · –
Reply by email Subscribe to this list Your subscription
Read-only archive. Use j and k to move between messages.
Because of all the help I got, especially from Jonas Maebe, I successfully opened and ran successfully in LIghtweight IDE the Pascal program I had developed over several years in Think Pascal. NOW I can modify it, as I had desired.
Ed
Jonas Maebe wroteIf you want something more akin to Think Pascal, you may want to try LWP, which is available here: http://sourceforge.net/projects/lightweight-ide
Thanks, Jonas! I think that is what Edward needs. BTW, the latest version is at
http://www.ragnemalm.se/lightweight
It is much harder to upload to SourceForge, so I can't always do that.
Edward Kearns wroteI did try LWP, and when I opened New Skel, and Compiled, and Ran, all I got were error message.
Then I must guess that you either have problems with the paths (strange characters that mess up the command lines) or something is not installed properly. What does the "about" box look like? It should tell what compilers are installed.
I took that code, created a new document in LWP, saved as "HW.pas", fixed the "print" line
to WriteLn('hello');, hit cmd-R. It runs just fine.
What extension do I need on it?
.p, .pas, .P, .PAS, .dpr should all work in recent versions.
Let me ask:
- Is Free Pascal installed? For the target you use? (If you use an Intel Mac, you need to change target to "Intel" unless the PPC compiler is installed.)
- Is GCC installed? (Comes with Xcode, I don't know if you can download it separately somewhere. AFAIK FPC needs GCC for linking.)
I am sure this can be solved pretty easily. In all my tests, LWP runs nicely as long as FPC is installed. I will gladly fix any beginner traps you find.
/Ingemar
That's great! What was the problem? File extensions? I'd like to know so I can make the
error messages better.
/Ingemar
Ingemar Ragnemalm wrote on za, 01 dec 2007:
That's great! What was the problem? File extensions? I'd like to know so I can make the error messages better.
When I tried it at first, I neglected to add a "Program HelloWorld;" header and also got the "No main program found. Can not build." error message. It took me a while to figure out how to tell the IDE what the "main program" is.
Maybe it would be handy to add "(does it have a program header?)" at the end of that error message.
Jonas
---------------------------------------------------------------- This message was sent using IMP, the Internet Messaging Program.
>
I did try LWP, and when I opened New Skel, and Compiled, and Ran, all I got were error message.
Then I must guess that you either have problems with the paths (strange characters that mess up the command lines) or something is not installed properly. What does the "about" box look like? It should tell what compilers are installed.>>
First of all, note that LWP 0.2.9's demo is TransSkel.p, not NewSkel.p, as in the Lightweight Pascal IDE notes. Then when I do compile, and see nothing happen, the "about" box says:
Lightweight IDE: 0.2.9
FPC (Intel): Failed!
FPC (PPC): 2.2.0
GCC: powerpc-apple-Darwin8-gcc-4.0.1(GCC)
TransSkel: 4.0a1
Ed
That's great! What was the problem? File extensions? I'd like to know so I can make the…
My problem was simply forgetting some of the syntax to use in a Pascal program! After I saw that, it was easy to run.
Ed
Edward Kearns wrote: First of all, note that LWP 0.2.9's demo is TransSkel.p, not NewSkel.p, as in the Lightweight Pascal IDE notes.
Yes, that was my fault. I only included the newest demos, but NewSkel.p should have been included all the same, since it is the example demo. TransSkel is something completely different.
Looks perfect! (As long as you don't need to compile for Intel.)
/Ingemar