Questions tagged [porting]

Converting existing code or executables to another programming language, environment, or architecture.

Porting is the process of converting an existing code or executable from one programming language to another, or from one framework to another framework, or from one architecture to another.

The process can be as easy as applying minimal changes to source code or executable, and could be as hard as rewriting the entire code from the scratch on the target language/environment/architecture.

It's often considered a non-standard and non-recommended way of developing applications.

See also the Wikipedia article.

1412 questions
158
votes
8 answers

What is the bit size of long on 64-bit Windows?

Not to long ago, someone told me that long are not 64 bits on 64 bit machines and I should always use int. This did not make sense to me. I have seen docs (such as the one on Apple's official site) say that long are indeed 64 bits when compiling for…
user34537
111
votes
4 answers

What causes signal 'SIGILL'?

I'm porting some C++ code to Android using NDK and GCC. The code basically runs. At one point, when debugging in Eclipse, the call Dabbler::Android::Factory* pFactory = new Dabbler::Android::Factory; causes this error: Thread [1] (Suspended: Signal…
Dabbler
  • 9,733
  • 5
  • 41
  • 64
79
votes
2 answers

How to take container snapshots in docker

How do we take container snapshots and load the snapshot in another docker host . I like to know the container snapshoting and not for image. I get confused with export/import and save/load commands in docker. I like to get more clarity or doc to…
tanmally
  • 996
  • 1
  • 9
  • 13
72
votes
3 answers

Date command does not follow Linux specifications (Mac OS X Lion)

I have been developing a script on my linux box for quite some time, and wanted to run it on my Mac as well. I thought that the functions on the Mac were the same as the functions on linux, but today I realized it was wrong. I knew that fewer…
Kaushik Shankar
  • 5,491
  • 4
  • 30
  • 36
71
votes
8 answers

How to make CREATE OR REPLACE VIEW work in SQL Server?

CREATE OR REPLACE VIEW doesn't seem to work in SQL Server. So how do I port CREATE OR REPLACE VIEW to work on SQL Server? This is what I'm trying to do: CREATE OR REPLACE VIEW data_VVVV AS SELECT VCV.xxxx, VCV.yyyy AS yyyy, …
Alexander Kalian
  • 1,059
  • 2
  • 9
  • 17
51
votes
10 answers

Can we run a C#/WPF application on Mac OS X?

I sell a C#/WPF application (targeting .net 3.0 at the moment) and people keep asking me for a Mac version. The application is a time tracking application with a good GUI, there isn't that much business logic in a time tracking application so most…
Nir
  • 29,306
  • 10
  • 67
  • 103
47
votes
2 answers

Strict Standards: Only variables should be assigned by reference PHP 5.4

I upgraded my PHP version to 5.4 (XAMPP 1.7.3 to 1.8.0). Now I see Strict Standards error, for myDBconnection: Strict Standards: Only variables should be assigned by reference in C:\xampp\htdocs\alous\include\dbconn.php on line…
BBKing
  • 2,279
  • 8
  • 38
  • 44
45
votes
10 answers

Could not load file or assembly System.Net.Http version 4.1.1.0

I'm porting a Net Framework 4 dll to Net Core. When porting my unit tests project I get an exception running some specific tests (not all). System.IO.FileLoadException: Could not load file or assembly 'System.Net.Http, Version=4.1.1.0,…
Jawen
  • 1,416
  • 1
  • 14
  • 26
43
votes
2 answers

What are the differences between a pointer and a reference in Rust?

A pointer * and a reference & in Rust share the same representation (they both represent the memory address of a piece of data). What's the practical differences when writing code though? When porting C++ code to Rust, can they be replaced safely…
Paz
  • 801
  • 1
  • 10
  • 14
38
votes
7 answers

What are the key differences between JavaScript and ActionScript 3?

I know both languages are from the same ECMA-262 standard. It seems that the two are becoming very similar with JavaScript adding event listeners for core Object instances through methods like freeze and seal in EMCAScript-262 5th edition and such.…
Todd Moses
  • 10,969
  • 10
  • 47
  • 65
37
votes
6 answers

What is equivalent of Linux's 'free' command on FreeBSD v8.1

What is equivalent of Linux's 'free' command on FreeBSD v8.1? I am calling 'free' from my application and reporting the results in my application's log file. What would be the replacement when porting to FreeBSD v8.1? Here is a sample run of 'free'…
WilliamKF
  • 41,123
  • 68
  • 193
  • 295
37
votes
10 answers

Is there any VB6 to C# migration tool?

Does anyone know a way to convert from VB6 code to C#? Is there a tool that can do this for me? Is there any migration process that I can follow to do this?
basl
  • 501
  • 1
  • 4
  • 3
31
votes
4 answers

WaitForSingleObject and WaitForMultipleObjects equivalent in Linux?

I am migrating an applciation from windows to linux. I am facing problem with respect to WaitForSingleObject and WaitForMultipleObjects interfaces. In my application I spawn multiple threads where all threads wait for events from parent process or…
Sirish
  • 9,183
  • 22
  • 72
  • 107
30
votes
5 answers

What should I use instead of windows.h in Linux?

I am trying to port a Windows program to Linux. I have never programmed in Linux and have very little idea what I am doing. I have managed to eliminate a lot of the errors I got in the G++ compiler on Linux and have traced most of the remaining ones…
Skeith
  • 2,512
  • 5
  • 35
  • 57
29
votes
3 answers

Why am I getting an error message in Python 'cannot import name NoneType'?

I'm trying to convert some code from 2 to 3 and the following simple script import types from types import NoneType Results in ImportError: cannot import name NoneType How can I convert the above from 2 to 3?
deltanovember
  • 42,611
  • 64
  • 162
  • 244
1
2 3
94 95