By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,291 Members | 3,096 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,291 IT Pros & Developers. It's quick & easy.

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

P: n/a
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
Share this Question
Share on Google+
1 Reply


P: n/a
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.