Quantcast
Channel: 素心如何天上月 » sunstudio
Browsing latest articles
Browse All 4 View Live

SunStudio C/C++ compiler can not initialize the pointer member within a...

#include<stdio.h> #pragma pack(1) struct foo{        char a;        char *str;}; int main(){        struct  foo bar={'a', "test"};        printf ("%p, %p\n", &(bar.a), &(bar.str));} $ cc...

View Article



Image may be NSFW.
Clik here to view.

SunStudio 12 released, but VLA in C++ is still not supported :(

SunStudio 12 was released, it resolved my 2nd problem listed in my blog "2 Tips of C++ Programming with const", but VLA in C++ is still not supported yet

View Article

build scipy-0.6.0 on Solaris with SunStudio 12

I finally got some clues about how to build scipy with SunStudio and Sun Performance library from this discussion thread. And here are the steps I sumerized: 1. Download the source tar file of scipy,...

View Article

build matplotlib-0.98.3 on Solaris with SunStudio 12

1. Set the CBE environment (/opt/jdsbld/bin/env.sh), and export CC=$CXX, so that /usr/lib/python2.4/pycc would eventually use the C++ compiler in SunStudio. 2. Download the source code from...

View Article
Browsing latest articles
Browse All 4 View Live




Latest Images