views:

395

answers:

3

Every project I compile with Delphi 7, in which I do not compile with run-time packages, gives a linker error: "Too many resources". Even a blank application gives this error.

In other words: Delphi died on me.

+1  A: 

What happens when you try to build it from the command line? (i.e., \Program Files\Borland\Delphi7\Bin\dcc32.exe)

Also, have you build any custom .RES files for this project? If not, try deleting the default .RES that Delphi created for you, and let it get re-created by the project.

You can also force an update to the .RES file by changing something trivial, like the version #, saving your project, then changing it back again.

Sorry these are not answers... but hopefully we will find the issue with a little poking around.

JosephStyons
It even happens on a new blank application!
+1  A: 

Make sure you don't duplicate the resource inclusion, like having multiple {$R *.dfm} lines in a unit or multiple {$R *.res} for the project. Could also be included anywhere in a unit like {$R MyProject.res} as well...

François
It even happens on a new blank application!
+1  A: 

Most likely a corrupted project.res file. Try renaming the old and see if it is successfully recreated?

Lars Fosdal
It even happens on a new blank application!