porting

Is there STDCALL in Linux?

半腔热情 提交于 2019-11-28 19:29:43
I'm trying to port a Windows app to Linux. This appplication marks some functions with the __stdcall attribute. However, i was told by a friend that stdcall is used only on windows and has no meaning in linux (but DOES exist in Windows GCC). I tried to search Google about that, and got some results state that there IS stdacll in Linux. So... ?? Besides, for GCC I saw 2 implementations for that: __attribute__((__stdcall__)) and __attribute__((stdcall)) (without the underscores near stdcall). Which one is preferred (If applied to Linux at all)? Thanks! The simplest solution is to just define _

What's “in” and “out” of OpenGL-ES? (Porting from OpenGL)

半腔热情 提交于 2019-11-28 17:40:31
问题 It seems that all of the documentation I can find about OpenGL-ES says something to the effect of "OpenGL-ES is just like OpenGL, but without a lot of stuff. For example, there's no glBegin or glEnd." Ok, that's great. So, what ELSE isn't there any of? Or is there a list of what's in ? Or maybe a porting guide? (Specifically, I'm trying to move an existing GL app to the iPhone, although I don't want to necessarily limit my Q to the iPhone.) 回答1: The "OpenGL ES 1.1.12 Difference Specification"

What causes signal 'SIGILL'?

折月煮酒 提交于 2019-11-28 14:04:44
问题 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 'SIGILL' received. Description: Illegal instruction.) 1 <symbol is not available> 0x812feb44 What does that mean? Has the compiler generated illegal code for some reason? I have a breakpoint in the constructor (which does nothing), and it's not hit

What is the Windows equivalent of the Unix function gmtime_r?

时间秒杀一切 提交于 2019-11-28 13:31:11
I am porting some Unix code into Windows Visual Studio 2010. I have run into the following line gmtime_r(&now, &tm_time); I found that gmtime_r() is a standard Unix function, but I am hoping to find the Windows equivalent. I found quite a few gmtime functions in time.h, but I am having trouble finding which one is equivalent, if it even exists. Could someone point me in the right direction? gmtime_r() is the thread-safe version of gmtime(). The MSVC implementation of gmtime() is already thread safe, the returned struct tm* is allocated in thread-local storage. That doesn't make it immune from

Porting AWT graphics code to Android

余生长醉 提交于 2019-11-28 13:26:37
We would like to use some of our existing Java AWT graphics code on the Android platform. As far as I can tell, Android does not include any of the AWT classes -- no Graphics2D , Path2D , FontMetrics , etc. What is the best approach to port our drawing code to Android? Ideally, we would like to modify our code base to target both Android and generic Java. The android platform supports a small subset of awt. By small, I mean it supports awt fonts. Going from java swing (are you really just using awt as a standalone UI?) to Android is going to be a shock to the system. One defines Android's UI

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

余生长醉 提交于 2019-11-28 09:36:47
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, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040) This is the project.json for my dll { "version": "1.0.0-*", "dependencies": { "log4net": "2.0.7", "NETStandard.Library": "1.6.1", "Newtonsoft.Json": "9.0.1",

Node.JS Not working on the internet

白昼怎懂夜的黑 提交于 2019-11-28 08:36:33
i have the basic webserver hello world app for nodejs on windows and it works on localhost. But when i test it from the internet it cannot connect. I set up port forwarding in my netgear router. Am i missing a step here to make my nodejs server visible to the outside world? Thanks. var http = require('http'); http.createServer(function (req, res) { res.writeHead(200, {'Content-Type': 'text/plain'}); res.end('Hello World\n'); }).listen(1337, "127.0.0.1"); console.log('Server running at http://127.0.0.1:1337/'); Bryan Boettcher Make sure you listen on 0.0.0.0 instead of 127.0.0.1 127.0.0.1 is a

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

我的梦境 提交于 2019-11-28 07:11:54
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 of the application is GUI - rewriting just the GUI is equivalent to rewriting the entire application I don't have the resources to rewrite the application or maintain two different code bases, so I need a way to run the same code on a Mac (I know I'll have to debug and modify the code, what I mean is I can support only one code base, I can't split

porting libcurl on android with ssl support

自闭症网瘾萝莉.ら 提交于 2019-11-28 07:04:42
I am trying to port libCurl to android with SSL support, step one would be to port the curl without ssl support I guess so I started doing that. but I run into a problem. as I read on the dev website and in the Android.mk file, the hard part is configuring the make first. so what I did is : Download Android Source code (and compile it! since some of the intermediate libs are needed) Download cURL unpack curl under : {android_src}/external/curl make the configure script for curl by creating a sh file in the external/curl folder with this content. ` export A=/home/user/Development/AOSP/2.3.3

What's the equivalent of Windows' QueryPerformanceCounter on OSX?

不打扰是莪最后的温柔 提交于 2019-11-28 06:19:39
I'm porting a library from Windows to *NIX (currently OSX), does anyone now what function can I use instead of Microsoft's QueryPerformanceCounter and QueryPerformanceFrequency? http://www.tin.org/bin/man.cgi?section=3&topic=clock_gettime (and the other functions mentioned there) - it's Posix! Will fall back to worse counters if HPET is not existent. (shouldn't be a problem though) http://en.wikipedia.org/wiki/High_Precision_Event_Timer Resolution should be about +10Mhz. On OSX mach_absolute_time and mach_timebase_info are the best equivalents to Win32 QueryPerformance* functions. See http:/