when i tried to create shared library file using a "cl" command in vc++, it shows a error saying that "fatal error c1083: can't open compiler generated file 'file.obj':permission denied" can any1 help me...???
tnku 4 ur respons.... But,it's not open in any of the applications..
robi
2010-04-12 10:44:04
-l stands for what...?
mihirpmehta
2010-04-12 10:52:09
this will search in the given path for the given include file...
robi
2010-04-12 10:58:14
I don't know... ideally Permission is Only denied if1> it's open by other application2> you do not have the rights (Administrator or other user has restricted this file's rights)3> It is not properly closed by previous application
mihirpmehta
2010-04-12 11:32:47
tnku... i tried al tis n it's not workin...
robi
2010-04-12 11:39:20
+1
A:
The permission denied error comes in because of your current working directory "C:\Program Files\Microsoft Visual Studio 9.0\VC" is where the compiler is going to write it's temp files, etc (because you've not specified an alternate path). You likely don't have write access to this location, hence the error.
You basically have two options:
- Change directories to a location where you've write access and then invoke cl.exe. (If you're using the Visual Studio command prompt, cl.exe should be in your path and you shouldn't have to worry about specifying a full path to the compiler).
- Specify an output directory for your DLL (and the compiler will use the same path of the intermediate files).
Nathan Ernst
2010-04-12 14:57:59