C++ Builder IDE >> Howto restrain library path from getting too long?

by Mika Torhola » Thu, 14 Jul 2005 17:28:08 GMT


We have a fairly large project with dozens of forms.
Most of the forms belong to different components, and
therefore reside in different directories.

Recently - after adding one more form into the project -
we ran into a problem that caused C++ Builder to crash
completely during linking phase of our SW. The crash was
repeatable, and was caused by too long library path
approximately 3000 - 4000 characters). When we removed
one form (and one directory from the library path) from
the project, it compiled just fine.

Is it possible to somehow add forms to a project without
lengthening the library path?

I tried creating a static library that contains a form,
but that library won't link unless the form's directory
is added to the library path in the main project that
contains the library. If the directory is missing in the
library path, I'll just get "[Linker Error] Unable to open
file 'UMYFORM.DFM'".

P.S.: We have applied the C++ Builder update #4,
but to no prevail.




C++ Builder IDE >> Howto restrain library path from getting too long?

by Mika Torhola » Fri, 15 Jul 2005 14:53:21 GMT


...forgot to say it in the previous post, but we're
using Borland C++ Builder 6.0 Professional.





C++ Builder IDE >> Howto restrain library path from getting too long?

by Michael Gillen » Tue, 19 Jul 2005 22:42:51 GMT





First, and least important, I install CBuilder in a directory Devtools. So I have an initial base
path of C:\DevTools\CBuilder6
Second, I put all 3rd party libraries and components in C:\Libs\....
Third, subst an S: drive to my Source Code directory.

--
-Michael Gillen


Howto restrain library path from getting too long?

by Mika Torhola » Wed, 20 Jul 2005 15:15:37 GMT

Thanks for good tips, especially the last one.
However, that only postpones the inevitable.

I guess then there's no way to link a dfm-file to a static
library in such a way, that the project using the library
wouldn't have to be aware of the dfm-file's location.









Howto restrain library path from getting too long?

by Mika Torhola » Wed, 20 Jul 2005 15:34:17 GMT

As a matter of fact, these tips will be of no use to us
in most projects, since we use relative paths...










Howto restrain library path from getting too long?

by Michael Gillen » Wed, 20 Jul 2005 22:12:04 GMT





That is unfortunate. I use the subst capability to be compatible across different systems where
the source code is actually on differet drives. I had considered using a different drive for my Lib
directory, but it has not been necessary.

--
-Michael Gillen


Similar Threads

1. Converting long file path names to short paths

Hi,

How can I convert a very long file path in to a short path with dots
(...) in the path name. For example, in VC++ file properties dialog
displays long file path with dont in the path name.

File Path
"T:\ABC_DEF_asdfgh\framework\pc\tsroot\mmi\FLDRMMI\sources\autodetectdlg.cpp"
is shown
as "T:\...\FLDRMMI\sources\autodetectdlg.cpp"

Is there any statndard function for this conversion?
Or I have to do it programatically?

Thanks

2. Getting path from the full path and file name

3. long long and unsigned long long performance on x86

4. Editorial: abs(long long) should return long long

5. Library path and individual libraries?

Dumb question: If I want to enter in library names that are standard Windows ones (e.g. ws2_32.lib) the under Paths | Library Path can I enter individual file names without paths?

To put it another way: Is there a preferred different place for individual file names versus for directory paths?

6. howto get the path of the executable?

7. Copy Files with path longer than 260 characters using c# .NET

8. how to shorten long path names? - CSharp/C#