[Haskell-cafe] Error and warning messages with -O
Marco Túlio Gontijo e Silva
malebria at riseup.net
Mon Jan 29 10:34:24 EST 2007
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 at 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 at 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 at quindinho:~/codigo/haskell/haskellgpc/haskellgpc$
Why can't I use -O?
Thanks.
--
malebria
Marco Túlio Gontijo e Silva
Correio (MSN): malebria at riseup.net
Jabber (GTalk): malebria at jabber.org
Ekiga: malebria at ekiga.net
IRC:
malebria at irc.freenode.net
malebria at irc.oftc.org
Skype: marcotmarcot
Telefone: 33346720
Celular: 98116720
Endereço:
Rua Paula Cândido, 257/201
Gutierrez 30430-260
Belo Horizonte/MG Brasil
More information about the Haskell-Cafe
mailing list