标签: windows64

配置ASP.NET以在x64 Windows上使用x86

我正在尝试部署GAL Modifier,这是一个在Windows 2003 x64计算机上使用Microsoft Access的ASP.NET网站.但是x64上没有JET驱动程序(参见此处),因此更改是使用将目标CPU更改为x86.

但是因为它是一个网站,除了Any CPU之外,Visual Studio中没有选项,所以如何更改设置以强制它使用x86?

asp.net x86 ms-access jet windows64

5
推荐指数
2
解决办法
8571
查看次数

尝试在Windows上安装Python bcrypt的许多问题(x64)

这个问题已在其他地方提到,但它没有提供可行的解决方案,所以我仍然希望打开一张票.

c:\Users\me\Desktop\temp\py-bcrypt-0.2>setup.py install build --compiler=min
gw32
running install
running build
running build_py
running build_ext
building 'bcrypt._bcrypt' extension
C:\MinGW\bin\gcc.exe -mno-cygwin -mdll -O -Wall -IC:\Python27\include -IC:\Python27\PC -c bcrypt/bcrypt_python.c -o build\temp.win32-2.7\Release\bcrypt\bcrypt_python.o
bcrypt/bcrypt_python.c:29:26: error: expected declaration specifiers or '...' before 'u_int8_t'
bcrypt/bcrypt_python.c:29:38: error: expected declaration specifiers or '...' before 'u_int16_t'
bcrypt/bcrypt_python.c:29:49: error: expected declaration specifiers or '...' before 'u_int8_t'
bcrypt/bcrypt_python.c: In function 'bcrypt_encode_salt':
bcrypt/bcrypt_python.c:56:2: error: too many arguments to function 'encode_salt'

bcrypt/bcrypt_python.c:29:6: note: declared here
error: command 'gcc' failed with exit …

python windows windows-7 windows64

5
推荐指数
1
解决办法
2125
查看次数

MinGW 和 GLUT 对“_imp____glutInitWithExit@12”的未定义引用

我涉足 Python 一年,现在开始使用 C++,所以我是个菜鸟。我安装了 MinGW 并且一切正常,直到我安装了 freeglut。当我运行以下代码时:

#include <gl/glut.h>

int main()
{
    return 0;
}
Run Code Online (Sandbox Code Playgroud)

使用:

C:\code\cpp>g++ GLtest1.cpp
Run Code Online (Sandbox Code Playgroud)

我明白了:

C:\Users\User\AppData\Local\Temp\ccABWOyv.o:GLtest1.cpp:(.text+0x1c): undefined
reference to `_imp____glutInitWithExit@12'
C:\Users\User\AppData\Local\Temp\ccABWOyv.o:GLtest1.cpp:(.text+0x3e): undefined
reference to `_imp____glutCreateWindowWithExit@8'
C:\Users\User\AppData\Local\Temp\ccABWOyv.o:GLtest1.cpp:(.text+0x60): undefined
reference to `_imp____glutCreateMenuWithExit@8'
c:/mingw/bin/../lib/gcc/mingw32/4.8.1/../../../../mingw32/bin/ld.exe: C:\Users\U
ser\AppData\Local\Temp\ccABWOyv.o: bad reloc address 0x20 in section `.eh_frame'

c:/mingw/bin/../lib/gcc/mingw32/4.8.1/../../../../mingw32/bin/ld.exe: final link
 failed: Invalid operation
collect2.exe: error: ld returned 1 exit status
Run Code Online (Sandbox Code Playgroud)

我多次安装并重新安装 MinGW 以试图解决该问题,但无济于事。我尝试使用

#include <windows.h> 
Run Code Online (Sandbox Code Playgroud)

以及。我尝试安装 64 位 .dll 文件 - 没有。如果有人以前经历过这种情况,或者熟悉我的问题,欢迎提供帮助。谢谢你。我猜我需要对“链接”做一些事情,但我真的不明白为什么“glut.h”应该与“gl.h”或“glu.h”有什么不同。太令人沮丧了!

更新:

我试图链接一些东西。首先我这样做:

C:\code\cpp>g++ -c -o GLtest1.exe GLtest1.cpp -I"C:\MinGW\include"
Run Code Online (Sandbox Code Playgroud)

