Login
Username:

Password:

Remember me



Lost Password?

Register now!
Sections
Who's Online
63 user(s) are online (53 user(s) are browsing Forums)

Members: 2
Guests: 61

kas1e, nbache, more...
Support us!
Recent OS4 Files
OS4Depot.net



« 1 (2)


Re: adtools
Just popping in
Joined:
12/16 8:42
From Czech Republic
Posts: 52
@kas1e

I think it is is pretty clear now, I'm already working on the devilutionX...
the speed is kinda different as You said :D

thanks a lot

   Report Go to top

Re: adtools
Just popping in
Joined:
12/16 8:42
From Czech Republic
Posts: 52
Hi fellows

any idea what might cause this?
$ /usr/local/amiga/bin/ppc-amigaos-g++ -o hellocpp hello.cpp
/usr/local/amiga/lib/gcc/ppc-amigaos/8.2.0/../../../../ppc-amigaos/lib/libstdc++.a(ios_init.o): In function `__exchange_and_add_dispatch':
/home/pavel.bekesky/adtools/gcc/repo/libstdc++-v3/include/ext/atomicity.h:81: undefined reference to 
`__gthread_active_p'
/usr/local/amiga/lib/gcc/ppc-amigaos/8.2.0/../../../../ppc-amigaos/lib/libstdc++.a(ios_init.o): In function `__atomic_add_dispatch'
:
/
home/pavel.bekesky/adtools/gcc/repo/libstdc++-v3/include/ext/atomicity.h:95undefined reference to `__gthread_active_p'
/usr/local/amiga/lib/gcc/ppc-amigaos/8.2.0/../../../../ppc-amigaos/lib/libstdc++.a(ios_init.o): In function 
`__exchange_and_add_dispatch':
/home/pavel.bekesky/adtools/gcc/repo/libstdc++-v3/include/ext/atomicity.h:81: undefined reference to `__gthread_active_p'
/usr/local/amiga/lib/gcc/ppc-amigaos/8.2.0/../../../../ppc-amigaos/lib/libstdc++.a(locale.o): In function `__gnu_cxx::__mutex::~__mutex()':
/home/pavel.bekesky/adtools/gcc/repo/libstdc++-v3/include/ext/concurrence.h:142: undefined reference to 
`__gthread_active_p'
/home/pavel.bekesky/adtools/gcc/repo/libstdc++-v3/include/ext/concurrence.h:143: undefined reference to `__gthread_mutex_destroy'
/usr/local/amiga/lib/gcc/ppc-amigaos/8.2.0/../../../../ppc-amigaos/lib/libstdc++.a(locale.o): In function `__gnu_cxx::__mutex::unlock()':
/home/pavel.bekesky/adtools/gcc/repo/libstdc++-v3/include/ext/concurrence.h:161: undefined reference to 
`__gthread_active_p'


I had to reinstall adtools in cygwin and I'm getting this when trying to recompile simple hello world code:
#include <iostream>
using std::cout;
using std::endl;

int main()
{
std::cout << "Hello cross-compiled c++ World!" << endl;
}


C lang code with gcc works fine...

thanks

   Report Go to top

Re: adtools
Just can't stay away
Joined:
2006/11/30 11:30
From Finland
Posts: 1648
@NoCache

Just add -athread=single to the compiler flags.

If you are compiling code using C++ threads then you will want to use -athread=native instead (the above code doesn't).

   Report Go to top

Re: adtools
Just popping in
Joined:
12/16 8:42
From Czech Republic
Posts: 52
@salass00

Ah, I forgot this option, thanks ;)

   Report Go to top

Re: adtools
Home away from home
Joined:
2007/9/11 11:31
From Russia
Posts: 5241
@NoCache
And -lpthread at end too if you will use -athread=native. Pure -athread=native may still fail without -lpthread


Edited by kas1e on 2019/5/16 14:55:34
Edited by kas1e on 2019/5/16 14:56:07
_________________
Join us to improve dopus5!
zerohero's mirror of os4/os3 crosscompiler suites
   Report Go to top


« 1 (2)



[Advanced Search]


Powered by XOOPS 2.0 © 2001-2016 The XOOPS Project