Forum: Installation

Post: voltdb-client-php-extension-3.0/voltdb-client-cpp makefile question (-Wl flag)

voltdb-client-php-extension-3.0/voltdb-client-cpp makefile question (-Wl flag)
junxiu
May 22, 2015
By following Ruth's advice(Thank you, Ruth):

download a kits from our clients and monitoring page - http://voltdb.com/community/monitoring-tools.

I compiled both voltdb-client-php-extension-3.0/voltdb-client-php and voltdb-client-php-native
by using voltdb-client-extension-3.0/voltdb-client-cpp

But the original makefile in voltdb-client-extension-3.0/voltdb-client-cpp gave a g++ error on line 67 -Wl flag:

g++: error: unrecognized command line option '-Wl'

$(CC) -shared -Wl -o $@ $? $(THIRD_PARTY_LIBS) $(SYSTEM_LIBS)

After I removed the -Wl flag, voltdb-client-cpp and then both voltdb-client-php and voltdb-client-php-native got compiled.

Is the -Wl an error or not? Thanks! (I am using ubuntu 14.10, the g++ is the newest version.)
nshi
May 27, 2015
Junxiu,

Thank you for reporting the compilation problem. This issue had been fixed on github.

You can remove -Wl because it is no longer passing any linker flags now.