public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* Problems compiling when using spec file.
@ 2011-01-21 22:56 DaMunky89
  2011-01-21 23:33 ` Andi Hellmund
  0 siblings, 1 reply; 4+ messages in thread
From: DaMunky89 @ 2011-01-21 22:56 UTC (permalink / raw)
  To: gcc-help


Hi, I'm trying to add a MinGW Default Library search path using a spec file
I've placed at /mingw/lib/gcc/mingw32/<version>/ as instructed by this page
here: http://www.mingw.org/wiki/SpecsFileHOWTO

The only Section I've changed is *link_libgcc:, which now looks like this:

*link_libgcc:
%D -L C:\MinGW\local\lwip-win32-msvc-0.1\proj\msvc6

Whenever I try to compile, I get this error:

g++: c:/mingw/bin/../lib/gcc/mingw32/4.5.0/specs: Permission denied

Does anybody know what I have to do to correct this? I'm running Windows 7
x64. My UAC is disabled, and I've already tried setting g++ and gcc to "run
as administrator". Any help would be greatly appreciated.
-- 
View this message in context: http://old.nabble.com/Problems-compiling-when-using-spec-file.-tp30733434p30733434.html
Sent from the gcc - Help mailing list archive at Nabble.com.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Problems compiling when using spec file.
  2011-01-21 22:56 Problems compiling when using spec file DaMunky89
@ 2011-01-21 23:33 ` Andi Hellmund
  2011-01-22  0:57   ` DaMunky89
  2011-01-22  0:57   ` DaMunky89
  0 siblings, 2 replies; 4+ messages in thread
From: Andi Hellmund @ 2011-01-21 23:33 UTC (permalink / raw)
  To: DaMunky89; +Cc: gcc-help

Hey,
> *link_libgcc:
> %D -L C:\MinGW\local\lwip-win32-msvc-0.1\proj\msvc6
>    
Yes, that's correct and should work in your MinGW environment.
> Whenever I try to compile, I get this error:
>
> g++: c:/mingw/bin/../lib/gcc/mingw32/4.5.0/specs: Permission denied
>    
Well, this error pops up if g++ cannot access your specs file. Did you 
try to access this file from a windows command-line? Or did you try to 
put this file into your home-dir?

Andi

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Problems compiling when using spec file.
  2011-01-21 23:33 ` Andi Hellmund
  2011-01-22  0:57   ` DaMunky89
@ 2011-01-22  0:57   ` DaMunky89
  1 sibling, 0 replies; 4+ messages in thread
From: DaMunky89 @ 2011-01-22  0:57 UTC (permalink / raw)
  To: gcc-help


It's located at C:\MinGW\lib\gcc\mingw32\4.5.0\specs, and I'm trying to do
this from command line.


Andi Hellmund wrote:
> 
> Hey,
>> *link_libgcc:
>> %D -L C:\MinGW\local\lwip-win32-msvc-0.1\proj\msvc6
>>    
> Yes, that's correct and should work in your MinGW environment.
>> Whenever I try to compile, I get this error:
>>
>> g++: c:/mingw/bin/../lib/gcc/mingw32/4.5.0/specs: Permission denied
>>    
> Well, this error pops up if g++ cannot access your specs file. Did you 
> try to access this file from a windows command-line? Or did you try to 
> put this file into your home-dir?
> 
> Andi
> 
> 
> 

-- 
View this message in context: http://old.nabble.com/Problems-compiling-when-using-spec-file.-tp30733434p30734000.html
Sent from the gcc - Help mailing list archive at Nabble.com.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Problems compiling when using spec file.
  2011-01-21 23:33 ` Andi Hellmund
@ 2011-01-22  0:57   ` DaMunky89
  2011-01-22  0:57   ` DaMunky89
  1 sibling, 0 replies; 4+ messages in thread
From: DaMunky89 @ 2011-01-22  0:57 UTC (permalink / raw)
  To: gcc-help


It's located at C:\MinGW\lib\gcc\mingw32\4.5.0\specs, and I'm trying to do
this from command line.


Andi Hellmund wrote:
> 
> Hey,
>> *link_libgcc:
>> %D -L C:\MinGW\local\lwip-win32-msvc-0.1\proj\msvc6
>>    
> Yes, that's correct and should work in your MinGW environment.
>> Whenever I try to compile, I get this error:
>>
>> g++: c:/mingw/bin/../lib/gcc/mingw32/4.5.0/specs: Permission denied
>>    
> Well, this error pops up if g++ cannot access your specs file. Did you 
> try to access this file from a windows command-line? Or did you try to 
> put this file into your home-dir?
> 
> Andi
> 
> 
> 

-- 
View this message in context: http://old.nabble.com/Problems-compiling-when-using-spec-file.-tp30733434p30734003.html
Sent from the gcc - Help mailing list archive at Nabble.com.

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2011-01-22  0:57 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-01-21 22:56 Problems compiling when using spec file DaMunky89
2011-01-21 23:33 ` Andi Hellmund
2011-01-22  0:57   ` DaMunky89
2011-01-22  0:57   ` DaMunky89

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).