Sponsored Content
Top Forums Programming Runtime error in C++ Program - Help Post 302384900 by jim mcnamara on Wednesday 6th of January 2010 03:22:58 PM
Old 01-06-2010
The difference probably is: the new system has a newer runtime library.
You definitely should try to recompile the old code on the new box.

Edit:
also consider: compare the output of ldd on your compiled code in both old & new environments.
It may be possible to install an old library on the machine (not overwriting any new one) then define
LD_LIBRARY_PATH only when the old code runs. Have LD_LIBRARY_PATH point to the old library(ies).

Or go back to the old box and compile your code statically.

Last edited by jim mcnamara; 01-06-2010 at 04:49 PM..
 

9 More Discussions You Might Find Interesting

1. Solaris

Runtime error...

My interprise use a UNIX mainform for a instrumentation process control. The control use the FOXBORO INVENSYS system and they donīt gonna solve the problem the run time error. The run time error happen without logic explication. When everything itīs run perfectely and happenly appears the run time... (1 Reply)
Discussion started by: marpin
1 Replies

2. UNIX for Dummies Questions & Answers

Runtime Error...

My system did stay appears the error Run Time Library Error. What itīs? When the error appear, iīve to reboot my system and lost all I did. Is there the UNIX System problem? Please. I need help!!! (4 Replies)
Discussion started by: marpin
4 Replies

3. Shell Programming and Scripting

Need help with program error

#!/bin/csh # # Time of day greeting # # usage: greet # if ($#argv == 0) then set hour = ‘date +%H’ else set hour = $argv endif # if ($hour < 12) then echo "Good Morning\!" else if ($hour < 18) then echo "Good Afternoon\!" ... (2 Replies)
Discussion started by: glock1800
2 Replies

4. Shell Programming and Scripting

How to give runtime arguments to different program

I have a shell script that is attempting to call a c program. I call the c program with ./dictool dictool accepts arguments at runtime. It works by prompting the user for various commands, acting on those commands, spitting out an output, and then prompting for more commands. My question is,... (1 Reply)
Discussion started by: aarongoldfein
1 Replies

5. Programming

Help... runtime error in my maxheap sort program

#include<iostream> using namespace std; int *a,size,heapsize; void maxheap(int *a,int j) { int l,r,largest,temp; l=2*j; r=(2*j)+1; for(j=0;j<size;++j) { if(l<=heapsize && a>a) largest=l; else largest=j; if(r<=heapsize... (5 Replies)
Discussion started by: poonam.gaigole
5 Replies

6. Programming

Runtime error in my code...

INFIX TO POSTFIX CONVERSION : //Convert an infix expression to postfix expression... #include<iostream> #include<cstring> #include<cstdlib> using namespace std; char ifx,pfx,stk; int top=-1,n; void push(char ch) { if(top!=n-1) { top++; stk=ch; } ... (3 Replies)
Discussion started by: poonam.gaigole
3 Replies

7. UNIX for Dummies Questions & Answers

No Java runtime environment (JRE) error

Hi all, I am trying to install a .bin file for that it requires IBMJava2-AMD64-142-JRE-1.4.2-13.8.x86_64.rpm to be installed. I have installed this rpm but when i try to install .bin file, it complains that no JRE found. How to solve this. Thanks in advance! #... (0 Replies)
Discussion started by: lramsb4u
0 Replies

8. Programming

Fortran runtime error: Insufficient data descriptors in format after reversion

Hello, I have some Fortran code that is providing the following error: At line 1165 of lapc_shells_2.f Fortran runtime error: Insufficient data descriptors in format after reversion Here are the lines just above and including 1165: WRITE (*,"('ATTEMPTING TO READ PLATE... (1 Reply)
Discussion started by: jm4smtddd
1 Replies

9. Red Hat

Runtime Error Enable user directory apache

Hi I am exactly according to this link CentOS 6 - Apache httpd - Enable Userdir : Server World I Enabled userDirectory Server version: Apache/2.2.15 CentOS release 6.8 (Final) But Iget this Error Forbidden You don't have permission to access /~mn/index.html on this server Goal... (2 Replies)
Discussion started by: mnnn
2 Replies
LDD(1)							    BSD General Commands Manual 						    LDD(1)

NAME
ldd -- list dynamic object dependencies SYNOPSIS
ldd [-o] [-f format] program ... DESCRIPTION
ldd displays all shared objects that are needed to run the given program. Contrary to nm(1), the list includes ``indirect'' dependencies that are the result of needed shared objects which themselves depend on yet other shared objects. Zero, one or two -f options may be given. The argument is a format string passed to rtld(1) and allows customization of ldd's output. The first format argument is used for library objects and defaults to " -l%o.%m => %p ". The second format argument is used for non-library objects and defaults to " %o => %p ". These arguments are interpreted as format strings a la printf(3) to customize the trace output and allow ldd to be operated as a filter more conveniently. The following conversions can be used: %a The main program's name (also known as ``__progname''). %A The value of the environment variable LD_TRACE_LOADED_OBJECTS_PROGNAME in a.out and the program name from the argument vector from elf. %o The library name. %m The library's major version number. %n The library's minor version number (a.out only, ignored in elf). %p The full pathname as determined by rtld's library search rules. %x The library's load address Additionally, and are recognized and have their usual meaning. The -o option is an alias for -f %a:-l%o.%m => %p , which makes ldd behave analogously to nm -o. SEE ALSO
ld(1), ld.elf_so(1), nm(1), rtld(1) HISTORY
A ldd utility first appeared in SunOS 4.0, it appeared in its current form in NetBSD 0.9A. BUGS
The a.out ldd actually runs the program it has been requested to analyze which in specially constructed environments can have security impli- cations. BSD
September 7, 2009 BSD
All times are GMT -4. The time now is 08:39 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy