The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > OS Specific Forums > HP-UX
Google UNIX.COM


HP-UX HP-UX (Hewlett Packard UniX) is Hewlett-Packard's proprietary implementation of the Unix operating system, based on System V.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Development Releases: Linux Mint 4.0 Beta "Fluxbox", 4.0 Alpha "Debian" iBot UNIX and Linux RSS News 0 01-04-2008 12:00 PM
Explain the line "mn_code=`env|grep "..mn"|awk -F"=" '{print $2}'`" Lokesha UNIX for Dummies Questions & Answers 4 12-19-2007 10:52 PM
how could i make a program mixed with many "|", "<" and ">" strugglingman High Level Programming 2 04-29-2006 05:11 AM
No utpmx entry: you must exec "login" from lowest level "shell" peterpan UNIX for Dummies Questions & Answers 0 01-18-2006 01:15 AM
Getting problem in linking using "ldd" mail2virag AIX 4 09-29-2005 01:03 AM

Reply
 
Submit Tools LinkBack Thread Tools Search this Thread Display Modes
  #1  
Old 10-18-2007
Registered User
 

Join Date: Mar 2007
Posts: 3
aCC runtime: Use of "-mt" must be consistent during both compilation and linking

Hi all.
I'm getting the a runtime error:

aCC runtime: Use of "-mt" must be consistent during both compilation and linking

I build my executable with -mt and I link with libraries that were compiled with -mt too (we have other executables that links with them and don't have this problem).
The problem occurs when the executable ends and is not consistent.

Sys info:
> uname -a
HP-UX hpx418 B.11.23 U ia64 1139467043 unlimited-user license
> aCC -V
aCC: HP C/aC++ B3910B A.06.13 [Nov 27 2006]



Anybody has any ideas?
I'm pretty lost here.

Thanks,
Sela.
Reply With Quote
Forum Sponsor
  #2  
Old 10-18-2007
Registered User
 

Join Date: Jan 2007
Posts: 2,965
Are these libraries static or dynamic?

Are they compiled with the same version of compiler?

Are all options the same?

Do you have "-mt" in your link line?

On HPUX I personally use

-D_REENTRANT
-lpthread
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes




All times are GMT -7. The time now is 05:18 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0