Re: [LIP] C++ does not support long long: QCAD

Shridhar Daithankar <[email protected]>
Newsgroups gmane.user-groups.linux.india.programmers
Message-ID <[email protected]>
On Saturday 18 March 2006 15:08, H S Rai wrote:
> I was trying to compile QCAD, but got following error that ISO C++ does not
> support `long long`. What will be way to compile it on Debian system?
>
> -------------------------------
> In file included from /usr/include/qt3/qobjectdefs.h:42,
>                   from /usr/include/qt3/qobject.h:42,
>                   from actions/rs_actioninterface.h:31,
>                   from actions/rs_actioninterface.cpp:28:
> /usr/include/qt3/qglobal.h:712: error: ISO C++ does not support `long long'
> /usr/include/qt3/qglobal.h:713: error: ISO C++ does not support `long long'
> make[2]: *** [obj/rs_actioninterface.o] Error 1
> make[1]: *** [lib/libqcad.a] Error 2
> make: *** [all] Error 2
>
> ----------------

Hmm.. may be you have set -pedantic flag that forces strict ISO compliance? 
This is what I get on my slackware-current with gcc-3.4.5

---------------
shridhar@darkstar:~/test/C$ rm -f longlong;g++ -o longlong 
longlong.cpp;./longlong
Value 10
Size 8
shridhar@darkstar:~/test/C$ rm -f longlong;g++ -ansi -pedantic -o longlong 
longlong.cpp;./longlong
longlong.cpp: In function `int main()':
longlong.cpp:5: error: ISO C++ does not support `long long'
longlong.cpp:7: error: ISO C++ does not support `long long'
-bash: ./longlong: No such file or directory
---------------

The program is
---------------
#include <iostream>

int main()
{
	long long i = 10;
	std::cout << "Value " << i << std::endl;
	std::cout << "Size " << sizeof(long long) << std::endl;
	
	return 0;
}
---------------

HTH

 Shridhar


-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.