I am migrating the code written in SUN 4.3 to SUN 5.8
while linking i am getting the following errors
I have written a sample program using the Prototypes for which it is firing out above error
#include<stdio.h>
#include<iostream.h>
int main()
{
int len=10;
char *coded = new char[len];
int *a=new int();
printf("Herllo");
cerr<<"Hello world:";
cerr << "\nString Array Out of Bounds!! index: " << ":elem"
<< " String length (0-"
<<" len" << ")\n";
delete [] coded;
delete a;
}
i could able to compile and run the program
so i am not getting any pointers to fix the issue. any pointer to fix the issue are highly appreciated.
Regards.
Revathi R
Assuming that this is the problem you're still seeing, have you recompiled everything with the new compiler?
It looks like the compiler can't find the C++ run-time libraries. Or it can't find the proper version...
There's probably a command-line option for the CC command to have it emit intermediate steps, so we can see what commands are actually getting run, especially the final link step.
Or, you can just run that CC link command under truss, and just truss the execve() calls:
You can also post here, where you're likely to get help from someone who actually works for Oracle on the Studio compilers:
I want to use calls from the X Keyboard Extension, but get "library version mismatch" error.
First one is XkbLibraryVersion(..). This one already returns false.
Then I call XkbOpenDisplay(...) which does not return a valid display; return value is XkbOD_NonXkbServer. If I open the display with... (0 Replies)
Command to get the Compiler version(xlc/gcc) from the binary on AIX platform.
I m searching for the Command, to get the Compiler(xlc/gcc) used to build the binary on AIX.
I got two commands used on Linux Platform:
- readelf -a <lib> | grep comment
- hexdump -C -s 0x49e7b -n 1812 <lib>
... (1 Reply)
Hi all.
I have a simple question.
There's a way to install under AIX system (5.3) two different compiler version, i.e. ibm xlf fortran 11 and 12?
Seems that smitty doesn't allows user to change the default installation path; it only allows you to save the replaced files of the superseded... (1 Reply)
:confused: I installed latest version of java ( jre 1.6) on Solaris Machine ......when I run java -version as root, shows the latest version but when I run java -version as normal user, shows the old / previous version
What should I do to fix this ...should show the latest version... (3 Replies)
Hi,
I'm new, here, and I'm searching for a simple solution for a simple problem.
I'm working on RedHat 4.4.6-4 through a CentOS Virtual Machine and due to some reasons I must compile my C++ codes with these two different g++ versions: 4.4.6 and 4.2.2.
The fact is that I should be able to... (4 Replies)
Hi,
Below is output of lslpp command.
bash-3.00# lslpp -L | grep xlC
xlC.aix50.rte 11.1.0.1 C F XL C/C++ Runtime for AIX 5.3
xlC.cpp 9.0.0.0 C F C for AIX Preprocessor
xlC.msg.en_US.cpp 9.0.0.0 C F C for AIX... (2 Replies)
Hi all,
currently I'm facing a issue in linking a .so file.
In my build machine, I've libcrypto.so.6 and there is a softlink as libcrypto.so.
In my make file I'm trying to link to the lib using -L -lcrypto and it is success and created my test.exe.
When I copy this test.exe to other... (4 Replies)
rsync --delay-updates -F --compress --archive --rsh='/usr/bin/ssh -t -a -x' /web/admin/Transfer/data/ user1@destserver1:/tmp/testf
rsync version on sender server is:3.0.9
rsync version on sender server is:3.0.6
Linux sourceserver1 3.10.0-693.17.1.el7.x86_64 #1 SMP Sun Jan 14 10:36:03 EST... (1 Reply)
Discussion started by: mohtashims
1 Replies
LEARN ABOUT DEBIAN
itpp-config
itpp-config(1) General Commands Manual itpp-config(1)NAME
itpp-config - script to get information about intalled IT++ library prefix, compiler flags and its version
SYNOPSIS
itpp-config [--prefix] [--exec-prefix] [--debug] [--static]
[--cflags] [--libs] [--help] [--version]
DESCRIPTION
itpp-config is a tool that can be used to determine the compiler and linker flags required for compiling and linking programs that use
IT++. It can be also used for checking the intalled libitpp library version.
OPTIONS
itpp-config accepts the following options:
--prefix
output libitpp installation prefix
--exec-prefix
output libitpp installation exec prefix
--debug
use debugging pre-processor, compiler and linker flags (needs to be used in front of --cflags and --libs)
--static
use static linker flags (needs to be used in front of --libs)
--cflags
output pre-processor and compiler flags
--libs output linker flags
--help display brief help and exit
--version
output version number
AUTHOR
This manual page was written by Adam Piatyszek <ediap@users.sourceforge.net> as a text file, then converted to man format by txt2tags.
COPYRIGHT
Copyright (C) 1995-2010 (see AUTHORS file for a list of contributors)
This file is part of IT++ - a C++ library of mathematical, signal processing, speech processing, and communications classes and functions.
IT++ is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free
Software Foundation, either version 3 of the License, or (at your option) any later version.
IT++ is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with IT++. If not, see <http://www.gnu.org/licenses/>.
IT++ 4.2 September 2010 itpp-config(1)