Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-pascal / 2001-08

strange problem

4 messages · 3 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Andreas K. Foerster

Hello,

I have a strange problem with FPC 1.0.4 under Win95B.

I made a very simple program under Linux. Then I wanted to compile it under Windows, as I always do. It compiled without errors. But I could not start it. It always said "Invalid filename", although it doesn't work with tried everything to get it going. And now the very strange thing: when I copy the program into a directory with a DOS-compatible name - it works - without recompiling!

Since other programs don't have this problem, it seems to be a bug in the SYSUTILS unit. It seems to be incompatible with Windows. Is it a known bug? Are there already bugfixes?

P.S.: Did I already mention, that I HATE WINDOWS!!!

Tschuess Andreas

Reply by email

Unknown author
I tried everything to get it going. And now the very strange thing: when I copy the program into a directory with a DOS-compatible name - it works - without recompiling!

What is the name of the file and the directory? Windows has certain "reserved" characters that don't work in file/directory names. It could merely be a problem character that gets eliminated when Windows creates the 8.3 filename for the DOS directory you're referring to.

Jim

Reply by email

Thomas Schatzl
to Andreas K. Foerster: I have a strange problem with FPC 1.0.4 under Win95B. I made a very simple program under…

From: "Andreas K. Foerster"
Subject: [fpc-pascal]strange problem

Show quoted text 5 lines
Hello, I have a strange problem with FPC 1.0.4 under Win95B. I made a very simple program under Linux. Then I wanted to compile it

If it's so simple why don't you post it / make it available here ?

Show quoted text 5 lines
under Windows, as I always do. It compiled without errors. But I could not start it. It always said "Invalid filename", although it doesn't work with an executable actually created in the directory ? I tried everything to get it going. And now the very strange thing:

Did you have a look into the application's directory if an executable was created ?

when I copy the program into a directory with a DOS-compatible name - it works - without recompiling!

It sounds like "the" (well known) problem with the gnu programs (-> FAQ on the web pages). They do not like whitespaces in the path to the program to assemble/link. A ppas.bat should have been generated in the directory, simply put all program/library paths in quotation marks and run it again. Probably more up to date gnu tools solve this.

Is it a known bug? Are there already bugfixes? P.S.: Did I already mention, that I HATE WINDOWS!!!

P.S.: Thanks for your great opinion based on an abundance of facts. I hope you do allow us to make up our mind about this issue ourselves =)

Regards,
Thomas

Reply by email

Andreas K. Foerster
to Thomas Schatzl

Hello,

first of all: I found the bug.
Seems that the PRINTER unit isn't working correctly on my system. It crashes the program I took it out, it worked.

Thanks to all, who tried to help.

Thomas Schatzl wrote
> I made a very simple program under Linux. Then I wanted to compile it If it's so simple why don't you post it / make it available here ?

Okay, it isn't that small.
But if you want it, I'll send it to you in a private mail. But it's not a complete program so far...

Show quoted text 5 lines
> under Windows, as I always do. It compiled without errors. But I could > not start it. It always said "Invalid filename", although it doesn't > work with files at all. Was an executable actually created in the directory ?

YES!!! The error came, when I startet it.

> P.S.: Did I already mention, that I HATE WINDOWS!!! P.S.: Thanks for your great opinion based on an abundance of facts. I hope you do allow us to make up our mind about this issue ourselves =)

It's just what I always say. I think about putting it into my footer.

Tschuess Andreas

Reply by email