compilation

How to compile dll loadable in tcl

泪湿孤枕 提交于 2019-12-21 19:54:06
问题 After trying many and searching web option to compile and load dll I could not able to create dll for tcl. Can you explain me how to do this. 回答1: Ok, here is a simple example. This code compiles and works for Tcl8.5 and VS2008. To start with I created a WIN32 dll project called BasicTclExtn that exported symbols. // BasicTclExtn.h #ifdef BASICTCLEXTN_EXPORTS #define BASICTCLEXTN_API __declspec(dllexport) #else #define BASICTCLEXTN_API __declspec(dllimport) #endif int BasicExtnCmd(ClientData

MySQL and Matlab

我的梦境 提交于 2019-12-21 19:40:28
问题 I want to interact with a MySQL database from Matlab. I found a mysql "library" for matlab here and the same on mathworks. I followed the instructions to compile the library and the compilation seems to be successful. I get a mex32 file at the end. Only, the instructions on the first page refer to a Dll that I need to use (I guess that a Dll was supposed to be generated). I am not familiar with the mex compiler or with compiling external modules for Matlab. Am I missing something trivial?

Compiling libpq with iOS SDK 4.2

坚强是说给别人听的谎言 提交于 2019-12-21 19:33:06
问题 I'm trying to compile again the libpq for arm and i386 with the iOS SDK 4.2. I did last year for SDK3.x without any problems. Now, when I want to create the fat binary file with two files, I'm getting this error: specifed architecture type (arm) for file (/Users/montx/mylibs_sdk42/libpq.arm) does not match its cputype (7) and cpusubtype (3) (should be cputype (12) and cpusubtype (0)) I'm compiling again because my compiled files doesn't work with the latest iOS4.2 Detected an attempt to call

Compiling libpq with iOS SDK 4.2

我与影子孤独终老i 提交于 2019-12-21 19:33:03
问题 I'm trying to compile again the libpq for arm and i386 with the iOS SDK 4.2. I did last year for SDK3.x without any problems. Now, when I want to create the fat binary file with two files, I'm getting this error: specifed architecture type (arm) for file (/Users/montx/mylibs_sdk42/libpq.arm) does not match its cputype (7) and cpusubtype (3) (should be cputype (12) and cpusubtype (0)) I'm compiling again because my compiled files doesn't work with the latest iOS4.2 Detected an attempt to call

gcc: No space left on device?

一曲冷凌霜 提交于 2019-12-21 19:21:31
问题 I'm trying to make some C code with a simple gcc command in Ubuntu 10, but for some reason, I keep getting an error: Cannot create temporary file in /tmp/: No space left on device The thing is, though, I have plenty of space on the disk. Here is output of df -h: Filesystem Size Used Avail Use% Mounted on / 3.7G 2.4G 1.1G 70% / devtmpfs 312M 112K 312M 1% /dev none 312M 24K 312M 1% /dev/shm none 312M 80K 312M 1% /var/run none 312M 0 312M 0% /var/lock none 312M 0 312M 0% /lib/init/rw And df -i,

zipalign verification failed resources.arsc BAD-1

懵懂的女人 提交于 2019-12-21 17:15:38
问题 I try to upload my app to gplay but fail because my apk doesn't zipaligned. i try to zipalign but i got verification failed. really don't have idea, someone please tell me what to do. thanks in advance. 回答1: No need to manually, do this: buildTypes { release { minifyEnabled true proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro' zipAlignEnabled true //uncomment for automatically zip aligned by studio } } build.gradle set classpath 'com.android.tools

Is tooling available to 'assemble' WebAssembly to x86-64 native code?

廉价感情. 提交于 2019-12-21 17:15:36
问题 I am guessing that a Wasm binary is usually JIT-compiled to native code, but given a Wasm source, is there a tool to see the actual generated x86-64 machine code? Or asked in a different way, is there a tool that consumes Wasm and outputs native code? 回答1: The online WasmExplorer compiles C code to both WebAssembly and FireFox x86, using the SpiderMonkey compiler. Given the following simple function: int testFunction(int* input, int length) { int sum = 0; for (int i = 0; i < length; ++i) {

stdexcept On Android

≡放荡痞女 提交于 2019-12-21 17:01:57
问题 I'm trying to compile SoundTouch on Android. I started with this configure line: ./configure CPPFLAGS="-I/Volumes/android-build/mydroid/development/ndk/build/platforms/android-3/arch-arm/usr/include/" LDFLAGS="-Wl,-rpath-link=/Volumes/android-build/mydroid/development/ndk/build/platforms/android-3/arch-arm/usr/lib -L/Volumes/android-build/mydroid/development/ndk/build/platforms/android-3/arch-arm/usr/lib -nostdlib -lc" --host=arm-eabi --enable-shared=yes CFLAGS="-nostdlib -O3 -mandroid" host

How to generate, compile and run CUDA kernels at runtime

百般思念 提交于 2019-12-21 14:19:32
问题 Well, I have quite a delicate question :) Let's start with what I have: Data , large array of data, copied to GPU Program , generated by CPU (host), which needs to be evaluated for every data in that array The program changes very frequently, can be generated as CUDA string, PTX string or something else (?) and needs to be re-evaluated after each change What I want: Basically just want to make this as effective (fast) as possible, eg. avoid compilation of CUDA to PTX. Solution can be even

Compiling a PHP extension as non-thread-safe

冷暖自知 提交于 2019-12-21 14:00:36
问题 I am trying to compile the imagemagick (imagick) extension to use in a non-thread-safe environment on windows. I am using PHP 5.3.10 and have set up Visual C++ express as my compiling environment. The problem is that I am using a non-thread-safe version of PHP as a FCGI module in Apache 2.2. Thus, my PHP is supplied with a php5.lib and not a php5ts.lib . I believe this is the reason why I am getting these errors: imagick.obj : error LNK2019: unresolved external symbol __imp__tsrm_mutex_alloc