64 bit compiling issues

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

Moderator: andrew

64 bit compiling issues

Postby 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 2.6.23.14-107.fc8 #1 SMP Mon Jan 14 22:07:11 EST 2008 x86_64 x86_64 x86_64 GNU/Linux
marklapier
Registered Member
 
Posts: 1
Joined: Sun Feb 03, 2008 6:45 am
Location: VA USA

Postby janif » Mon Feb 04, 2008 5:32 pm

Fedora source rpm has patch for this.
janif
Junior Member
 
Posts: 23
Joined: Sat Jan 19, 2008 7:28 pm


Return to QCAD Community 'How Do I' Questions

Who is online

Users browsing this forum: Yahoo [Bot] and 1 guest