473,466 Members | 1,368 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Compiler/Linker Error undefined reference to 'std::ios_base::Init::Init[in-charge]()

Hello,

What can I do about these gcc Red Hat Linux errors.
They are coming from the archive file.

%gcc -I/usr/fltk -O2 -Wall -Wunused -fno-exceptions
-I/usr/X11R6/include -o run main.o
-L/user/fltk/lib -lfltk_images -lfltk -lpng -ljpeg -lz
-L/usr/X11R6/lib -lm -lXext -lX11 -lsupc++ chris.a
-lpci -lm -lccur_rt -lrt

chris.a(file1.o)(.text+0x23a):
In function `__static_initialization_and_destruction_0':
/usr/include/c++/3.2.3/iostream:63: undefined reference to
`std::ios_base::Init::Init[in-charge]()'

chris.a(file1.o)(.text+0x269):
In function `__tcf_0':
/usr/include/c++/3.2.3/iostream:63: undefined reference to
`std::ios_base::Init::~Init [in-charge]()'

collect2: ld returned 1 exit status
make: *** [vme.x] Error 1

Thank you,
Christopher Lusardi

Aug 18 '05 #1
1 39152
I think you need to add -lstdc++, or use 'g++' rather than 'gcc' as
your driver program.

Aug 18 '05 #2

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

Similar topics

6
by: Hunter Hou | last post by:
Hi, I have this program, compiling is passed, but when i wanted to get the executable file(g++ -o output input.o), it fails. Who can lead me where the error is? Thanks, Hunter ===
2
by: pervinder | last post by:
Hi, I have a c application which uses a library (libmatrix.a) which has stl usage But while link stage, i get an error on AIX (IBM) platform ( comp - xlC_r va6) ld: 0711-317 ERROR: Undefined...
2
by: ddh | last post by:
Hi, I download mingw in my system(XP SP2), and extract them in c:\mingw\gcc, so the directories looks like: c:\mingw\gcc\bin, c:\mingw\gcc\include ..., and I added c:\mingw\gcc\bin in my PATH...
23
by: Prasad | last post by:
Hi All, I am executing simple hello world program. But, getting compile time errors. What is the problem here? prasad@D-T11673A:~/programs/c> cat bst.cpp #include<iostream> using...
2
by: Pardeep Kadian | last post by:
Hi , having as issue , which gives errors like this while linking... error LNK2019: unresolved external symbol "public: __thiscall std::ios_base::Init::Init(void)"...
2
by: jjcp | last post by:
I would like to say thanks in advance for insight anyone can shed on this for me. Long story short from time to time I need to us C++ to take a list of file and make an index out of them in...
4
by: sublimanized | last post by:
Hello all ... here is my problem. I just got the book "Teach Yourself C ++ in 21 Days" Setup: Fedora Core 6 - i386 GCC 4.1.1 Again, I am a complete newcomer to C++, and this is one of the...
8
by: Jim Anderson | last post by:
It's been a few years since I have programmed in C++. I'm starting to develop some programs in C++ and I can't get "Hello, World" working yet. It looks to me like 'cout' in the std library is not...
1
by: taiyang902 | last post by:
i program under linux ,and using kdevelop c/c++. the code follow, #ifdef HAVE_CONFIG_H #include <config.h> #endif #include <iostream> #include <cstdlib> using namespace std;
8
by: sdlt85 | last post by:
Hi, the program is asking the user for a number ant he base of the number, then it will convert the number to decimal. But is running right only with base 2, 3, 4, 5, 6, 7, 8 but if I try 16 it is...
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
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,...
1
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...
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...
0
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...
0
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...
0
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...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
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 ...

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.