Operating System - HP-UX
1834469 Members
3248 Online
110067 Solutions
New Discussion

Re: general compiler questions

 
Finn Knudsen
New Member

general compiler questions

We are a bit short on unix system knowledge at my present position, and being somewhat of a newbie on HP unix, I have some general questions that I hope someone can answer, that concerns the use of the aCC compiler.

Is it possible to link two shared libraries where one is PA-RISC1.1 and the other PA-RISC2.0

I have found a warning somewhere on hp.com against using both arcieved libraries and shared libraries in the same executable. Is this correct.

The general problem we are facing is an application that dies with random memory faults. So any suggestions on this that people may have would be welcome. The application is written in C++ (compiled with aCC ) but also calls libraries written in C ( and compiled with the CC compiler ).

1 REPLY 1
Deepak Extross
Honored Contributor

Re: general compiler questions

<>
Never tried this, but the linker should kick up a warning at least. I wouldn't recommended this kind of mix 'n match.

<>
Can you give me the URL for this? I've linked a single exectables to both .sl's and .a's without event. Reason being, some libraries keep changing, and I dont want to recompile them each time. So I use those as shared libraries, and the others as statically linked archives.

<>
Your best bet would be to use a standard debugger like gdb to zero in on the problem.

Good luck