Crystal Space
Welcome, Guest. Please login or register.
April 19, 2014, 02:26:20 pm

Login with username, password and session length
Search:     Advanced search
8990 Posts in 2037 Topics by 7597 Members
Latest Member: Drukareczka1989
* Home Help Search Login Register
+  Crystal Space
|-+  Crystal Space Development
| |-+  Support
| | |-+  unrecognized command line option "-Wno-long-double
« previous next »
Pages: [1] Print
Author Topic: unrecognized command line option "-Wno-long-double  (Read 5593 times)
attila
Guest
« on: August 13, 2008, 04:56:59 pm »

Hi, I'm trying to compile crystal space 1.2 on Kubuntu 8.04.

After running
Code:
./configure

I'm running
Code:
jam
, all is well until:
Code:
Ranlib ./out/linuxx86/debug/libs/libcrystalspace-1.2.a
C++ ./out/linuxx86/debug/apps/demo/demo.o
../crystalspace-src-1.2/apps/demo/demo.cpp: In member function ‘bool Demo::DemoHandleEvent(iEvent&)’:
../crystalspace-src-1.2/apps/demo/demo.cpp:1002: warning: deprecated conversion from string constant to ‘char*’
../crystalspace-src-1.2/apps/demo/demo.cpp:1004: warning: deprecated conversion from string constant to ‘char*’
../crystalspace-src-1.2/apps/demo/demo.cpp:1006: warning: deprecated conversion from string constant to ‘char*’
../crystalspace-src-1.2/apps/demo/demo.cpp:1007: warning: deprecated conversion from string constant to ‘char*’
../crystalspace-src-1.2/apps/demo/demo.cpp:1008: warning: deprecated conversion from string constant to ‘char*’
../crystalspace-src-1.2/apps/demo/demo.cpp:1013: warning: deprecated conversion from string constant to ‘char*’
../crystalspace-src-1.2/apps/demo/demo.cpp:1015: warning: deprecated conversion from string constant to ‘char*’
../crystalspace-src-1.2/apps/demo/demo.cpp:1016: warning: deprecated conversion from string constant to ‘char*’
../crystalspace-src-1.2/apps/demo/demo.cpp:1021: warning: deprecated conversion from string constant to ‘char*’
../crystalspace-src-1.2/apps/demo/demo.cpp:1023: warning: deprecated conversion from string constant to ‘char*’
../crystalspace-src-1.2/apps/demo/demo.cpp:1024: warning: deprecated conversion from string constant to ‘char*’
../crystalspace-src-1.2/apps/demo/demo.cpp:1029: warning: deprecated conversion from string constant to ‘char*’
../crystalspace-src-1.2/apps/demo/demo.cpp:1031: warning: deprecated conversion from string constant to ‘char*’
At global scope:
cc1plus: error: unrecognized command line option "-Wno-long-double"

    g++ -c -o ./out/linuxx86/debug/apps/demo/demo.o -I../crystalspace-src-1.2/. -I./include -I../crystalspace-src-1.2/./include -pipe -Wall -Wno-unknown-pragmas -fvisibility=hidden -march=i586 -mtune=generic -I/usr/local/include -Wno-long-double -fno-exceptions -fvisibility-inlines-hidden -g3 -DCS_DEBUG  ../crystalspace-src-1.2/apps/demo/demo.cpp

...failed C++ ./out/linuxx86/debug/apps/demo/demo.o ...
Everything goes downhill from there, it seems to me that cc1plus: error: unrecognized command line option "-Wno-long-double" is causing the trouble.

Can anybody help me? Thanks
Logged
Njoc
Newbie
*
Posts: 27


View Profile Email
« Reply #1 on: August 14, 2008, 03:17:01 pm »

Can you compile walktest and the other apps and libs?
Logged
attila
Guest
« Reply #2 on: August 16, 2008, 01:06:09 am »

No, I don't think so. A lot of the files give the same error, and walktest is no exception:

Code:
C++ ./out/linuxx86/debug/apps/walktest/walktest.o
../crystalspace-src-1.2/apps/walktest/walktest.cpp: In member function ‘virtual void WalkTest::DrawFrameConsole()’:
../crystalspace-src-1.2/apps/walktest/walktest.cpp:464: warning: deprecated conversion from string constant to ‘char*’
../crystalspace-src-1.2/apps/walktest/walktest.cpp:468: warning: deprecated conversion from string constant to ‘char*’
At global scope:
cc1plus: error: unrecognized command line option "-Wno-long-double"

    g++ -c -o ./out/linuxx86/debug/apps/walktest/walktest.o -I../crystalspace-src-1.2/. -I./include -I../crystalspace-src-1.2/./include -pipe -Wall -Wno-unknown-pragmas -fvisibility=hidden -march=i586 -mtune=generic -I/usr/local/include -Wno-long-double -fno-exceptions -fvisibility-inlines-hidden -g3 -DCS_DEBUG -ansi -pedantic  ../crystalspace-src-1.2/apps/walktest/walktest.cpp

...failed C++ ./out/linuxx86/debug/apps/walktest/walktest.o ...
...skipped walktest for lack of <apps!walktest!>infmaze.o...

Any thoughts on this?
Logged
Vincent
Full Member
***
Posts: 191


View Profile WWW
« Reply #3 on: August 31, 2008, 07:52:48 pm »

I think that has been fixed in latest 1.2 release, which is 1.2.1.
Logged
attila
Guest
« Reply #4 on: October 17, 2008, 08:15:51 am »

Indeed it is! Thanks!

Still that same annoying const string to char* conversion warning, though.. I guess it has something to do with the gcc version.
Logged
res
Develazyoper
CS Developer
Full Member
*****
Posts: 206


View Profile Email
« Reply #5 on: October 20, 2008, 11:01:09 am »

Still that same annoying const string to char* conversion warning, though.. I guess it has something to do with the gcc version.

Yeah. This:
Code:
char* foo = "bar";
...causes a warning since gcc 4.2 or 4.3. While annoying, it's nothing to worry about, code still works like it's supposed to.
Logged
Pages: [1] Print 
« previous next »
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.2 | SMF © 2006-2007, Simple Machines LLC Valid XHTML 1.0! Valid CSS!
Page created in 4.246 seconds with 14 queries.