64 bit compiling issues

Use this forum to ask questions about how to do things in the QCAD Community Edition.

Moderator: andrew

Registered Member
Posts: 1
Joined: Sun Feb 03, 2008 6:45 am
Location: VA USA

64 bit compiling issues

Post by marklapier » Sun Feb 03, 2008 9:27 pm

qcad will not build on 64 bit gcc. The issue is that the 'int' is 32 bits but the pointer is 64 bits. When the 64 bit 'int*' pointer is dereferenced to the 32 bit 'int' the compiler dies with this error message:

"engine/rs_layer.cpp:58: error: cast from ‘const RS_Layer*’ to ‘int’ loses precision"

I've read that this can be fixed by changing all the offending 'int' occurrences to 'long' instead.

If anyone has any better ideas let me know.

gcc version 4.1.2 20070925 (Red Hat 4.1.2-33)

Linux mushroom.patch #1 SMP Mon Jan 14 22:07:11 EST 2008 x86_64 x86_64 x86_64 GNU/Linux

Junior Member
Posts: 23
Joined: Sat Jan 19, 2008 7:28 pm

Post by janif » Mon Feb 04, 2008 5:32 pm

Fedora source rpm has patch for this.


Return to “QCAD Community 'How Do I' Questions”