473,811 Members | 2,856 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

KPIC makes programs running crash when libraries are recompiled

[Solaris 2.8 && Sun Studio 10]

Hi,

I have a very simple library that wraps a Timer class and a test
program linked to it.

First of all, I compile the library and the main without the KPIC flag.
Then, I execute the program and, while it's running, I add some dummy
sentence to the library and recompile it. Nothing happens to the binary
running. It keep unaware of changes in the library and keeps running.

Now, I recompile everything with KPIC and try to make the same test.
Just when the library has been recompiled, execution is broken by a
core dump.

You'd say that it has an easy solution: do not use the KPIC but I'm
trying to develop my program in 64 bits and I'm forced - as far as I
know - to compile using the KPIC flag.

Any idea of how to make it work? I can't assume to stop all my programs
after any change in the library.

Thanks in advance
Jorge Ortiz

Feb 22 '06 #1
0 1401

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
1039
by: Russell | last post by:
Hello everybody, I'm the administrator of our network and we have a problem with our Windows server 2003 standard. Recently I've installed the server on our network and promoted it to domain controller. Everything works fine. Our R&D department is developing a program that's created with c-sharp and runs in .NET (I hope my explanation is correct, because I'm not familiair with programming!)
12
3459
by: jrefactors | last post by:
If the C programs have UNIX system calls such as fork(), alarm(), etc.., we should call it UNIX programs, not traditional C programs? We couldn't compile the programs with system calls using VC++ compiler. I need to compile it under UNIX platform. correct? any other alternatives?? Please advise. Thanks!!
14
5277
by: JK Peck | last post by:
I have a fairly large Access application that ran correctly in Access 2000. After upgrading to Access 2003 (and recompiling and updating references), it reliably crashes at a certain point. If I step through the VBA code, the crash does not occur. What is different about stepping through code instead of just running it? Any idea how to find the cause? I know about where it happens, but since it is Access itself crashing, finding a...
2
378
by: jortizclaver | last post by:
Hi, I have a very simple library that wraps a Timer class and a test program linked to it. First of all, I compile the library and the main without the KPIC flag. Then, I execute the program and, while it's running, I add some dummy sentence to the library and recompile it. Nothing happens to the binary running. It keep unaware of changes in the library and keeps running.
15
1577
by: Trapulo | last post by:
Very often my VS2005 pro crashes after a debug. I run ASP.NET debug, and all works well. Then I stop it, and all it's also ok. Then, when I try to edit some code, it crashes and I need to kill it, restart, reload project, etc. it seems that the problem is with vb compiler integration, but I'm not sure. Is this a known problem? Is there some solution? I cannot spend all my time to reload VS and projects!
55
12855
by: Steve | last post by:
I have to develop several large and complex C++ hardware test programs that should work under DOS, most likely with 32-bit DOS extender. Development workstation OS would be Microsoft XP. Quite some time ago I worked in DOS, with Borland BC++ 4.1. I do not have it any more. Which compiler would you recommend me now? Which ones support serious DOS program development? Criterion should be number of available free library modules (graphic menu...
34
4479
by: NewToCPP | last post by:
Hi, Why does a C/C++ programs crash? When there is access to a null pointer or some thing like that programs crash, but why do they crash? Thanks.
2
1239
by: samslists | last post by:
So I have a python program that runs a bunch of other programs....it then loops forever, occasionally executing other programs. To run each of these programs my python code executes: subprocess.Popen(command_line, shell=True, stdout=fd, stderr=subprocess.STDOUT) where command_line is an appropriate command line. :) Now my problem is when I abort this program it kills off all the child
1
2296
by: beauwlf | last post by:
Hi I recompiled previous VC6.0 C++ MFC project with VS2008 Evaluation It could run release at the system with the VS2008 installed. But it gives "Application has failed to start because the application configuration is incorrect..." Error when i try to run at target systems. I have already installed the Dot Net 3.5 at the target System. Even if i create a MFC C++ solution from VS2008 it gives the same error.
0
9722
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10644
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10379
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
10124
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7664
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6882
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5550
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
4334
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3863
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.