CDP Forum Forum Index CDP Forum
NOTE: The forum is being replaced by support.icd.no
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Compiling on 64-bit Linux

 
Post new topic   Reply to topic    CDP Forum Forum Index -> Linux programming
View previous topic :: View next topic  
Author Message
Kent



Joined: 12 Sep 2008
Posts: 12

PostPosted: Thu 28 May 8:41:37 2009    Post subject: Compiling on 64-bit Linux Reply with quote

Compiling on 64-bit Linux

Currently CDP does not support 64-bit on Linux (per CDP version 2.3.1.12), and if you try building you're likely to see errors such as these:
Code:
/opt/CDP/CDP/CDPDefines.h:286: error: redefinition of $B!F(Bint CDP::numberofbits() [with T = long int]$B!G(B
/opt/CDP/CDP/CDPDefines.h:282: error: $B!F(Bint CDP::numberofbits() [with T = long int]$B!G(B previously declared here

To use CDP on 64-bit Linux you will need to use the 32-bit compatibility libraries of your Linux distribution and tell the compiler to create 32-bit code.

Before compiling, the compiler to create 32-bit code:
Code:
export GLOBALS=-m32

You will also need various compatibilities packages installed. The names will vary with distributions, but some of those that are needed on Ubuntu 9.04 (beyond the regular packages needed for development) include:

  • libc6-dev-i386
  • lib32stdc++6
  • gcc-multilib
  • g++-multilib

With this, you should be able to get CDPTutor etc compiling on a 64-bit installation on Linux.
_________________
Kent Dahl - Software Developer
Industrial Control Design AS - http://www.icd.no/
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    CDP Forum Forum Index -> Linux programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group