Search the Community
Showing results for tags 'link'.
-
I installed systemc-2.3.1 on Ubuntu 14.04.1. The installation appears to have gone well, "make check" passes all tests. When I try running the pipe example stand-alone I get the error listed below: ayoub@VBox:~/systemc-2.3.1/examples/sysc/pipe$ make gcc -g -Wall -pedantic -Wno-long-long -Werror -I. -I.. -I/usr/local/systemc-2.3.1/include -c display.cpp -o display.o gcc -g -Wall -pedantic -Wno-long-long -Werror -I. -I.. -I/usr/local/systemc-2.3.1/include -c main.cpp -o main.o gcc -g -Wall -pedantic -Wno-long-long -Werror -I. -I.. -I/usr/local/systemc-2.3.1/include -c numgen.cpp -o numgen.o gcc -g -Wall -pedantic -Wno-long-long -Werror -I. -I.. -I/usr/local/systemc-2.3.1/include -c stage1.cpp -o stage1.o gcc -g -Wall -pedantic -Wno-long-long -Werror -I. -I.. -I/usr/local/systemc-2.3.1/include -c stage2.cpp -o stage2.o gcc -g -Wall -pedantic -Wno-long-long -Werror -I. -I.. -I/usr/local/systemc-2.3.1/include -c stage3.cpp -o stage3.o gcc -g -Wall -pedantic -Wno-long-long -Werror -L. -L.. -L /usr/local/systemc-2.3.1/lib-linux -Wl,-rpath=/usr/local/systemc-2.3.1/lib-linux -o pipe.x display.o main.o numgen.o stage1.o stage2.o stage3.o -lsystemc -lm 2>&1 | c++filt /usr/bin/ld: main.o: undefined reference to symbol 'operator new(unsigned int)@@GLIBCXX_3.4' //usr/lib/i386-linux-gnu/libstdc++.so.6: error adding symbols: DSO missing from command line collect2: error: ld returned 1 exit status make: *** [pipe.x] Error 1 ayoub@VBox:~/systemc-2.3.1/examples/sysc/pipe$ uname -a Linux VBox 3.13.0-34-generic #60-Ubuntu SMP Wed Aug 13 15:49:09 UTC 2014 i686 i686 i686 GNU/Linux ayoub@VBox:~/systemc-2.3.1/examples/sysc/pipe$ g++ --version g++ (Ubuntu 4.8.2-19ubuntu1) 4.8.2 Copyright © 2013 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Is this a real problem? Is there a fix out some where? I have seen similar c++ issues posted elswhere but no solutions. Thanks, Ayoub