Changes between Version 11 and Version 12 of Building/Windows


Ignore:
Timestamp:
Apr 24, 2007 12:29:19 PM (7 years ago)
Author:
guest
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Building/Windows

    v11 v12  
    1616 
    1717If you're on Vista, first of all you need to disable "installer-detection", which causes strange things to happen for binaries called "setup.exe", amongst other things.  Go to `Start -> All Programs -> Accessories > Run` and enter `secpol.msc`.  Then under `Security Settings -> Local Policies -> Security Options`,  disable `UAC: Detect application installations and prompt for elevation`.  Then reboot. 
     18 
     19When building against MingW, make sure that the paths of MingW's gcc.exe and cc1.exe are in your PATH environment variable. 
     20Best put them at the front. Otherwise Cygwin's executables might be found rather than MingW's. If you do not 
     21set the path's correctly, you may get the following error in config.log: 
     22{{{ 
     23  configure:3321: checking for C compiler default output file name 
     24  configure:3348: c:/MinGW/bin/gcc    conftest.c  >&5 
     25  ld: /mingw/lib/crt2.o: No such file: No such file or directory 
     26  configure:3351: $? = 1 
     27  configure:3389: result: 
     28  configure: failed program was: 
     29  configure:3396: error: C compiler cannot create executables 
     30  See `config.log' for more details. 
     31}}} 
     32From within a Cygwin terminal, you can set PATH like: 
     33{{{ 
     34  export PATH=/cygdrive/c/MingW/bin/:/cygdrive/c/MingW/libexec/gcc/mingw32/3.4.2/:$PATH 
     35}}} 
     36If you are unsure whether you have set PATH correctly, try to compile a simple C program 
     37with MingW's gcc first. 
    1838 
    1939== Installing and configuring MSYS ==