I have an old laptop with W7-32 and everything runs fine. Every project has its own directory so when I want to work on a project I start up a BAT file that let me make a choice, will jump to that directory and will start up the IDE using the command D:\programs\fpc304\bin\i386-win32\fp.exe
Two years ago I needed to program something at my work, copied FPC, some directories and the BAT-file to an USB stick, copied the whole on this on my W10 laptop, changed some drive letters in the BAT file and things ran fine.
A month ago I had to buy a new laptop and it had W10 installed. In this case I had the advantage that I could mimic the directory structure of the old laptop. Again I copied everything, started the BAT file, chose a project and was welcomed by the IDE showing the file I was working on on my old laptop. But when I pressed F9 to assemble the file, I got an error message: Compile failed / Total errors: 2. And most weird: In some cases I don't get a window explaining what I was doing wrong. In the other case I got the error that it couldn't find the CRT unit. I tried some previous versions of FPC and the same error happened. Even after removing all FP.xxx files which forces FPC to start from fresh, same problem. Even when I erased all versions and installed 3.04 with the latest download, same problem.
But the I decided to start FP.EXE in a DOS window from its home directory, moved tot the directory with the project and.... things work fine. New FP.xxx files were created and so I thought to use my BAT file again: old compile problem again. Starting the BAT file in a DOS window didn't help either, just starting FP.EXE in its own directory works fine.
But having that many projects, changing the directory by hand all the time is time consuming. If it was a W10 quirk I maybe could accept it, but it works fine on another machine!
What am I doing wrong? Missing PATH or SET variable? Any help would be very welcome. Many thanks in advance!
Kind regards, Ruud Baltissen