Comments (4)
This is only possible in c++0x (which is still unavaible in the basic g++ os osx)
this doesn't compile on osx (you need a decent compiler)
#include
unsigned char * allocateandfill (int n) {
unsigned char *p=new unsigned char[n] {'\x01','\x02'};
return p;
}
int main () {
int n=100;
unsigned char *p=allocateandfill(n);
for (int i=0;i<n;i++) {
std::cerr << i << "\t" << (int)p[i] << std::endl;
}
}
from neutrino.
ok it seems to be possible using macports, but you have to do this:
sudo port select --list gcc
sudo port select --set gcc mp-gcc48
and -std=c++11 flag should be turned on
from neutrino.
In fact qmake wants to build with system gcc...
so you need to hack the neutrino.pri to force new compiler and this break the compilation (probably because QT is built upon gcc4.2)
and add these to neutrino.pri to tackle the default qmake definitions
QMAKE_CC = gcc
QMAKE_CXX = g++
QMAKE_LINK = $$QMAKE_CXX
QMAKE_LINK_SHLIB = $$QMAKE_CXX
worth the candle?
from neutrino.
done with memcpy
from neutrino.
Related Issues (20)
- writing tiff on mavericks crashes HOT 4
- follower is broken HOT 1
- phase vs. fringeshift HOT 2
- colormin and colormax per image HOT 1
- cancel progess bar in abel inversion crashes HOT 1
- histogram not updated HOT 1
- future PyQt4 problems HOT 2
- [leak] phys_resurrect_binary
- debian compile (g++ (Debian 4.7.2-5) 4.7.2) HOT 1
- Status of Python Scripting? HOT 10
- Bug: anymap.h "accessing uninitialized value" HOT 1
- Python scripting: Cleanly exit Neutrino?
- Bug? Memory swells upon repeated (overwriting) Wavelet/Inversion analyses HOT 2
- Provide AppImage for download HOT 1
- PythonQt available on win32/osx/linux
- fits win32
- hdf5 win32
- Documentation for building Neutrino? HOT 1
- pythonqt to correctly corraborate with neutrino garbage collector
- How to cite Neutrino in academic work?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from neutrino.