(C++) Expected a file name
February 24, 2017 · View on GitHub
(C++) Expected a file name
IDE: C++ Builder 6.0
Project type: VCL
Full error message
[Linker Fatal Error] Fatal: Expected a file name
Cause
This error occurs when you save your project in a folder with a 'strange' name, e.g. 'C:\C++'.
Solution
Your current program has become useless, so cut out all code and paste it in, for example, Notepad. Then do the following: 'Close All', start a new application, paste your code correctly, 'Save All' in a 'normally' named folder, for example 'C', 'Cpp', 'CPlusPlus', 'Programming'.