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:
Tag: macos
sudo: effective uid is not 0, is sudo installed setuid root? (on mac os x 10.12)
So I’m a bit of a terminal noob so bear with me but I was trying to update brew to install something, so I ran: brew update and got Error: /usr/local must be writable! Wasn’t really sure what that was about so I tried running sudo brew update and got sudo: effective uid is not 0, is sudo installed setuid
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
Looking for a simple way to watch files, run a script, and refresh the browser
File is edited. File is saved. Bash script is run upon save. Browser refreshes itself to automatically show the changes. Windows, OS X, Linux Any suggestions? This seems like such an important thing that’s constantly overlooked, and I would greatly appreciate learning how to achieve this between all major OSes. Thanks, in advance. Answer There are a few options. One
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
‘undefined reference to’ Linker errors with latest LLVM from git (3.9.0svn) on Arch Linux
Prior to my Macbook Pro motherboard failure I was working on a programming language of mine with Flex, Bison, and LLVM. I honestly don’t recall the version of LLVM I was linking against at the time (I will try to find this out after I salvage the data from the drive), but I do know that the latest version I’m
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
ssh connection from Mac OS X shows “>” prompt and stays there
Problem – when I try to connect to an Amazon AWS EC2 linux instance through SSH, instead of connecting, it simply shows a > prompt as if asking for more info. command entered through terminal ssh -i “<private_key_path>” <user>@<host_address> when i hit enter, it just shows a > prompt. there are no errors, or messages. Just that single prompt which