Hi,
I am getting these errors when trying to compile a specific extern "C" section of code with g++ to link it with a larger C++ project.
How can i turn off ANSI C++ during compilation to avoid this?
Code:
g++ -W -Wall -fno-exceptions -fno-rtti -DHAVE_CONFIG_H -I../include -I../include -I. -I.. -DCLICK_USERLEVEL -g -O2 -MD -c ../elements/local/adddf3.cc
../elements/local/adddf3.cc: In function `DFtype __adddf3(DFtype, DFtype)':
../elements/local/adddf3.cc:33: warning: left shift count is negative
../elements/local/adddf3.cc:34: warning: left shift count is negative
../elements/local/adddf3.cc:35: warning: right shift count is negative
../elements/local/adddf3.cc:35: warning: right shift count is negative
../elements/local/adddf3.cc:35: warning: left shift count is negative
../elements/local/adddf3.cc:35: warning: right shift count is negative
../elements/local/adddf3.cc:35: warning: left shift count >= width of type
../elements/local/adddf3.cc:35: warning: right shift count is negative
../elements/local/adddf3.cc:35: warning: left shift count >= width of type
../elements/local/adddf3.cc:35: warning: left shift count is negative
../elements/local/adddf3.cc:35: warning: right shift count is negative
../elements/local/adddf3.cc:35: warning: right shift count is negative
../elements/local/adddf3.cc:35: warning: left shift count is negative
../elements/local/adddf3.cc:36: warning: right shift count is negative
../elements/local/adddf3.cc:35: error: ISO C++ forbids cast to non-reference type used as lvalue
../elements/local/adddf3.cc:35: error: ISO C++ forbids cast to non-reference type used as lvalue
Thanks!
George