cross-platform

C++ Cross Platform Dynamic Libraries; Linux and Windows

Hey guys I needed some help on writing cross-platform code but not an application but a library. I am creating a library both static and dynamic with most of the development done in Linux, I have got the static and shared library generated in Linux but now wanted to generate a windows version of a static and dynamic library in the form ...

Developing Windows applications on Linux?

My primary OS is Linux, but now I'm forced to write some C++ applications for Windows. I was thinking about developing on the Linux box with cross platform libraries like WxWidgets (and some care about other platform dependencies) and then cross compiling the result to mingw target. So the tools I'm thinking of using are g++ for compi...

Get system specific line break in .net

Is there a way to get the current systems line break character(s) in the .net framework? ...

Portable command execution syntax implemented in Python

Python is not a pretty good language in defining a set of commands to run. Bash is. But Bash does not run naively on Windows. Background: I am trying to build a set of programs - with established dependency relationships between them - on mac/win/linux. Something like macports but should work on all the three platforms listed. This beg...

Getting system font properties in Java/Swing

I am working on a Java application using Swing and I want to set up the GUI using the "proper" fonts and font sizes. With proper I mean the fonts (+size) as defined by the user, so that my application will fit right in to the user's screen setup (resolution / font size combination) without having to provide my own custom settings. My app...

PDF creation - Tags - Authouring

This is so vague it's ridiculous but who knows... We have got this client who will not budge - they are supplying PDF files auto generated by their own software. These files don't import into our (printing) lab management software - made by kodak. So I emailed Kodak the error log and relevant files and got this back.. DP2 supports th...

Why is it difficult to write portable C programs?

Hi, I want to know, why is it too hard to make a program run in many OSes, like Windows and Linux, without including glue code. They all share the same architecture (x86), so I think it should be simple. Furthermore, C is standardized, so why are implementations diferent in these OSes? Why is it hard to follow the standard and implement...

Mutliplatform development with C#

Possible Duplicate: Is Mono ready for prime time? I have a few questions that are related to each others. What strategy do you use for creating applications in C# that work on Windows, Linux and Mac? I know that mono is probably the right tool, but what is your work flow like? Do you develop in Visual Studio and then try to po...

Building project involving cmake, how do I make it aware of libraries

When I try to build this project with cmake and gcc on a 64-bit linux (debian) machine, I get an error from the linker: Linking C executable ../../../../cpsadamsx /home/dala/lib64/libSimTKcommon.so: undefined reference to `dlopen' /home/dala/lib64/libSimTKcommon.so: undefined reference to `dlclose' /home/dala/lib64/libSimTKcommon.so: un...

Installer generator written in Java?

I'm looking for a free cross-platform installer generator that is fully Java-driven (meaning workflow and plugins are written in Java). Ideally the installer should download the JRE on-demand instead of bundling it directly into the installer. Does something like this already exist? Please note that InstallAnywhere no longer offers a fr...

How can I embed a PDF viewer in a cross-platform C++ application?

I need to embed a PDF viewer in my application. Is there any free software I can use? Thanks. ...

AIX/XP Curses get key/modifier key in a cross platform fashion.

Hello All. I am working on a simple console app to get my feet wet with curses again. I am having a bit of a problem porting my app from xp to AIX. Here is a sample chunk of code. int main(void) { WINDOW *_window = initscr(); int _rows; int _cols; cbreak(); /* Accept all keys */ keypad(_window, true); ...

Debate on Speed compare: JavaScript, Flash, Silverlight, C++, C#, ASM

We are trying to compare 7 different programming technologies for browser based client applications. Please give your thoughts on this speed comparison. What will the future bring? Will HTML5 replaces Flash and Silverlight in the browser or will JavaScript always be too slow for any CPU intensive applications. Could Roozz plugin comp...

Message-dispatch system in C that doesn't break strict aliasing and alignment

I'm writing an embedded control system in C that consists of multiple tasks that send messages to each other (a fairly common idiom, I believe!), but I'm having a hard time designing a mechanism which: is neat is generic is relatively efficient most importantly: is platform independent (specifically, doesn't violate strict-aliasing or ...

The condition field (ARM ISA) and its applicability to managed code JIT

After working with the ARM instruction set for a bit after heavy X86 work in the past, I'm pondering something for the CIL AOT/JIT compiler I'm working on. My intermediate representation is a fixed-width expansion of the CIL byte code with a couple extra opcodes. Here's an example of a situation that arises in the JIT, and two possible s...

Does the POSIX module in the standard Perl distribution work in Win32/64?

I was wondering whether using POSIX.pm would make my Perl code less cross platform. From reading the documentation it's not very clear how well it's supported on Win32/64 Perl implementations. Is it wise to rely use POSIX.pm if one cares about portable code? ...

Case-insensitive File.equals on case-sensitive file system

I have a file path in String form. In Java, I need to determine if that file exists on the file system (and our code needs to be cross-platform as it runs on Windows, Linux and OS X). The problem is that the case of the file path and the file itself may not match, even though they do represent the same file (presumably this is because t...

Cross platform CSS

Hi, I want to know does CSS behaviour changes with different operating system. My css is working bit different for vista and win xp proffesional for same version of browser. I was testing my application on vista + ie8 and xp + ie8. It worked bit different. ...

What is the most painless and multi-platform way to use scripting?

Hello! What is the most painless and multi-platform way to use scripting?... ...for things such as Compilation Web application deployment Web server controlling Other misc. tasks around web servers... NOTE: I'm in the Java ecosystem. Sure, there is Apache Ant, which is pretty multi-platform, but it isn't scripting. ...

Handling encoded cookie values in C#

According to RFC 2109, the value of a cookie "is opaque to the user agent and may be anything the origin server chooses to send, possibly in a server-selected printable ASCII encoding." As a consequence of this, different languages/platforms/server send a different cookie value even when the original value is the same. For example, C#/...