Colorer Linux Library: xmldom.cpp build error

17 views
Skip to first unread message

tleish

unread,
Dec 23, 2013, 1:03:39 PM12/23/13
to col...@googlegroups.com
I'm getting the following error when trying to build colorer linux library on Mac OS X 10.9


$ make
---------------- Building Colorer-take5 console tools
make -C src/colorer/ -f makefile.gcc
gcc -O3 -Wp,-I../shared/,-I../shared/../zlib/,-w -o objs/xmldom.o  -c -s   -D__unix__ -DCOLORER_FEATURE_HTTPINPUTSOURCE=FALSE ../shared//./xml/xmldom.cpp
clang: warning: argument unused during compilation: '-s'
../shared//./xml/xmldom.cpp:34:20: error: taking the address of a temporary object of type 'DString' [-Waddress-of-temporary]
  entitiesHash.put(&DString("amp"), new SString("&"));
                   ^~~~~~~~~~~~~~~
../shared//./xml/xmldom.cpp:35:20: error: taking the address of a temporary object of type 'DString' [-Waddress-of-temporary]
  entitiesHash.put(&DString("lt"), new SString("<"));
                   ^~~~~~~~~~~~~~
../shared//./xml/xmldom.cpp:36:20: error: taking the address of a temporary object of type 'DString' [-Waddress-of-temporary]
  entitiesHash.put(&DString("gt"), new SString(">"));
                   ^~~~~~~~~~~~~~
../shared//./xml/xmldom.cpp:37:20: error: taking the address of a temporary object of type 'DString' [-Waddress-of-temporary]
  entitiesHash.put(&DString("quot"), new SString("\""));
                   ^~~~~~~~~~~~~~~~
../shared//./xml/xmldom.cpp:38:20: error: taking the address of a temporary object of type 'DString' [-Waddress-of-temporary]
  entitiesHash.put(&DString("apos"), new SString("\'"));
                   ^~~~~~~~~~~~~~~~
5 errors generated.
make[1]: *** [objs/xmldom.o] Error 1
make: *** [colorer] Error 2 

Igor Russkih

unread,
Dec 28, 2013, 11:01:53 PM12/28/13
to colorer
Hello,

It seems that became an error in latest GCC. 

Try adding -fpermissive option to gcc.

  Igor


--
You received this message because you are subscribed to the Google Groups "Colorer" group.
To unsubscribe from this group and stop receiving emails from it, send an email to colorer+u...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply all
Reply to author
Forward
0 new messages