Operating System - HP-UX
1833871 Members
1656 Online
110063 Solutions
New Discussion

problems occur when compiling with -mt

 
SOLVED
Go to solution
Shi Yiyu
Occasional Contributor

problems occur when compiling with -mt

System: HP-UX aihp001 B.11.00 A 9000/800
Compiler: aCC 3.30

Two very simple files:
------------------head.h-----------------
#include

void ok()
{
std::cout<< "shiyy" << std::endl;
}

-----------------------------------------
------------------main.cpp---------------
#include "./head.h"

using namespace std;

int main()
{
cout << "ok" << endl;
return 0;
}

-----------------------------------------

%aCC -AA -mt main.cpp
Error 698: Exact position unknown; near ["main.cpp", line 5]. # The declarations "void
*__throwTp_Q2_4__rw17__rw_thread_error[5]" and "void *std::__throwTp_Q2_4__rw17__rw_thread_error[5]" are
both visible and neither is preferred under the name lookup rules.
Error 698: Exact position unknown; near ["main.cpp", line 5]. # The declarations "void
*__throwTp_Q2_4__rw17__rw_thread_error[5]" and "void *std::__throwTp_Q2_4__rw17__rw_thread_error[5]" are
both visible and neither is preferred under the name lookup rules.

If I just use "aCC -AA main.cpp", all is ok.
why?
Thanks...................
Stone
2 REPLIES 2
Olav Baadsvik
Esteemed Contributor
Solution

Re: problems occur when compiling with -mt


Hi,

With version 3.34 of aCC I am not able
to reproduce your problem.
I advise you to upgrade to this version.

Regards
Olav
Olav Baadsvik
Esteemed Contributor

Re: problems occur when compiling with -mt


Hi,

You get version 3.34 by first installing
version 3.33 from the desember 2001 application CD and then patch PHSS_26229

Regards
Olav