Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Languages / Managed C++ / July 2006

Tip: Looking for answers? Try searching our database.

visual studio 2003 and clearcase

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Budyanto - 27 Jul 2006 00:35 GMT
Hi,

I have a visual c++ project that refuses to build when the project is
in clearcase. It kept complaining that it could not open an include
file. I'm pretty sure that all my include paths are set correctly
because other files in the same directory could be included
successfully. In fact I did not include this file directly. It was
included from a file I included. But I also tried including it directly
and it could not be opened also.

If I copy the whole project structure out of clearcase everything
builds ok. Has anybody seen similar problems?

I have checked the permissions on the file and it was readable.

Any clues?

Thanks
Budyanto
www.fruitfruit.com - 27 Jul 2006 15:41 GMT
> Hi,
>
[quoted text clipped - 15 lines]
> Thanks
> Budyanto

If you are using dynamic view, try rebuild all.
Budyanto - 27 Jul 2006 16:48 GMT
> If you are using dynamic view, try rebuild all.

Tried that. Same thing.
Pavel A. - 27 Jul 2006 17:59 GMT
If you have a dynamic view, this can be caused by wrong
file permissions on the server side - check this.
Also try to disable your antivirus temporary.

--PA

> > If you are using dynamic view, try rebuild all.
>
> Tried that. Same thing.
Budyanto - 27 Jul 2006 19:58 GMT
> If you have a dynamic view, this can be caused by wrong
> file permissions on the server side - check this.
> Also try to disable your antivirus temporary.
>
> --PA

I am actually able to see the file on the filesystem. In fact I can
open it manually. So I think the permission is ok. However during a
compile, visual studio cannot find it but it can find other files in
the same dir.

I have also tried disabling anti-virus and still the same problem.
www.fruitfruit.com - 28 Jul 2006 12:28 GMT
>> If you have a dynamic view, this can be caused by wrong
>> file permissions on the server side - check this.
[quoted text clipped - 8 lines]
>
> I have also tried disabling anti-virus and still the same problem.

There may be multiple header files with the same name but of different
version. Change property of the project to show include files to check
if some file is included from unexpected path.
Budyanto - 28 Jul 2006 18:09 GMT
Ok I Finally figured it out.

It's got to do with the maximum filename length allowed in windows
(260).
It'd be nice if visual studio gives a better error message. You've got
to have a filename of exactly 260 characters for visual studio to give
a buffer overrun error. If you have a filename more than 260 chars
long, visual studio says file not found. Very misleading error!!

So my project is in M:\a\b\c and I specified a relative include path
..\..\x\y\z.

Visual studio expands the whole path as M:\a\b\c\..\..x\y\z. With the
clearcase viewname and enough depth in the directory structure this
path gets too long.

One interesting thing is that if you change the Debug Information
Format to "Program Database for edit and Continue" visual studio
evaluates the path as M:\ax\y\z. It somewhat makes the total path a
little bit shorter. And that fixes my problems.

Budyanto

Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.