一切顺利。没有错误。然后我尝试将事情联系起来并最终出现错误:

C:\code\cpp>g++ -o …
Run Code Online (Sandbox Code Playgroud)

c++ windows glut freeglut windows64

5
推荐指数
1
解决办法
9550
查看次数

如何在window 64位下安装pymqi?

我正在尝试在 Windows 64 位计算机上安装 pymqi。

“pip install pymqi”给出错误

Collecting pymqi
  Using cached https://files.pythonhosted.org/packages/15/d9/b5babbd3f296b47a9d8bca417ca185ede9e8780ce4ca6b66bbf2dd1b7880/pymqi-1.9.2.tar.gz
Installing collected packages: pymqi
  Running setup.py install for pymqi ... error
    Complete output from command C:\Users\xxxxxxxxx\.virtualenvs\BBG_IBM_MQ_connection\Scripts\python.exe -u -c "import setuptools, tokenize;__file__='C:\\Users\\xxxxxxxxx\\AppData\\Local\\
Temp\\pip-install-1qy7i0yt\\pymqi\\setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --recor
d C:\Users\xxxxxxxxx\AppData\Local\Temp\pip-record-hhuxyqkh\install-record.txt --single-version-externally-managed --compile --install-headers C:\Users\xxxxxxxxx\.virtualenvs\BBG_IBM_MQ_con
nection\include\site\python3.7\pymqi:
    Building PyMQI client 64bits
    running install
    running build
    running build_py
    creating build
    creating build\lib.win-amd64-3.7
    creating build\lib.win-amd64-3.7\pymqi
    copying pymqi\__init__.py -> build\lib.win-amd64-3.7\pymqi
    copying pymqi\CMQC.py -> build\lib.win-amd64-3.7\pymqi
    copying pymqi\CMQCFC.py -> build\lib.win-amd64-3.7\pymqi
    copying pymqi\CMQXC.py -> …
Run Code Online (Sandbox Code Playgroud)

python windows64 python-3.x ibm-mq pymqi

5
推荐指数
1
解决办法
6555
查看次数

"命令行太长" - 运行maven测试时

$mvn test在64位Windows上运行会给我以下错误,即使我这样做$mvn test -Dgwt.genParam=false:

The command line is too long
Run Code Online (Sandbox Code Playgroud)

java gwt windows64 maven

4
推荐指数
1
解决办法
2115
查看次数

NASM中的RDTSCP始终返回相同的值

我正在NASM中使用RDTSC和RDTSCP测量各种汇编语言指令的机器周期,以帮助优化。

我读了Intel的Gabriele Paoloni撰写的“如何在Intel IA-32和IA-64指令集体系结构上对代码执行时间进行基准测试”(2010年9月)和其他Web资源(其中大多数是C语言中的示例)。

使用下面的代码(从C转换),我测试了各种指令,但RDTSCP在RDX中始终返回零,在RAX中始终返回7。我首先认为7是周期数,但显然并非所有指令都需要7个周期。

rdtsc
cpuid
addsd xmm14,xmm1 ; Instruction to time
rdtscp
cpuid
Run Code Online (Sandbox Code Playgroud)

返回7,这并不奇怪,因为在某些体系结构上,添加了7个周期(包括延迟)。前两个指令(根据某些情况)可以颠倒,先是cpuid,然后是rdtsc,但这在这里没有什么区别。

当我将指令更改为2周期指令时:

rdtsc
cpuid
add rcx,rdx ; Instruction to time
rdtscp
cpuid
Run Code Online (Sandbox Code Playgroud)

这还会在rax中返回7,在rdx中返回零。

所以我的问题是:

  1. 如何访问和解释RDX:RAX中返回的值?

  2. 为什么RDX总是返回零,应该返回什么?

更新:

如果我将代码更改为此:

cpuid
rdtsc
mov [start_time],rax
addsd xmm14,xmm1 ; INSTRUCTION
rdtscp
mov [end_time],rax
cpuid
mov rax,[end_time]
mov rdx,[start_time]
sub rax,rdx
Run Code Online (Sandbox Code Playgroud)

我的rax达到了64,但这听起来像是周期太多。

optimization x86-64 nasm rdtsc windows64

3
推荐指数
1
解决办法
186
查看次数