portability
How to include PostgreSQL-specific code within portable SQL?
In MySQL it is possible to include MySQL-specific SQL-statements within generic/standard SQL by using a specific comment syntax such as follows:[详细]
2023-03-25 15:10 分类:问答Cross-compile with relative pathnames - for binary portability/embeddability? (GCC)
Say I am creating an application bundle with some scripts, maybe a daemon, or even a helper binary...When compiling such a binary.. is it feasible to ./configure/make it with only relative paths?For e[详细]
2023-03-25 03:53 分类:问答Simple C code works fine on HPUX but segfaults on Linux. Why?
I have not done any serious C in a long, long time and would appreciate a quick explanation.The following code compiles and runs fine on HP/UX.It compiles without any warning on GCC 4.3.2 in Ubuntu (e[详细]
2023-03-21 06:28 分类:问答Portability of using stddef.h's offsetof rather than rolling your own
This is a nitpicky-details question with three parts.The context is that I wish to persuade some folks that it is safe to use <stddef.h>\'s definition of offsetof unconditionally rather than (un[详细]
2023-03-20 15:53 分类:问答C++ : Writing doubles in a file with more precision than default
I want to write doubles to a file but the string cast reduces the precision. Edit : I don\'t really cast but put the doubles in an ostringstream.[详细]
2023-03-19 21:04 分类:问答Seeded python random produces different numbers on Mac and Windows
I am involved in a python application that will be running on Mac and Windows, packed into executables with py2app and py2exe. It is important that all apps generate the same random numbers at all tim[详细]
2023-03-18 22:14 分类:问答Fencepost conditions and portability for using of snprintf()?
Given the following code: const int size = 20; char buffer[size]; // From the Linux man page for snprintf():[详细]
2023-03-18 07:08 分类:问答Switched to a Linux Environment, now fscanf doesn't work
I have a program that works when compiled in Windows with both Visual Studio and CodeBlocks, but when I compile it in Kubuntu using QT Creator, the fscanf functions don\'t work the same way.[详细]
2023-03-17 09:38 分类:问答Alternatives to ppl
In my previous question I\'ve asked, I touched the parallel_for subject from ppl.h provided by Microsoft.[详细]
2023-03-16 16:41 分类:问答#! /usr/bin/env and process names: portability at a price?
There are lots of good reasons to use #! /usr/bin/env. Bottom line: It makes your code more portable. Well, sorta. Check this out....[详细]
2023-03-16 03:47 分类:问答
加载中,请稍侯......