469,587 Members | 2,134 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,587 developers. It's quick & easy.

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


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

In function `__static_initialization_and_destruction_0':
/usr/include/c++/3.2.3/iostream:63: undefined reference to

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 37277
I think you need to add -lstdc++, or use 'g++' rather than 'gcc' as
your driver program.

Aug 18 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

6 posts views Thread by Hunter Hou | last post: by
2 posts views Thread by pervinder | last post: by
23 posts views Thread by Prasad | last post: by
2 posts views Thread by Pardeep Kadian | last post: by
4 posts views Thread by sublimanized | last post: by
8 posts views Thread by Jim Anderson | last post: by
reply views Thread by suresh191 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.