473,394 Members | 1,693 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

Unable to compile using g++

Hi,
I am trying to compile c++ program in SunOs,
It is giving following error.

does any one tell me why this error is getting
error is

program's name is corrid.cpp
This c++ program is used to connect to MQ Series
************************************************** ******************************
g++ corrid.cpp
In file included from /usr/local/lib/gcc/sparc-sun-solaris2.9/3.4.6/../../../../
include/c++/3.4.6/backward/iostream.h:31,
from corrid.cpp:61:
/usr/local/lib/gcc/sparc-sun-solaris2.9/3.4.6/../../../../include/c++/3.4.6/back
ward/backward_warning.h:32:2: warning: #warning This file includes at least one
deprecated or antiquated header. Please consider using one of the 32 headers fou
nd in section 17.4.1.2 of the C++ standard. Examples include substituting the <X
> header for the <X.h> header for C++ includes, or <iostream> instead of the dep
recated header <iostream.h>. To disable this warning use -Wno-deprecated.
Undefined first referenced
symbol in file
ImqErr::~ImqErr() /var/tmp//cc8lGnv0.o
ImqGmo3::ImqGmo3() /var/tmp//cc8lGnv0.o
ImqGmo3::~ImqGmo3() /var/tmp//cc8lGnv0.o
ImqQue::ImqQue() /var/tmp//cc8lGnv0.o
ImqQue::~ImqQue() /var/tmp//cc8lGnv0.o
ImqPmo::ImqPmo() /var/tmp//cc8lGnv0.o
typeinfo for ImqErr /var/tmp//cc8lGnv0.o
ImqMsg::ImqMsg() /var/tmp//cc8lGnv0.o
ImqMsg::~ImqMsg() /var/tmp//cc8lGnv0.o
ImqMgr::ImqMgr() /var/tmp//cc8lGnv0.o
ImqMgr::~ImqMgr() /var/tmp//cc8lGnv0.o
ld: fatal: Symbol referencing errors. No output written to a.out
collect2: ld returned 1 exit status
Mar 24 '08 #1
2 2287
gpraghuram
1,275 Expert 1GB
Have you included the library using the -l option while compiling this using g++?
The first line is a warning...i think u are using iostream.h
The next lines are linker errors.


Raghuram
Mar 24 '08 #2
weaknessforcats
9,208 Expert Mod 8TB
C++ header files have no extension. The .h is for C header files.

Therefore, old files like iostream.h are pre-ANS C++ from before 1998. That's the antiquated warning is about.
Mar 24 '08 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: Wayno | last post by:
Hoping someone can help me out with this problem. First problem, is I am unable to view my php error log. In my php.ini I have my log in /var/www/logs/php_error_log. However, it has remained empty....
8
by: Chris Bailiss | last post by:
Hi all, I am unable to run any VBA in access XP. I get the compile error of 'Error In Loading DLL'. Behaviour of the wizards is also patchy. I cannot get past the first screen in most (i.e....
2
by: SteveS | last post by:
Hello, I'm compiling an asp.net application and having troubles. I keep getting the errors: "Unable to open Web project" for the web web services and "Unable to get the project file from the Web...
3
by: DJTN | last post by:
I'm getting the following error when I try to compile my setup project in VS 2002. I have re-installed the .net framework 1.1 and it didnt solve the problem. WARNING: Unable to find dependency...
0
by: ufnuceda | last post by:
Hello everyone, I was wondering if any of you have some experience with the boost library. I am having trouble compiling code with it. Since boost is being used a lot these days I thought some...
9
by: MAF | last post by:
Does anyone know why in 2005 I might be getting this error everytime I try and recompile? Error 226 Unable to copy file "obj\Debug\myfile.dll" to "bin\Debug\myfile.dll". The process cannot...
2
by: Paul Cheetham | last post by:
Hi, I have moved an application from VS2003 to VS2005, and I am now unable to view most of my forms in the designer. The majority of the forms in my project are derived from class PACForm,...
0
by: byron | last post by:
I've been unable to compile PHP 5.2.4 on HP-UX 11.11 with the mysql extension against a 64bit mysql installation. configure:59871: gcc -o conftest -I/usr/local/include -g -O2 -...
4
by: shaileshkumar | last post by:
hi , i m trying to run jsps in tomcat 5.0. I was able run servlets successfully but iam unable to run jsps. i have also coppied tools.jar from jdk and pasted in tomcat directory i have done the...
3
by: =?Utf-8?B?TGV3aXMgTW90ZW4=?= | last post by:
Hello. We are having a problem here trying to compile C# applications. Only one developer has a problem where they attempt to compile the application and the compiler complains about being out of...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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,...
0
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,...
0
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...

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.