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:
[EMAIL PROTECTED]:~/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’
[EMAIL PROTECTED]:~/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 )
[EMAIL PROTECTED]:~/codigo/haskell/haskellgpc/haskellgpc$
Why can't I use -O?
Thanks.
--
malebria
Marco Túlio Gontijo e Silva
Correio (MSN): [EMAIL PROTECTED]
Jabber (GTalk): [EMAIL PROTECTED]
Ekiga: [EMAIL PROTECTED]
IRC:
[EMAIL PROTECTED]
[EMAIL PROTECTED]
Skype: marcotmarcot
Telefone: 33346720
Celular: 98116720
Endereço:
Rua Paula Cândido, 257/201
Gutierrez 30430-260
Belo Horizonte/MG Brasil
_______________________________________________
Haskell-Cafe mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/haskell-cafe