LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices

Reply
 
Search this Thread
Old 07-20-2006, 09:44 AM   #1
Hoju2468
LQ Newbie
 
Registered: Jul 2006
Posts: 3

Rep: Reputation: 0
32bit Integer and 64bit Pointer


When compiling code for mpiJava (designed under 32bit) on an Amd64 system, I got the following error:
warning: cast to pointer from integer of different size

The following is one of the lines that is causeing problems:
sargs = (char**)calloc(len+1, sizeof(char*));

I don't quite understand why there would be an error here since calloc is returning a pointer to the memory.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
can 64bit processor run both 64bit and 32bit computers? DJOtaku Linux - General 4 09-08-2005 08:14 PM
32bit on 64bit paralysis Linux From Scratch 2 06-02-2005 03:19 PM
32Bit or 64Bit? bchivers Mandriva 9 05-22-2005 12:28 PM
Comparison between pointer and integer ---> WHY?? its_godzilla Programming 10 01-28-2005 09:40 PM
pointer from integer without a cast bcf2 Programming 7 12-30-2004 02:04 PM


All times are GMT -5. The time now is 10:00 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration