64-bit

How to avoid the source being overwritten when compiling a Gem?

扶醉桌前 提交于 2019-12-12 04:58:23
问题 I am trying to install eventmachine Gem, however a line needs to be commented out in the source for this to work on Ruby 2.0 on Windows x64. I have tried modifying the Gem source in the Ruby build folder but each time I run gem install eventmachine it overwrites my changes. From the command line help there does not appear to be a way to rebuild the gem without unpacking fresh source, however there may be a workaround. Is there a way to build my slightly tweaked source for this Gem? 回答1: Don't

Solaris 11 / Illumos / OmniOS: Which package has /usr/include/sys/types.h?

∥☆過路亽.° 提交于 2019-12-12 04:32:28
问题 The Ubuntu equivalent would be libc6-dev , but I can't seem to find it for Solaris? How can I get types.h and related files for building packages on Solaris or Illumos? 回答1: You need the system/header package. I found this via http://pkg.oracle.com/solaris/release/en/search.shtml?token=types.h&action=Search 回答2: Assuming you use IPS 'pkg search 'types.h'' The Oracle Solaris 11 Cheat Sheet for Image Packaging System could be useful, too. 来源: https://stackoverflow.com/questions/41841143/trouble

Forcing name mangling in x64 DLL

北慕城南 提交于 2019-12-12 04:31:10
问题 I am porting a 32-bit application to 64-bit. The application supports plugins which are DLLs. Unfortunately, one of the mandatory functions each plugin needs to have is called FreeLibrary which of course conflicts with the kernel32 API of the same name. The reason why my plugin API uses the FreeLibrary name is that the application originated on a different platform where FreeLibrary doesn't clash with any OS APIs. However, even on 32-bit Windows using FreeLibrary is not a problem because 32

What do you say of chopping type-4 UUID in this manner

我的梦境 提交于 2019-12-12 04:25:04
问题 Check this, List<String> list = new ArrayList<String>(); for (int i = 0; i < 10000; i++) { String value = (""+UUID.randomUUID().getLeastSignificantBits()).substring(3, 20); assertFalse(list.contains(value)); assertTrue(value.length() < 18); list.add(value); } This method is passing like charm. And I am in the impression that it is slightly better to take least significant bits, rather than the most significant. Because in the most significant bits you have 6 bits fixed for some info, and with

Can I use a library which references an unavailable assembly, if it's not used?

二次信任 提交于 2019-12-12 04:10:53
问题 I have a library X, which has a class C which used component Y. However, Y isn't available in 64 bit, so it's been replaced by component Z, but I want to still use Y when available. So I would like to reference Y and Z and then have C.vb: #If 32bit then Class C // implementation of C using Y End Class #End If C64.vb #If 64bit then Public Class C // implementation of C using Z End Class #End If Note: C-style Comments due to highlighting errors with vb comments. The problem, as I see it, is

How do you package a VSTO Word addin for deployment to a 64-bit Windows 10 machine running Microsoft Office 64 bit using WIX?

。_饼干妹妹 提交于 2019-12-12 03:17:32
问题 Problem I can't get 64-bit Word to load (or acknowledge the existence of in any way) an otherwise working Word VSTO add-in . Discussion I have a working Word VSTO add-in that I developed using Visual Studio 2017 on a 64-bit Windows 7 machine running Microsoft Office 32 bit. I use a WIX installer to deploy the add-in. I successfully deployed the add-in to a Windows 7 64 bit "master" gold disk that runs 32-bit Office, i.e., the add-in is available to any user who brings up a virtual desktop

Cannot import data from excel 2003 to database using openrowset function

核能气质少年 提交于 2019-12-12 03:16:15
问题 This is my laptop spec : OS : Windows 7 - 64bit , Database : SQL SERVER 2008 R2 , Microsoft Office : Microsoft Office 2007, My problem is : When I run my procedure to import data from excel 2003 (xls) to database (SQL Server 2008) , I've got this error : <span style="color:red">OLE DB provider 'Microsoft.Jet.OLEDB.4.0' cannot be used for distributed queries because the provider is configured to run in single-threaded apartment mode.</span> this is my procedure : SELECT * FROM OPENROWSET(

Convert 64-bit Hex to nanoseconds timestamps

早过忘川 提交于 2019-12-12 02:52:49
问题 I have timestamps that are represented in 64-bit hex. Is there a way to convert it to nanosecond timestamps? (preferably in c++) 回答1: Found it! I used std::hex to convert a hex value to long, which in turn gives me the nanosecond precision. 来源: https://stackoverflow.com/questions/36731370/convert-64-bit-hex-to-nanoseconds-timestamps

Error : undefined reference to 'engOpen'

。_饼干妹妹 提交于 2019-12-12 02:49:26
问题 Please, I'm looking for a solution to this problem erreur : undefined reference to 'engOpen' when I try to call mtlb function for c++ I'm working on win64 with QT creator. Here is my .pro file: TEMPLATE = app QT += qml quick CONFIG += c++11 SOURCES += main.cpp RESOURCES += qml.qrc INCLUDEPATH += "C:\Program Files\MATLAB\R2012a\extern\include" LIBS += -L "C:\Program Files\MATLAB\R2012a\bin\win64" # Additional import path used to resolve QML modules in Qt Creator's code model QML_IMPORT_PATH =

64-bit compiler available in Visual Studio Express 2012 or Express 2013?

余生长醉 提交于 2019-12-12 02:41:13
问题 Is 64-bit compilation available in Visual Studio Express 2012 or Express 2013? I know it's not available in Visual Studio 2010 Express, and one needs to install a few things to make it available. 64-bit tools are not available on Visual C++ Express by default. To enable 64-bit tools on Visual C++ Express, install the Windows Software Development Kit (SDK) in addition to Visual C++ Express. Otherwise, an error occurs when you attempt to configure a project to target a 64-bit platform using