Questions tagged [32bit-64bit]
Issues related to the use of a 64-bit vs a 32-bit architecture including portability issues.
2,633
questions
1041
votes
44
answers
1.7m
views
Can't start Eclipse - Java was started but returned exit code=13
I am trying to get my first taste of Android development using Eclipse. I ran into this problem when trying to run Eclipse, having installed version 4.2 only minutes ago.
After first trying to start ...
541
votes
17
answers
547k
views
How do I determine if my python shell is executing in 32bit or 64bit?
How can I tell what mode the shell is in, from within the shell?
I've tried looking at the platform module, but it seems only to tell you about "the bit architecture and the linkage format used ...
476
votes
21
answers
524k
views
How to determine whether a given Linux is 32 bit or 64 bit?
When I type uname -a, it gives the following output.
Linux mars 2.6.9-67.0.15.ELsmp #1 SMP Tue Apr 22 13:50:33 EDT 2008 i686 i686 i386 GNU/Linux
How can I know from this that the given OS is 32 or ...
308
votes
18
answers
623k
views
Retrieving the COM class factory for component with CLSID {XXXX} failed due to the following error: 80040154
I developed a Windows service using C#.NET to generate PDF report. To generate PDF file I am using a third party dll. The application is running in my Windows XP platform. When I deployed the service ...
283
votes
5
answers
309k
views
How can I test a Windows DLL file to determine if it is 32 bit or 64 bit? [duplicate]
I'd like to write a test script or program that asserts that all DLL files in a given directory are of a particular build type.
I would use this as a sanity check at the end of a build process on an ...
239
votes
5
answers
191k
views
Why do 64-bit DLLs go to System32 and 32-bit DLLs to SysWoW64 on 64-bit Windows?
I would like to know when do we need to place a file under
C:\Windows\System32 or C:\Windows\SysWOW64, on a 64-bits windows system.
I had two DLL's, one for 32-bit, one for 64-bit.
Logically, I ...
233
votes
22
answers
600k
views
Microsoft.Jet.OLEDB.4.0' provider is not registered on the local machine
I created a windows application developed in .NET 3.5 in a 32 bit Windows 2008 server. When deployed the application in a 64 bit server it shows the error "Microsoft.Jet.OLEDB.4.0' provider is not ...
227
votes
10
answers
253k
views
Missing include "bits/c++config.h" when cross compiling 64 bit program on 32 bit in Ubuntu
I am running the 32bit version of Ubuntu 10.10 and trying to cross compile to a 64 bit target. Based on my research, I have installed the g++-multilib package.
The program is a very simple hello ...
186
votes
9
answers
389k
views
CentOS 64 bit bad ELF interpreter
I have just installed CentOS 6 64bit version, I'm trying to install a 32-bit application on a 64-bit machine and got this error:
/lib/ld-linux.so.2: bad ELF interpreter: No such file or directory
...
154
votes
16
answers
158k
views
Determining 32 vs 64 bit in C++
I'm looking for a way to reliably determine whether C++ code is being compiled in 32 vs 64 bit. We've come up with what we think is a reasonable solution using macros, but was curious to know if ...
149
votes
7
answers
199k
views
Should I use Python 32bit or Python 64bit
I have a win7 64bit installation. Must I use Python 64bit? What are the differences between the 32bit and 64bit Python versions anyway? Do different Python packages (such as south, django, mysqldb etc)...
148
votes
5
answers
170k
views
How to find out if an installed Eclipse is 32 or 64 bit version?
How can I find out if a specific Eclipse instance on my (Windows 7) PC is the 32-bit or 64-bit version?
I've checked the About screen and the maze of dialogs one can call from there, but I didn't ...
140
votes
3
answers
82k
views
NSLog/printf specifier for NSInteger?
A NSInteger is 32 bits on 32-bit platforms, and 64 bits on 64-bit platforms. Is there a NSLog specifier that always matches the size of NSInteger?
Setup
Xcode 3.2.5
llvm 1.6 compiler (this is ...
129
votes
2
answers
168k
views
How do I detect if Python is running as a 64-bit application? [duplicate]
I'm doing some work with the Windows registry. Depending on whether Python is running as 32-bit or 64-bit, certain key values will be different. How can I detect whether Python is running as a 64-bit ...
129
votes
7
answers
74k
views
Conditionally use 32/64 bit reference when building in Visual Studio
I have a project that builds in 32/64-bit and has corresponding 32/64-bit dependencies. I want to be able to switch configurations and have the correct reference used, but I don't know how to tell ...
114
votes
7
answers
97k
views
How to determine programmatically whether a particular process is 32-bit or 64-bit
How can my C# application check whether a particular application/process (note: not the current process) is running in 32-bit or 64-bit mode?
For example, I might want to query a particular process by ...
96
votes
8
answers
14k
views
Why is long slower than int in x64 Java?
I'm running Windows 8.1 x64 with Java 7 update 45 x64 (no 32 bit Java installed) on a Surface Pro 2 tablet.
The code below takes 1688ms when the type of i is a long and 109ms when i is an int. Why is ...
91
votes
5
answers
97k
views
In LINUX determine if a .a library/archive 32-bit or 64-bit?
We distribute in Linux a static lib in both 64-bit and 32-bit versions. When troubleshooting a customer, I would like my diagnostic shell script to quickly eliminate the issue by checking the .a ...
84
votes
3
answers
82k
views
Why is Windows 32-bit called Windows x86 and not Windows x32? [closed]
The Windows operating system can be either 32 bit or 64 bit. The 64 bit version is called Windows x64 but the 32 bit version is called Windows x86. Why isn't it called Windows x32? What is the reason?
82
votes
4
answers
189k
views
Is it possible to install both 32bit and 64bit Java on Windows 7?
Is it possible to install both 32bit and 64bit Java on Windows 7?
I have some applications that I can run under 64bit, but there are some that only run under 32bit.
80
votes
2
answers
69k
views
C# compiling for 32/64 bit, or for 'Any CPU'? [duplicate]
Possible Duplicate:
What does the Visual Studio "Any CPU" target mean?
I've noticed that when compiling C# code in Visual Studio, there are typically options for compiling for 32/64 bit ...
80
votes
4
answers
8k
views
Huge performance difference (26x faster) when compiling for 32 and 64 bits
I was trying to measure the difference of using a for and a foreach when accessing lists of value types and reference types.
I used the following class to do the profiling.
public static class ...
77
votes
10
answers
66k
views
Using a 32bit or 64bit dll in C# DllImport
Here is the situation, I'm using a C based dll in my dot.net application. There are 2 dlls, one is 32bit called MyDll32.dll and the other is a 64bit version called MyDll64.dll.
There is a static ...
74
votes
7
answers
202k
views
how much memory can be accessed by a 32 bit machine?
What is meant by 32bit or 64 bit machine?
It’s the processor architecture…a 32 bit machine can read and write 32bit data at a time same way with 64 bit machine….
whats the maximum memory that a 32 ...
71
votes
9
answers
63k
views
Fast computing of log2 for 64-bit integers
A great programming resource, Bit Twiddling Hacks, proposes (here) the following method to compute log2 of a 32-bit integer:
#define LT(n) n, n, n, n, n, n, n, n, n, n, n, n, n, n, n, n
static const ...
70
votes
4
answers
36k
views
Have a static lib, is there a simple way to know it is for 32 bit or 64 bit?
Is there any tool that can directly test if a library is made for 32 or 64 bit?
67
votes
7
answers
14k
views
What does it mean for a program to be 32 or 64 bit? [closed]
This question: How many bits does a WORD contain in 32/64 bit OS respectively?, mentions that word size refers to the bit size of a processor register - which i take to mean the number of bits that a ...
66
votes
6
answers
109k
views
The proper way of forcing a 32-bit compile using CMake
Sorry that there are many similar questions, but I do find that Googling for CMake queries always yields similar-but-not-the-same scenarios, conflicting CMake commands and so on!
I need to force my ...
63
votes
9
answers
11k
views
How should I prepare my 32-bit Delphi programs for an eventual 64-bit compiler? [duplicate]
Possible Duplicate:
How to also prepare for 64-bits when migrating to Delphi 2010 and Unicode
Since I believe that 64bit Delphi compiler will appear soon,
I am curious if anybody knows what kind ...
61
votes
6
answers
35k
views
Is it advisable to switch from Cygwin 32bit to Cygwin 64bit?
I've been using Cygwin (for a long time). Specifically, I use it (including gcc/g++) on Win7 for development work. I've just recently noticed there now exists a 64-bit version.
I don't have a ...
60
votes
10
answers
85k
views
What is the difference between a 32-bit and 64-bit processor?
I have been trying to read up on 32-bit and 64-bit processors (http://en.wikipedia.org/wiki/32-bit_processing). My understanding is that a 32-bit processor (like x86) has registers 32-bits wide. I'm ...
56
votes
5
answers
46k
views
How to make Android's aapt and adb work on 64-bit Ubuntu without ia32-libs (works for versions 12, 13 and 14)
Since Ubuntu 13.10 no longer has ia32-libs I cannot get my android development environment running on a clean install of 13.10.
The error is ~/android-studio/sdk/build-tools/android-4.2.2/aapt": ...
55
votes
4
answers
54k
views
How can I know if R is running on 64 bits versus 32?
My version output is:
> version
_
platform x86_64-w64-mingw32
arch x86_64
os mingw32 ...
54
votes
4
answers
104k
views
Load 32-bit DLL library in 64-bit application
Is there a way to load a 32-bit DLL library (something with the same usage as LoadLibrary) I would like to use that function along with GetProcAddress.
I looked at WOW, but it does not seem to offer ...
53
votes
4
answers
23k
views
what is the performance impact of using int64_t instead of int32_t on 32-bit systems?
Our C++ library currently uses time_t for storing time values. I'm beginning to need sub-second precision in some places, so a larger data type will be necessary there anyway. Also, it might be useful ...
53
votes
4
answers
26k
views
Is it safe to use sys.platform=='win32' check on 64-bit Python?
The usual check to differentiate between running Python-application on Windows and on other OSes (Linux typically) is to use conditional:
if sys.platform == 'win32':
...
But I wonder is it safe ...
52
votes
28
answers
198k
views
Detect whether Office is 32bit or 64bit via the registry
Now that Office also comes in a 64bit install, where in the registry do you find out if the version of Office installed is 32bit or 64bit?
51
votes
14
answers
59k
views
Detect 32-bit or 64-bit of Windows
I want to detect whether the current Windows OS is 32-bit or 64-bit. How to achieve it using C++? I don't want processor type I want OS's bit type. This is because you can install 32-bit OS on 64-bit ...
47
votes
7
answers
177k
views
MS Access DB Engine (32-bit) with Office 64-bit
We currently have a major issue using Microsoft Access Database Engine 2010. The engine comes in 64-bit and 32-bit forms, which is good. However, apparently you need to always install the 32-bit ...
47
votes
2
answers
25k
views
What does the Python version line mean?
What does the line that's displayed when you start an instance of the Python interpreter mean?
Python 2.7 (r27:82525, Jul 4 2010, 07:43:08) [MSC v.1500 64 bit (AMD64)] on win32
So I know I have ...
45
votes
10
answers
311k
views
Range of values in C Int and Long 32 - 64 bits
I'm confused with range of values of Int variable in C.
I know that a 32bits unsigned int have a range of: 0 to 65,535.
So long has 0 to 4,294,967,295
This is fine in 32bits machine. But now in ...
43
votes
4
answers
38k
views
Should I define both _WIN32 and _WIN64 in 64bit build?
When we add a 64bit configuration from a 32bit project that has already existed, Visual Studio copies the 32bit configurations by default. VS even copies _WIN32
All my 64bit projects define also ...
42
votes
12
answers
78k
views
BadImageFormatException when loading 32 bit DLL, target is x86
I have a DLL (FreeType) which is certainly 32-bit (header: IMAGE_FILE_MACHINE_I386).
I want to use it from C# code, using DllImport.
Target of my application is x86, IntPtr.Size is 4, process is 32-...
42
votes
7
answers
37k
views
How to start a 64-bit process from a 32-bit process
I am trying to run a 64 bit executable (java.exe) from our 32-bit .NET application. I am using Process class and invoking cmd /c <command name> in order to support all possible commands (like ...
41
votes
4
answers
55k
views
Can I control the architecture (32bit vs 64bit) when building a pyinstaller executable?
Short Question
Is there any way to control / guarantee the architecture (32bit vs 64bit) when building a pyinstaller executable?
Background
I migrated from py2exe to pyinstaller because of the lack ...
40
votes
6
answers
34k
views
How do I compile openSSL in 32 bit mode on a 64bit system?
I have a program that currently has to be compiled in 32 bit mode (for now) and needs to be linked against a version of openSSL with the experimental ciphers included. Therefore I need to compile a ...
40
votes
6
answers
29k
views
What are the pros and cons of running IIS as 32bit vs 64bit on a 64bit OS?
Possibly better suited for "Rack Overflow", but from a developer's point of view, what are the advantages and disadvantages of running IIS (serving both legacy classic ASP and .NET) as a 32bit process ...
38
votes
3
answers
35k
views
What causes System.BadImageFormatException when constructing System.Data.SQLite.SQLiteConnection
I've broken the code down to the smallest possible statement:
Dim cn As System.Data.SQLite.SQLiteConnection
And I get the following error when calling the code from a WinForm applicaiton:
System....
37
votes
5
answers
22k
views
Android studio cannot find aapt
Hi I am having trouble compiling, I get this error:
Gradle: Execution failed for task ':ElectronicComponentInventorySearch:mergeDebugResources'.
java.io.IOException: Cannot run program "/opt/...
37
votes
4
answers
47k
views
Which command to use for checking whether python is 64bit or 32bit
I am not able to find any command to check if my python is compiled for 32bit system or 64bit system.
I tried
python
and it only tells the version
Also when I go to python download site they ...