confuse-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Confuse-devel] Warning messages when compiling with g++


From: Martin Hedenfalk
Subject: Re: [Confuse-devel] Warning messages when compiling with g++
Date: Mon, 29 Jun 2009 16:44:04 +0200

Hi Shawn,

libConfuse is not a C++ library. Please compile with a C compiler.

        -martin


28 jun 2009 kl. 03.06 skrev address@hidden:

Dear Libconfuse developers,

When I try to compile cfgtest.c (http://www.nongnu.org/confuse/manual/cfgtest_8c-example.html ) as a cpp file with g++, I get some
warning messages, for both libconfuse-dev v6.2 and v2.5 on debian.
I am not sure if we are supposed to simply ignore these warning messages or libconfuse needs to be changed to be fully C++ compatible.

Thank you for providing the community with such a wonderful tool!

Best,
Shawn

---------------------------------------------------------------------------------------------

Command used:

g++ -o test cfgtest.cpp -Wall -lconfuse

Warning messages received:

cfgtest.cpp: In function ‘int main(int, char**)’:
cfgtest.cpp:97: warning: deprecated conversion from string constant to ‘char*’ cfgtest.cpp:97: warning: deprecated conversion from string constant to ‘char*’ cfgtest.cpp:97: warning: deprecated conversion from string constant to ‘char*’ cfgtest.cpp:97: warning: deprecated conversion from string constant to ‘char*’ cfgtest.cpp:97: warning: deprecated conversion from string constant to ‘char*’ cfgtest.cpp:107: warning: deprecated conversion from string constant to ‘char*’ cfgtest.cpp:107: warning: deprecated conversion from string constant to ‘char*’ cfgtest.cpp:107: warning: deprecated conversion from string constant to ‘char*’ cfgtest.cpp:107: warning: deprecated conversion from string constant to ‘char*’ cfgtest.cpp:107: warning: deprecated conversion from string constant to ‘char*’ cfgtest.cpp:107: warning: deprecated conversion from string constant to ‘char*’ cfgtest.cpp:107: warning: deprecated conversion from string constant to ‘char*’ cfgtest.cpp:119: warning: deprecated conversion from string constant to ‘char*’ cfgtest.cpp:119: warning: deprecated conversion from string constant to ‘char*’ cfgtest.cpp:119: warning: deprecated conversion from string constant to ‘char*’ cfgtest.cpp:119: warning: deprecated conversion from string constant to ‘char*’ cfgtest.cpp:119: warning: deprecated conversion from string constant to ‘char*’ cfgtest.cpp:119: warning: deprecated conversion from string constant to ‘char*’ cfgtest.cpp:119: warning: deprecated conversion from string constant to ‘char*’ cfgtest.cpp:119: warning: deprecated conversion from string constant to ‘char*’ cfgtest.cpp:119: warning: deprecated conversion from string constant to ‘char*’ cfgtest.cpp:119: warning: deprecated conversion from string constant to ‘char*’ cfgtest.cpp:119: warning: deprecated conversion from string constant to ‘char*’_______________________________________________
Confuse-devel mailing list
address@hidden
http://lists.nongnu.org/mailman/listinfo/confuse-devel





reply via email to

[Prev in Thread] Current Thread [Next in Thread]