473,799 Members | 2,954 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Unable to compile using g++

36 New Member
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_warnin g.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::ImqGmo 3() /var/tmp//cc8lGnv0.o
ImqGmo3::~ImqGm o3() /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 2304
gpraghuram
1,275 Recognized Expert Top Contributor
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 Recognized Expert Moderator Expert
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
4483
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. Secondly, my sendmail works fine from command prompt. However, when trying to send mail through a php script (I have tried a couple), it says it is succesfull, but my mail logs show nothing going out. No error messages. Can someone take a look...
8
3402
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. the buttons in the wizard screens are dead). I presume the wizards run VBA underneath. I have installed the latest service pack, both windows xp and office xp. It was a clean XP install.
2
1765
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 server" for the web project. I believe I'm getting this because I don't have IIS pointing to the application. However, I'm doing this on purpose because this is a test server and I don't want to touch IIS.
3
7225
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 'mscorlib' (Signature='B77A5C561934E089' Version='1.0.5000.0') of assembly 'System.dll' WARNING: Unable to find dependency 'mscorlib' (Signature='B77A5C561934E089' Version='1.0.5000.0') of assembly 'System.Windows.Forms.dll' WARNING: Unable to...
0
2517
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 of you might have an answer. I would greatly appreciate help with this, as I tried to search for an answer for quite some time in vain. I am getting error messages when I try to compile as soon as I put an include to the boost library in the...
9
15537
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 access the file 'bin\Debug\myfile.dll' because it is being used by another process. myfile
2
2379
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, (which itself derives from System.Windows.Forms.Form) Whenever I try to open on of these forms in the designer, I get an error, stating it is unable to load one or more of the requested types. (Full text at the bottom of this message)
0
330
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 - D_XOPEN_SOURCE_EXTENDED -L/usr/local/mysql/lib -L/usr/local/mysql/lib - liconv -L/usr/local/lib -L/usr/local/lib/gcc/hppa2.0w-hp- hpux11.11/4.2.1 -L/usr/local/lib/gcc/hppa2.0w-hp-hpux11.11/4.2.1 -L/ usr/local/lib -L/usr/local/lib -L/usr -L/usr conftest.c...
4
2458
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 necessary path settings(iam able to run servlets) iam getting following exceptions: org.apache.jasper.JasperException :unable to compile class for jsp No java compiler was found to compile the generated source for the jsp.
3
5550
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 memory and unable to find a dll - webengine.dll. They have tried rebooting, gettling latest, and a few other things. We can not determine what is at the heart of this problem. They have Visual Studio.Net 2005 with .Net Framework 2.0 SP1. The...
0
10475
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...
1
10222
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10026
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
7564
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
6805
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
5463
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...
0
5585
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3757
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2938
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.