32bit-64bit

Compile position-independent executable with statically linked library on 64 bit machine

好久不见. 提交于 2019-12-11 04:16:45
问题 When I try to compile with the following command-line: g++ code.cpp /usr/lib/x86_64-linux-gnu/libcrypto.a -ldl -Fpie -pie -o executable I get the following error message: /usr/bin/ld: /tmp/ccNHn5FA.o: Die Umlagerung von /tmp/ccNHn5FA.o: error adding symbols: Ungültiger Wert collect2: error: ld returned 1 exit status I am wondering why this does not work, because exactly the same command line on my 32 bit machine works fine. What am I doing wrong? 回答1: When I try to compile with the following

How to get Actual path of redirected path?

戏子无情 提交于 2019-12-11 04:11:54
问题 A 32-bit process running on 64-bit would get generalized path to a redirected path, due to file-redirection. A call to GetCurrentDirectory , for example, if process is running from \Windows\SysWOW64 would get result: Windows\System32 . Though, it is very much possible to determine if 32-bit process is running on 64-bit host machine. I am looking for a solution to give me correct/actual path. Something like ResolveWOWPathToActual path, that would give \Windows\SysWOW64 for a path \Windows

64-bit build in OSX - inconsistant malloc error

安稳与你 提交于 2019-12-11 04:03:49
问题 I'm getting a very inconsistant error in Xcode: malloc: *** error for object 0x1041146f8: incorrect checksum for freed object - object was probably modified after being freed. *** set a breakpoint in malloc_error_break to debug I know that it's not my code directly because a 32-bit build works just fine (Architecture set to Standard 32/64 and Build Active Architectures Only is set to No). It also will occasionally work just fine without me changing even a comment, but only about %10 of the

Visual Basic 6 on Win7 64bit: Will developed program run on 32-bit Win OS?

孤人 提交于 2019-12-11 03:36:00
问题 I am using the Visual Basic 6 IDE on a machine that runs on a 64bit Windows 7 OS. Codejock Xtreme SuitePro 15 is also used for interface stuff. Users of the program being developed are using 32bit Windows, probably XP. Could the program (developed on 64bit) work fine on the target environment? Thanks. EDIT: OS is Windows 7, updated/upgraded to SP1. 回答1: YES. There's no such thing as 64-bit VB6 application. 回答2: Codejock provide both 32 and 64 bit versions of their controls - but you won't be

java.lang.UnsatisfiedLinkError: C:\Program Files (x86)\IBM\Lotus\Notes\nlsxbe.dll: Can't load IA 32-bit .dll on a AMD 64-bit platform

允我心安 提交于 2019-12-11 03:26:51
问题 I am trying to connect Lotus Notes Domino (8.5.1) objects from a java web application which uses eclipse (indigo, jdk1.7). this is what I did: 1. add notes.jar to Librairies of Java Build Path in eclipse, 2. add path variable of "C:\Program Files (x86)\IBM\Lotus\Notes" to path of Envrionment variable of my local computer. then I created this simple java codes in eclipse as below: import lotus.domino.*; public class platform3 { public static void main(String argv[]) { try { NotesThread

Problems with python 2.4 and 2.4.4 in struct.unpack and win/lin

戏子无情 提交于 2019-12-11 02:58:39
问题 i'm coding on a Linux debian machine with python 2.4. My neighbour with Windows XP and python 2.4.4 He can run this code: w1, w2, w3 = unpack("LLL", pack("LLHH", localtime, ipddr, counter, aid)) But when i try this code i become this error: w1, w2, w3 = unpack("LLL", pack("LLHH", localtime, ipddr, counter, aid)) struct.error: unpack str size does not match format Can it be the Version of python or maybe the system? 回答1: Use the I format code instead of L . On your Linux machine, L isn't twice

Running Ruby on Rails + Phusion passenger with Nginx+mysql in 32 bit or 64 bit Linux OS server and its performance?

a 夏天 提交于 2019-12-11 02:54:02
问题 I have a Java background, and am new to Ruby on Rails, and have a lot of confusion choosing 32-bit or 64-bit Linux OS for my server. This is what I know, please correct me if I am wrong: A 32-bit OS cannot utilize more than 4GB of RAM, but through pae it's possible. In this way, the extra memory is useful even though no single regular application can access it all simultaneously. So I plan to go with a 64-bit Linux OS server. Is there a 64-bit Ruby enterprise edition available? Is it better

How to start a 32-bit process in C# without using shell execute on 64-bit machine?

邮差的信 提交于 2019-12-11 02:18:44
问题 I have an ASP .NET web application on a 64-bit machine that needs to run a legacy 32-bit reporting application. When I run the program with UseShellExecute = false , the program exits with exit code: -1073741502 I can't use Shell Execute because I have to run the process as a different user. Yet, when Shell Execute is true, the process will run fine (although I have to change the user that ASP .NET is executing under). How can I start this 32-bit program using C# without use shell execute?

using 64bit and 32 bit JDK

断了今生、忘了曾经 提交于 2019-12-11 01:53:49
问题 I have a system running 64bit windows 7. I'm doing a project using JMF, which I found works best (or only) with 32 bit jdk. I'm using a 32bit eclipse. I also have a 64bit JDK installed. right now I have set classpath (JAVA_HOME and Path) for the 32bit JDK. The problem is it becomes hectic to switch between the 64bit and 32 bit JDK(i have to change classpaths everytime). Is there any easier way to do that? 回答1: You can have multiple JREs registered with Eclipse, and associate a project or run

How to programatically detect a 64 bit or 32 bit machine?

安稳与你 提交于 2019-12-11 01:03:25
问题 I don't understand what 32 bit and 64 bit means. It seems that people say 64 bit computers run faster - but why? Does it mean that there are 64 bit integers instead of 32? If it's something like that, is there a way to write a program to determine if we're on a 32 bit or 64 bit machine? 回答1: On 64-bit machines pointers are 8 bytes (64 bits). On 32-bit machines they are 4 bytes (32 bits). Thus we can determine by the size of a pointer what we are dealing with, in it's simplest form: #define IS