Skip to content
Advertisement

Tag: macos

qmake match linux and mac separatly

I’m creating a .pro file for both Mac and Linux platform. I will link the qca framework on Mac, and libqca on Linux However, the unix part matches both mac and linux, any ideas? Answer You can use the colon : to take a product (logical-and) of multiple conditions, some of which may be negated:

On a Mac can Mono be used to build with winsock2.h?

Want to practice with some Microsoft specific tools; specifically winsock2.h. I know Mono can be used to make C# programs, but before doing the install I hope to find out if it does more than that. Answer For APIs like winsock2.h, you’re talking about the direct win32 API and related libraries. Mono/C# provides higher-level networking APIs via the language run-time

Check architecture for Linux and Mac

I’m trying to get the architecture of the computer executing my software, and so far it is working nice on Windows, but it fails on Linux and OSX. Let me show my current code: Linux and Mac always return “Processor is 32-bit”, so I guess that those environment variables are unused outside Windows. I’ve been googling for a couple of

Building C with automake under OS X and Linux

Currently I’m writing a RPC system for delay tolerant networks based on the Serval project from Australia (GitHub) in C. Mainly I’m developing on macOS El Capitan and everything works fine. But it is somewhat important that my code runs on macOS and Linux. But Linux makes trouble. I choose automake as my build system since this is the only

is default port numbers are alwasy 4 digit [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers. This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question

Python Using Fileinput to Replace Words

I am using Python 2.7 with MAC OS X and wrote a program to replace a word in a file with another word. Any time that word shows up in that file I want it replaced with another word that the user specifies. It seems to be working but it seems to be outputting a couple extra lines on the

Advertisement