Compilation internal NetCDF on ubuntu linux

Post Reply
javad
Posts: 2
Joined: Sat Oct 25, 2025 11:13 am

Compilation internal NetCDF on ubuntu linux

Post by javad »

Dear Lumen developpers

I got this error when I compile internal netcdf on ubunu:

Code: Select all

 /usr/bin/ld: cannot find -lstdc++
any idea how to solve it?

best regards
Java
Javad Exirifard
IPM - Institute for Research in Fundamental Sciences
P. O. Box 19395-5746
Niavaran Square
Tehran, Iran
User avatar
claudio
Posts: 17
Joined: Sat Oct 25, 2025 11:27 am

Re: Compilation internal NetCDF on ubuntu linux

Post by claudio »

This is a general problem of ubuntu,
there is a problem in their installation of the libraries.

Just add a link to the libstd++, go in the folder

Code: Select all

cd /usr/lib/x86_64-linux-gnu/
and do

Code: Select all

 sudo ln -s  libstdc++.so.6.0.33 libstdc++.so
where libstdc++.so.6.0.33 is the version available in your distribution

best
Claudio
Claudio Attaccalite
[CNRS/ Aix-Marseille Université/ CINaM laborarory / TSN department
Campus de Luminy – Case 913
13288 MARSEILLE Cedex 09
web site: http://www.attaccalite.com
Post Reply