How to provide libstdc library?


up vote
0
down vote
favorite
I have created c++ application in Ubuntu linux and now trying to run it on Centos linux. Got error:
/usr/lib/libstdc++.so.6: version `GLIBCXX_3.4.21' not found
How usually is performed in this situation? Can I somehow put all libs to my executable? Should I install them like:
sudo apt-get install libstdc++6
Is it normal this libruary is not not installed in standard fresh linux installation?
c++
add a comment |Â
up vote
0
down vote
favorite
I have created c++ application in Ubuntu linux and now trying to run it on Centos linux. Got error:
/usr/lib/libstdc++.so.6: version `GLIBCXX_3.4.21' not found
How usually is performed in this situation? Can I somehow put all libs to my executable? Should I install them like:
sudo apt-get install libstdc++6
Is it normal this libruary is not not installed in standard fresh linux installation?
c++
How to provide the required library on Centos is really off topic here - but see for example GLIBCXX_3.4.21 not found on CentOS 7. Yes you can "somehow put all libs to my executable", by linking your application statically - see C++ application - should I use static or dynamic linking for the libraries?
â steeldriver
Feb 9 at 21:31
add a comment |Â
up vote
0
down vote
favorite
up vote
0
down vote
favorite
I have created c++ application in Ubuntu linux and now trying to run it on Centos linux. Got error:
/usr/lib/libstdc++.so.6: version `GLIBCXX_3.4.21' not found
How usually is performed in this situation? Can I somehow put all libs to my executable? Should I install them like:
sudo apt-get install libstdc++6
Is it normal this libruary is not not installed in standard fresh linux installation?
c++
I have created c++ application in Ubuntu linux and now trying to run it on Centos linux. Got error:
/usr/lib/libstdc++.so.6: version `GLIBCXX_3.4.21' not found
How usually is performed in this situation? Can I somehow put all libs to my executable? Should I install them like:
sudo apt-get install libstdc++6
Is it normal this libruary is not not installed in standard fresh linux installation?
c++
c++
asked Feb 9 at 18:14
vico
1,03952141
1,03952141
How to provide the required library on Centos is really off topic here - but see for example GLIBCXX_3.4.21 not found on CentOS 7. Yes you can "somehow put all libs to my executable", by linking your application statically - see C++ application - should I use static or dynamic linking for the libraries?
â steeldriver
Feb 9 at 21:31
add a comment |Â
How to provide the required library on Centos is really off topic here - but see for example GLIBCXX_3.4.21 not found on CentOS 7. Yes you can "somehow put all libs to my executable", by linking your application statically - see C++ application - should I use static or dynamic linking for the libraries?
â steeldriver
Feb 9 at 21:31
How to provide the required library on Centos is really off topic here - but see for example GLIBCXX_3.4.21 not found on CentOS 7. Yes you can "somehow put all libs to my executable", by linking your application statically - see C++ application - should I use static or dynamic linking for the libraries?
â steeldriver
Feb 9 at 21:31
How to provide the required library on Centos is really off topic here - but see for example GLIBCXX_3.4.21 not found on CentOS 7. Yes you can "somehow put all libs to my executable", by linking your application statically - see C++ application - should I use static or dynamic linking for the libraries?
â steeldriver
Feb 9 at 21:31
add a comment |Â
1 Answer
1
active
oldest
votes
up vote
1
down vote
To compile C++ on a freshly installed ubuntu system one would need the package 'build-essential'.
$sudo apt install build-essential
add a comment |Â
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
1
down vote
To compile C++ on a freshly installed ubuntu system one would need the package 'build-essential'.
$sudo apt install build-essential
add a comment |Â
up vote
1
down vote
To compile C++ on a freshly installed ubuntu system one would need the package 'build-essential'.
$sudo apt install build-essential
add a comment |Â
up vote
1
down vote
up vote
1
down vote
To compile C++ on a freshly installed ubuntu system one would need the package 'build-essential'.
$sudo apt install build-essential
To compile C++ on a freshly installed ubuntu system one would need the package 'build-essential'.
$sudo apt install build-essential
answered Feb 9 at 18:27
Bart J.
245
245
add a comment |Â
add a comment |Â
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1004638%2fhow-to-provide-libstdc-library%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
How to provide the required library on Centos is really off topic here - but see for example GLIBCXX_3.4.21 not found on CentOS 7. Yes you can "somehow put all libs to my executable", by linking your application statically - see C++ application - should I use static or dynamic linking for the libraries?
â steeldriver
Feb 9 at 21:31