compilation

VBA: Access to registry while preprocessing

痴心易碎 提交于 2019-12-13 18:10:05
问题 I want to conditionally compile code in one VBAproject, with a condition that depends on some registry-entry. Is this somehow possible in VBA? I know that there are some simple preprocessing possibilites in VBA, but I can not see if it is possible to somehow access the registry while preprocessing. Or Maybe some other possibility to check the registry before compiling. Since I get a compile error because of some missing reference(and thus missing class object), I aim to check the registry

Compile PHP with cURL fail

若如初见. 提交于 2019-12-13 17:27:34
问题 I am manually compiling PHP (7.0.7) and cURL (7.49.1) on Ubuntu. The following error is seen during PHP compilation: checking for cURL support... yes checking for cURL 7.10.5 or greater... libcurl 7.49.1 checking for SSL support in libcurl... yes checking how to run the C preprocessor... cc -E checking for openssl support in libcurl... no checking for gnutls support in libcurl... no checking for curl_easy_perform in -lcurl... no configure: error: There is something wrong. Please check config

How do I compile code for a setup with older linux kernel?

帅比萌擦擦* 提交于 2019-12-13 16:33:56
问题 I am running Fedora 12 that runs on 2.6.31 linux kernel. and have to compile some code run the binary on 2.6.11 kernel(supported by FC4). Is there a way to do the same, without having to install FC4 or have a virtual machine running FC4? Also, When you print file info of an elf image using file command, why does the part 'for GNU/Linux ', show an older kernel version? For example, for me, on 2.6.31 kernel, it says compiled for 2.6.18, on 2.6.11 it says compiled for 2.2.5. This is the kernel

iphone: co-processor offset out of range

末鹿安然 提交于 2019-12-13 16:03:58
问题 i have a strange compiling problem with xcode and iphone. my game is almost finish but now i got suddently this compiling error: {standard input}:6108:co-processor offset out of range gcc-4.2 failed with exit code 1 this only happens if i compile the release version for the device. the debug version and both versions for the simulator works. clean targets and recompile don't work. strangly enough that error only happens if i add a line of code to one specific source file and only between

How can I compile this very big, but boring C source?

痞子三分冷 提交于 2019-12-13 15:26:27
问题 The central function in my code looks like this (everything else is vanilla input and output): const int n = 40000; double * foo (double const * const x) { double * y = malloc (n*sizeof(double)); y[0] = x[0] + (0.2*x[1]*x[0] - x[2]*x[2]); y[1] = x[1] + (0.2*x[1]*x[0] - x[2]*x[2]); // … // 39997 lines of similar code // that cannot be simplified to fewer lines // … y[40000] = 0.5*x[40000] - x[12345] + 5*x[0]; return y; } Assume for the purpose of this question that hard-coding these 40000

How to have both VCL and FMX in one application?

99封情书 提交于 2019-12-13 15:04:49
问题 I have a VCL application and pretty isolated VCL code. I would like to include Fire Monkey forms for Mac OSX support. I plan using heavily IFDEF to determine should I build for Windows with VCL or for Mac OSX with FireMonkey. Unfortunately there is no way to add MacOS platform from the Project Manager if the application is VCL one. Is there a way to hack this somehow? Maybe manually tweak the .dpr and .dproj files? 回答1: What about doing it the other way around: start with a FireMonkey

TeamCity - Where is the automation

♀尐吖头ヾ 提交于 2019-12-13 14:28:25
问题 We installed TeamCity and TFS and they work fine. My question is how are these two supposed to make our workflow efficient? Once I make changes to code on my dev machine, I have to go to TeamCity UI to run the builds and tests? Where is the automation in this.. I am manually doing it anyway... am I missing an important piece here? I can run builds and unit tests on my dev machine too. All developers making changes, need to go to TeamCity UI to build with updated code? I was kind of expecting

All Eclipse C++ Programs Fail to Run, Hangs on “Launching Delegate”

て烟熏妆下的殇ゞ 提交于 2019-12-13 14:18:35
问题 A few days ago, Eclipse for C/C++ (Helios) stopped running my programs. They can be compiled with MinGW without displaying any errors. However, when the programs are run, Eclipse always get stuck at "Launching Delegate" at 70%. No matter how long I wait, the program never starts. The same happens when I try to run the program from the command line; no matter how simple the program, the command line just does nothing, as if it is waiting for the program to start. I believed that this was just

Cannot use g++ for compiling

旧街凉风 提交于 2019-12-13 14:08:55
问题 right now I try to use a opensource tool called " GAUL " where some genetic algorithms are implemented. By compiling the example files I figured out that I can only compile these data via using gcc but not g++. E.x.: 1) Using gcc -I /usr/local/include/ -c wildfire_threat.c -o test.o gcc** -g -O2 -Wall -o test2.out test.o -lgaul -lgaul_util -lm -lpthread -lslang -lm works also the combination gcc -I /usr/local/include/ -c wildfire_threat.c -o test.o g++ -g -O2 -Wall -o test2.out test.o -lgaul

Compile ffmpeg as stand alone binary

泄露秘密 提交于 2019-12-13 13:43:11
问题 I'm trying to compile ffmpeg as a standalone binary (because I want to use it in AWS lambda) I can get things to work fine on the server where I'm compiling, but if I copy the binary and run it from another server, I get: ./ffmpeg: error while loading shared libraries: libvdpau.so.1: cannot open shared object file: No such file or directory So it sounds like something didn't made it into the binary. From what I've read, I've to compile ffmpeg with the flags --disable-shared and --enable