This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
g++ on solaris
- To: gcc at gcc dot gnu dot org
- Subject: g++ on solaris
- From: Patrick Mauritz <oxygene2k1 at crosswinds dot net>
- Date: Wed, 14 Feb 2001 15:22:05 +0100
hi all,
I have some problems with porting Berlin (www.berlin-consortium.org) to
solaris8/sparc which are probably due to bugs or incompatibilities between
g++ on several architectures
1. it couldn't compile something mmap-related with g++ which worked with gcc
the following applet (which flawlessly compiles on linux with gcc and g++)
demonstrates it:
---snip---
#include <sys/mman.h>
int main(){
void b*;
b=mmap( (void *)-1,1,1,1,1,1);
}
---snap---
it runs when #define _XPG4_2 is inserted at the beginning - but it doesn't
look like something to be triggered by the user
what's the sane way to do this?
2. pthreads produced some confusion:
on x86 and on sparc autoconf finds out that we need "-pthread" to compile
pthread executables - that's not true on sparc where "-pthreads -lposix4"
is needed
no comment on the extra library - but is there a table showing the gcc options
for several architectures/os which flag (-pthread or -pthreads) and possibly
which libraries are needed?
please CC: as I'm not on the list
TIA,
patrick mauritz
--
,------------------------------------------------------------------------.
> Fighting for peace is like fucking for virginity <
|------------------------------------------------------------------------|
> Patrick Mauritz | The Forthcoming OpenBIOS <
> oxygene@gmx.net | www.freiburg.linux.de/openbios <
I------------------------------------------------------------------------I
{ If Windows is the answer, it must have been a stupid question. }
`------------------------------------------------------------------------'
A line of code is worth a thousand words