Thread: Problems compiling when using spec file.

  1. #1
    Registered User
    Join Date
    Jan 2011
    Posts
    6

    Question Problems compiling when using spec file.

    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: HOWTO Use the GCC specs file | MinGW

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

    Code:
    *link_libgcc:
    %D -L C:\MinGW\local\lwip-win32-msvc-0.1\proj\msvc6
    Whenever I try to compile, I get this error:

    Code:
    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.

  2. #2
    and the Hat of Guessing tabstop's Avatar
    Join Date
    Nov 2007
    Posts
    14,336
    I trust you made that edit to the specs file at C:\MinGW\lib\gcc\mingw32\4.5.0\specs ?

    In any event, you should use forward slashes instead of backslashes in that file.

  3. #3
    Registered User
    Join Date
    Jan 2011
    Posts
    6
    Yes, edited the file at that location.

    I guess I'll try flipping the slashes, but I doubt it'll have any effect on a permissions error.

    Edit: Yeah, tried that. Still no luck though.
    Last edited by DaMunky89; 01-22-2011 at 11:41 AM.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Basic text file encoder
    By Abda92 in forum C Programming
    Replies: 15
    Last Post: 05-22-2007, 01:19 PM
  2. C++ std routines
    By siavoshkc in forum C++ Programming
    Replies: 33
    Last Post: 07-28-2006, 12:13 AM
  3. Simple File encryption
    By caroundw5h in forum C Programming
    Replies: 2
    Last Post: 10-13-2004, 10:51 PM
  4. System
    By drdroid in forum C++ Programming
    Replies: 3
    Last Post: 06-28-2002, 10:12 PM