
Hello, I was trying to compile a library I wrote with cabal, but I couldn't because of -O. I tried removing it and it worked ok. Then I noticed that -O was giving some warnings and an error that are not present without it: marcot@quindinho:~/codigo/haskell/haskellgpc/haskellgpc$ /usr/bin/ghc -package-name HaskellGPC-0.0.1 --make -hide-all-packages -i -idist/build/autogen -i. -odir dist/build -hidir dist/build -package base-2.0 -O -Wall -Werror -fffi Algebra.Geometric.Gpc [1 of 1] Compiling Algebra.Geometric.Gpc ( Algebra/Geometric/Gpc.hs, dist/build/Algebra/Geometric/Gpc.o ) /tmp/ghc5871_0/ghc5871_0.hc:5:35: error: Algebra/Geometric/Gpc.h: Arquivo ou diretório não encontrado /tmp/ghc5871_0/ghc5871_0.hc: In function ‘r2Hk_entry’: /tmp/ghc5871_0/ghc5871_0.hc:290:0: warning: implicit declaration of function ‘gpc_polygon_clip’ /tmp/ghc5871_0/ghc5871_0.hc: In function ‘r2Hm_entry’: /tmp/ghc5871_0/ghc5871_0.hc:327:0: warning: implicit declaration of function ‘gpc_free_polygon’ marcot@quindinho:~/codigo/haskell/haskellgpc/haskellgpc$ /usr/bin/ghc -package-name HaskellGPC-0.0.1 --make -hide-all-packages -i -idist/build/autogen -i. -odir dist/build -hidir dist/build -package base-2.0 -Wall -Werror -fffi Algebra.Geometric.Gpc [1 of 1] Compiling Algebra.Geometric.Gpc ( Algebra/Geometric/Gpc.hs, dist/build/Algebra/Geometric/Gpc.o ) marcot@quindinho:~/codigo/haskell/haskellgpc/haskellgpc$ Why can't I use -O? Thanks. -- malebria Marco Túlio Gontijo e Silva Correio (MSN): malebria@riseup.net Jabber (GTalk): malebria@jabber.org Ekiga: malebria@ekiga.net IRC: malebria@irc.freenode.net malebria@irc.oftc.org Skype: marcotmarcot Telefone: 33346720 Celular: 98116720 Endereço: Rua Paula Cândido, 257/201 Gutierrez 30430-260 Belo Horizonte/MG Brasil