[Hackage] #177: Include-dirs, extra-lib-dirs with spaces doesn't work under Windows

Hackage trac at galois.com
Tue Nov 13 05:00:29 EST 2007


#177: Include-dirs, extra-lib-dirs with spaces doesn't work under Windows
---------------------+------------------------------------------------------
  Reporter:  guest   |        Owner:         
      Type:  defect  |       Status:  new    
  Priority:  normal  |    Milestone:         
 Component:  Cabal   |      Version:  1.2.2.0
  Severity:  normal  |   Resolution:         
  Keywords:          |   Difficulty:  normal 
Ghcversion:  6.6     |     Platform:  Windows
---------------------+------------------------------------------------------
Comment (by duncan):

 The solution is to use "" in the field, like:

 {{{
 include-dirs: "C:\Program Files\PostgreSQL\8.2\include", "C:\Program
 Files\PostgreSQL\8.2\include\server", .
 extra-lib-dirs: "C:\Program Files\PostgreSQL\8.2\include", "C:\Program
 Files\PostgreSQL\8.2\include\server"
 }}}

 because spaces or ',' are allowed as field separators. Perhaps we should
 reconsider this or if we cannot change due to backwards compatability we
 could think about a warning. For example we might check if each directory
 exists and in the warning message mention that directory names with spaces
 have to use ""s.

-- 
Ticket URL: <http://hackage.haskell.org/trac/hackage/ticket/177#comment:1>
Hackage <http://haskell.org/cabal/>
Hackage: Cabal and related projects


More information about the cabal-devel mailing list