Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 181707
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T14:48:41+00:00 2026-05-11T14:48:41+00:00

I have a problem migrating from Delphi 2006 to Delphi 2009. A Project which

  • 0

I have a problem migrating from Delphi 2006 to Delphi 2009. A Project which uses the JVCL complains that jvconsts.res is missing. The file is definitly there. The project search path includes the directory where the file is located. (Note: I don’t have JVCL in my global search path to make it more portable)

But the file should be found, as the Delphi Help says:

‘… the linker searches for .res files […] in the directories specified in the Search path input box on the Directories/Conditionals page of the Project|Options dialog box’

This is not a JVCL problem: A minimalistic program shows this:

Imagine this directory structure:

C:\Test\ResTest.dpr C:\Test\Res\Test.res 

Here is ResTest.dpr:

program ResTest;  {$R test.res} // not found even if 'c:\Test\Res' is in project search path  begin end. 

This compiles fine in Delphi 2006 but not in Delphi 2009. After some searching I found, a way to tell Delphi where the file is: The gobal search path or the -R parameter using the command line compiler.

As I write this, I come closer to the real problem: In Delphi 2006 the .cfg-File includes the lines:

-I'c:\Test\Res' -U'c:\Test\Res' -R'c:\Test\Res' 

Basicly it copies the values from the project search path into the 3 command line options and so it makes sure that the -R parameter has the right values.

In Delphi 2009 (I set the verbosity of the compiler output to ‘debug’) I get the resulting command line from the IDE:

If the directory (c:\Test\Res) is included in the project search path:

dcc32.exe --no-config -M -Q -ID:\Sources\Temp\1\Res;'c:\program files\codegear\rad studio\6.0\Lib' -LE'C:\Users\Public\Documents\RAD Studio\6.0\Bpl' -LN'C:\Users\Public\Documents\RAD Studio\6.0\Dcp' -O'c:\program files\codegear\rad studio\6.0\Lib' -R'c:\program files\codegear\rad studio\6.0\Lib' -UD:\Sources\Temp\1\Res;'c:\program files\codegear\rad studio\6.0\Lib' -K00400000   ResTest.dpr 

If the directory is included in the global search path

dcc32.exe --no-config -M -Q -ID:\Sources\Temp\1\Res;'c:\program files\codegear\rad studio\6.0\Lib';D:\Sources\Temp\1\Res -LE'C:\Users\Public\Documents\RAD Studio\6.0\Bpl' -LN'C:\Users\Public\Documents\RAD Studio\6.0\Dcp' -O'c:\program files\codegear\rad studio\6.0\Lib';D:\Sources\Temp\1\Res -R'c:\program files\codegear\rad studio\6.0\Lib';D:\Sources\Temp\1\Res -UD:\Sources\Temp\1\Res;'c:\program files\codegear\rad studio\6.0\Lib';D:\Sources\Temp\1\Res -K00400000   ResTest.dpr    

Maybe its hard to see here: The difference is the -R parameter:

Local Search Path -> -R'c:\program files\codegear\rad studio\6.0\Lib' Global Search Path -> -R'c:\program files\codegear\rad studio\6.0\Lib';D:\Sources\Temp\1\Res 

So it’s no wonder why it doesn’t work. The local search path is not appended to the -R Parameter in Delphi 2009.

I would say, this is clearly a bug, but why seems that nobody else has this problem? I can reproduce it on all machines we use. Maybe the error only exists in the German version of Delphi 2009?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. 2026-05-11T14:48:41+00:00Added an answer on May 11, 2026 at 2:48 pm

    A workaround is to put this in your code in stead:

    {$R res\test.res} 

    That works on my system with Delphi 2009, both with the IDE and the command-line compiler.

    Note that I agree that they broke existing functionality, did you add a report to Quality Portal? If not, please do: ttps://quality.embarcadero.com (this used to be the search engine indexed http://qc.embarcadero.com but that has been shut down; https://quality.embarcadero.com requires a free account to search).

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 78k
  • Answers 78k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • added an answer The reason there are gaps is due to rounding errors.… May 11, 2026 at 3:50 pm
  • added an answer If you don't want any of the normal Button style… May 11, 2026 at 3:50 pm
  • added an answer The following routines are available for setting up input buffers… May 11, 2026 at 3:50 pm

Related Questions

I need to add timezone information to a db table with user maintained locations.
I'm migrating my WordPress blog and phpBB Forum into a new hosting server. I
We are in the process of migrating our bug tracking to Bugzilla from a
We have a number of embedded systems requiring r/w access to the filesystem which

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.