portability Questions

4

Solved

I'm trying to compile and statically link Emacs, because at work I'm forced to do JavaScript development over ssh on a production server running CentOS 5.1 with a broken package manager configurati...
Pangenesis asked 5/7, 2013 at 0:16

3

Solved

The musl team claims that there is no need of a way of detecting musl libc because they only implement standard functionality and have no quirks that need detecting. Up until today, that claim may...
Tremolite asked 1/10, 2019 at 3:52

8

Solved

Any portable code that uses bitfields seems to distinguish between little- and big-endian platforms. See the declaration of struct iphdr in linux kernel for an example of such code. I fail to under...
Vinitavinn asked 18/5, 2011 at 10:50

4

Solved

I read here that bit fields are not portable. Does that mean that the code below that defines bit fields (code taken from here) could not compile on certain machines? If so, then why? #include &l...
Gavin asked 17/8, 2014 at 2:4

10

Solved

I posted a question with my code whose only #include directive was the following: #include <bits/stdc++.h> My teacher told me to do this, but in the comments section I was informed that I ...

8

Solved

I'm working on an implementation of the memcache protocol which, at some points, uses 64 bits integer values. These values must be stored in "network byte order". I wish there was some uint64_t ht...
Girlish asked 11/6, 2010 at 12:9

6

In order to take some development work home I have to be able to run a PostgreSQL database. I don't want to install anything on the machine at home. Everything should run off the usb drive. What ...
Pathogenesis asked 8/7, 2009 at 21:1

2

Solved

How can I set up the < localRepository > tag with an environment user var. I tried this path: %myRepo%/repo but it doesn't works (myRepo=C:/maven/repo). I can't use an absolute path for portabil...
Incurious asked 21/9, 2011 at 15:55

16

Solved

What exactly is POSIX? I have read the Wikipedia article but I still don't understand.
Decay asked 23/11, 2009 at 0:42

7

Solved

I have Launch4J on my computer and it's a great program. One of its features I'm interested in is the ability to bundle a JRE in the general .EXE file. However, I can't find any documentation that ...
Persistent asked 15/8, 2011 at 21:39

3

I want to make a portable app that would have some code and python executable that would run on any Windows even if python is not installed. I would like it to be python 3.6 and so it has only pip...
Sowder asked 11/6, 2017 at 19:57

8

Solved

Is it possible to actually make use of placement new in portable code when using it for arrays? It appears that the pointer you get back from new[] is not always the same as the address you pass i...
Oxheart asked 18/8, 2008 at 21:33

4

Solved

Currently, to represent a newline in go programs, I use \n. For example: package main import "fmt" func main() { fmt.Printf("%d is %s \n", 'U', string(85)) } ... will yield 85 is U followed ...
Babette asked 24/1, 2013 at 4:15

10

I want to develop an application for both android and iOS devices. Is there a way to develop the application once and deploy on both? Or is it a must to develop for each platform separately?
Gogol asked 4/11, 2010 at 20:20

4

Solved

How do I type a floating point infinity literal in python? I have heard inf = float('inf') is non portable. Thus, I have had the following recommended: inf = 1e400 Is either of these stan...
Donalt asked 27/5, 2010 at 9:4

1

Solved

I'm asking about the format used after the password is hashed and preparing it for storage. The dollar sign $ annotation is something that seems to be widespread. Is that described in a standard so...
Mirthless asked 3/9, 2022 at 17:58

15

Solved

What is a portable way (e.g. for Linux and Windows) to get the current user's username? Something similar to os.getuid() would be nice: >>> os.getuid() 42 # Does not currently exist in Py...
Duvetyn asked 8/5, 2009 at 22:20

4

Solved

Perhaps I'm overthinking this, as it seems like it should be a lot easier. I want to take a value of type int, such as is returned by fgetc(), and record it in a char buffer if it is not an end-of-...
Polygraph asked 8/10, 2013 at 14:29

1

Solved

I recently wrote some code that uses memcpy to unpack float/double to unsigned integers of the appropriate width, and then uses some bit-shifting to separate the sign bit from the combined signific...
Feck asked 31/7, 2022 at 20:0

6

What is the correct way in the post C++11 world for setting the priority of an instance of std::thread? Is there a portable way of doing this that works at least in Windows and POSIX (Linux) enviro...
Rollway asked 19/9, 2013 at 0:33

9

Solved

Using only ANSI C, is there any way to measure time with milliseconds precision or more? I was browsing time.h but I only found second precision functions.
Whoremaster asked 11/12, 2008 at 23:9

5

Solved

I've recently coded a little program to determine numbers in a picture and it is reliant on two libraries I've used. (DLLs) Since my target computer is not allowed to install programs due to secu...
Aloft asked 3/5, 2016 at 12:30

2

Solved

In my program, I stat the files they want and send the data over. The fields of a stat struct are all special types: struct stat { dev_t st_dev; /* ID of device containing file */ ino_t st_ino; ...
Drachm asked 9/9, 2009 at 19:15

10

Solved

I am a beginner to CMAKE. Below is a simple cmake file which works well in mingw environment windows. The problem is clearly with target_link_libraries() function of CMAKE where I am linking libwso...
Ajit asked 6/2, 2012 at 12:47

8

Solved

I need to determin the byte size of a file. The coding language is C++ and the code should work with Linux, windows and any other operating system. This implies using standard C or C++ functions/...
Synopsis asked 11/3, 2010 at 10:26

© 2022 - 2024 — McMap. All rights reserved.