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

Re: C++ does not support long long: QCAD



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
> 
> ----------------
> 
> With kind regards,
> 

What version of g++ are you using?
g++ 4.0.3 compiles long long, as long, as you dont use a option like
-pedantic:

joerg@dilbert:~/tmp$ cat main.cpp
#include <iostream>

using namespace std;

int main(int, char **) {
    long long i=42L;

    cout << "i: "<<i<<endl;
}


joerg@dilbert:~/tmp$ g++ main.cpp -Wall
joerg@dilbert:~/tmp$ ./a.out
i: 42

joerg@dilbert:~/tmp$ g++ main.cpp -Wall -pedantic
main.cpp: In function 'int main(int, char**)':
main.cpp:6: error: ISO C++ does not support 'long long'

joerg@dilbert:~/tmp$ g++ --version
g++ (GCC) 4.0.3 (Debian 4.0.3-1)
Copyright (C) 2006 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.


	hth
	joerg



Reply to: