igraph-help
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [igraph] [Igraph] Help


From: Gábor Csárdi
Subject: Re: [igraph] [Igraph] Help
Date: Sat, 3 May 2014 07:38:35 -0400

Add -lstdc++:

http://stackoverflow.com/questions/10906275/undefined-reference-to-stdios-baseinitinit

Gabor


On Sat, May 3, 2014 at 12:14 AM, patricia <address@hidden> wrote:
I want to compile and run a program using the following command line :

<<    gcc Teste.c -I/usr/local/include/igraph -L/usr/local/lib -ligraph -o Teste    >> 

The following errors occur ( running via cygwin shell )

PATRICIA APPEARED @ ETEP_PATRICIA / cygdrive / c / TesteGrafo
$ Gcc -L/usr/local/lib - teste.c -I/usr/local/include/igraph ligraph - Test
/ usr / local / lib / libigraph.a ( libigraph_la - gengraph_mr - connected.o ) : In function ` _ static_initialization_and_destruction_0 ' :
/ usr/lib/gcc/i686-pc-cygwin/4.8.2/include/c + + / iostream : 74 : undefined reference to ` std :: ios_base :: Init :: Init ( ) '
/ usr/lib/gcc/i686-pc-cygwin/4.8.2/include/c + + / iostream : 74 : undefined reference to ` std :: ios_base :: Init :: ~ Init ( ) '
/ usr / local / lib / libigraph.a ( libigraph_la - gengraph_mr - connected.o ) : gengraph_mr -con nected.cpp : ( . eh_frame xaf +0 ) : undefined reference to ` __gxx_personality_v0 '
/ usr / local / lib / libigraph.a ( libigraph_la - gengraph_degree_sequence.o ) : In function ` _static_initialization_and_destruction_0 ' :
/ usr/lib/gcc/i686-pc-cygwin/4.8.2/include/c + + / iostream : 74 : undefined reference to ` std :: ios_base :: Init :: Init ( ) '
/ usr/lib/gcc/i686-pc-cygwin/4.8.2/include/c + + / iostream : 74 : undefined reference to ` std :: ios_base :: Init :: ~ Init ( ) '
/ usr / local / lib / libigraph.a ( libigraph_la - gengraph_degree_sequence.o ) : gengraph_deg ree_sequence.cpp : ( . eh_frame +0 x21f ) : undefined reference to ` __gxx_personality_v0 '
/ usr / local / lib / libigraph.a ( libigraph_la - gengraph_graph_molloy_optimized.o ) : In f unction ` _static_initialization_and_destruction_0 ' :
/ usr/lib/gcc/i686-pc-cygwin/4.8.2/include/c + + / iostream : 74 : undefined reference to ` std :: ios_base :: Init :: Init ( ) '
/ usr/lib/gcc/i686-pc-cygwin/4.8.2/include/c + + / iostream : 74 : undefined reference to ` std :: ios_base :: Init :: ~ Init ( ) '
/ usr / local / lib / libigraph.a ( libigraph_la - gengraph_graph_molloy_optimized.o ) : gengr aph_graph_molloy_optimized.cpp : ( . eh_frame +0 x13 ) : undefined reference to ` __gxx_p ersonality_v0 '
/ usr / local / lib / libigraph.a ( libigraph_la - gengraph_graph_molloy_hash.o ) : gengraph_g raph_molloy_hash.cpp : ( . eh_frame x1eb +0 ) : undefined reference to ` y_v0 __gxx_personalit '
/ usr/lib/gcc/i686-pc-cygwin/4.8.2/../../../libcygwin.a ( _cygwin_crt0_common.o ) : _c ygwin_crt0_common.cc : ( . data +0 x0 ) : undefined reference to ` operator new (unsigned int ) '
/ usr/lib/gcc/i686-pc-cygwin/4.8.2/../../../libcygwin.a ( _cygwin_crt0_common.o ) : _c ygwin_crt0_common.cc : ( . data +0 x4 ) : undefined reference to ` operator new [ ] ( unsigne d int ) '
/ usr/lib/gcc/i686-pc-cygwin/4.8.2/../../../libcygwin.a ( _cygwin_crt0_common.o ) : _c ygwin_crt0_common.cc : ( . data +0 x8 ) : undefined reference to ` operator delete (void * ) '
/ usr/lib/gcc/i686-pc-cygwin/4.8.2/../../../libcygwin.a ( _cygwin_crt0_common.o ) : _c ygwin_crt0_common.cc : ( . data +0 xc ) : undefined reference to ` operator delete [ ] (void * ) '
collect2 : error : ld returned 1 exit status

How do I solve this problem , the same error also occurs in CodeBlocks . 

Please help me solve this problem , what should I do ?

Thank you


_______________________________________________
igraph-help mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/igraph-help



reply via email to

[Prev in Thread] Current Thread [Next in Thread]