Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Fatal Linker Error, Expected a file name

Status
Not open for further replies.

bwszeg

Programmer
Apr 20, 2005
2
NL
Hi,

I'm new to using C++ Builder 6.0. When I create a blank project (Application) and save all the components by their default name, compiling works.

However, when I save anything of the project under a different directory I get the "Fatal Linker Error, Expected a file name" message.

I use the save project option in the file menu.

Any help is greatly appreciated

 
I don't quite understand what you mean by saying, "when I save anything of the project". Can you please explain in better detail?


James P. Cottingham
-----------------------------------------
[sup]To determine how long it will take to write and debug a program, take your best estimate, multiply that by two, add one, and convert to the next higher units.[/sup]
 
What I meant by saving anything is, when I save the project or the unit seperately or both, it gives that linker error.

I'm currently trying to find my way around in BCB6. Doing this I create a lot of small test apps. After my first post I found that while closing all windows, so there's nothing showing in the object treeview, there are still some things open, though hidden. When I do file>Close all and then creating a new app, the linker error is gone (for now)

Are there some guidelines to prevent you from doing harmfull stuff to your app. How and when can you change names of files?

S.
 
I never change name of files in projects!

These files are referenced in so many places that it would be tiresome to change them all although a believe that it's possible.

I have a project-library, for each new project i make a sub-lib in that main-lib and save the files there.

These sub-lib's i give descriptive names, i i use some file in common for more than one project i place them in the main lib, it could be icons, definitions, recourses and such.

If you will like to "save as..." of a form-file make the form and directly do the "save as..." before filling the form or write the code. Also you will have to alter the #include "thisform.h" in the top, at least check that it's correct.

I only alter the name of the project file itself, i always use the default name for any subsequent files.

Totte
Keep making it perfect and it will end up broken.
 
I agree with Totte. Once I name a project, I never rename it. Even moving a project can mess up the directories where the compiler sees it. It can be done but with some work on your part if you insist on doing it.



James P. Cottingham
-----------------------------------------
[sup]To determine how long it will take to write and debug a program, take your best estimate, multiply that by two, add one, and convert to the next higher units.[/sup]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top